Skip to content

Commit

Permalink
Refine logic to set annotations path
Browse files Browse the repository at this point in the history
  • Loading branch information
eweitz committed Jul 13, 2021
1 parent bb1f7f6 commit d8fe37d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,13 @@ <h1>Gene Hints <small>Discoverability for gene search</small></h1>
}

function getAnnotsPath(organism) {
let annotsPath
if (organism !== 'homo-sapiens') {
const baseUrl = 'https://raw.githubusercontent.com/broadinstitute/gene-hints/marianne/processed_tsv/';
const fileName = `${organism}-citation-information.tsv`;
annotsPath = baseUrl + fileName;
} else {
annotsPath = 'homo-sapiens-cited-genes.tsv';

let fileName = `${organism}-citation-information.tsv`
if (organism === 'homo-sapiens') {
fileName = 'homo-sapiens-cited-genes.tsv'
}
const annotsPath = `../processed_tsv/${fileName}`;

console.log('annotsPath')
console.log(annotsPath)
return annotsPath
Expand Down

0 comments on commit d8fe37d

Please sign in to comment.