A webtool cataloging mosaic chromosomal alterations (mCAs) and interactively examining frequently altered genomic regions
- In the
database
folder, create adata
folder which contains thePLCO_GSA_*.txt
datasets - In the
database
folder, runnode createDatabase.js
script to createdatabase.db
- In the
server
folder, create an.env
file based on.env.example
- In the
server/.env
file, ensure thatDATABASE_PATH
refers to the location ofdatabase.db
- In the
server
folder, runnpm start
- Navigate to
http://localhost:9000/api/ping
in 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()));