ucscXena / ucsc-xena-client

Functional genomics browser
Apache License 2.0
57 stars 42 forks source link

use information in configuration file to generate Tumor Map linkout #367

Closed jingchunzhu closed 5 years ago

jingchunzhu commented 5 years ago

currently, the mapping between xena cohort to tumor map is hard-coded in the xena client code at https://github.com/ucscXena/ucsc-xena-client/blob/master/js/views/Column.js#L258

use the configuration file here to generate the linkout https://github.com/ucscXena/cohortMetaData/blob/master/defaultTumormap.json

jingchunzhu commented 5 years ago

The location of the metadata directory is already in the client code: https://github.com/ucscXena/ucsc-xena-client/blob/master/js/cohortMetaData.js#L2

The "raw" url for the tumor map mapping file is inside that directory, please use the raw url location https://raw.githubusercontent.com/ucscXena/cohortMetaData/master/defaultTumormap.json

Check out examples of how client gets similar information about other metadata, https://github.com/ucscXena/ucsc-xena-client/blob/master/js/xenaQuery.js#L430 https://github.com/ucscXena/ucsc-xena-client/blob/master/js/xenaQuery.js#L466

jingchunzhu commented 5 years ago

implemented in d5387b5a6aae857973c62b11ed10035ff6b5301a