Closed jingchunzhu closed 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
implemented in d5387b5a6aae857973c62b11ed10035ff6b5301a
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