A webtool cataloging mosaic chromosomal alterations (mCAs) and interactively examining frequently altered genomic regions
- In the
databasefolder, create adatafolder which contains thePLCO_GSA_*.txtdatasets - In the
databasefolder, runnode createDatabase.jsscript to createdatabase.db - In the
serverfolder, create an.envfile based on.env.example - In the
server/.envfile, ensure thatDATABASE_PATHrefers to the location ofdatabase.db - In the
serverfolder, runnpm start - Navigate to
http://localhost:9000/api/pingin the browser to verify the application is running
fetch("/api/query/samples", {
method: "post",
headers: { "content-type": "application/json" },
body: JSON.stringify({
conditions: [
["dataset", "in", ["PLCO_GSA_blood_autosomal_mCAs", "PLCO_GSA_blood_mLOY"]],
["chromosome", "in", ["chr1", "chrX"]],
["computedGender", "M"],
["callRate", ">", 0.99],
["cf", ">", 0.1],
],
}),
}).then(async (e) => console.log(await e.json()));