web4bio / webgen

WebGen Vertically Integrated Project
https://web4bio.github.io/webgen/main/html/
11 stars 26 forks source link

Only one page of mutation data is ever returned #381

Closed rmoffitt closed 2 years ago

rmoffitt commented 2 years ago

https://github.com/web4bio/webgen/blob/82433ff15f3943968d83fe507f96a0e1b18991f8/main/js/dataAcquisition/fetch.js#L251

It appears that only one page of 250 results is requested. The firebrowse.fetchMutationMAF function needs updating to do something similar to the mRNAseq request, i.e.

const groupBy = []; if (genes) { params.gene = genes; groupBy.push({key: "gene", length: 20}); } if (barcodes) { params.tcga_participant_barcode = barcodes; groupBy.push({key: "tcga_participant_barcode", length: 50}); }