UNPKG

ideogram

Version:

Chromosome visualization for the web

34 lines (26 loc) 976 B
// The E-Utilies In Depth: Parameters, Syntax and More: // https://www.ncbi.nlm.nih.gov/books/NBK25499/ var apiKey = '&api_key=7e33ac6a08a6955ec3b83d214d22b21a2808'; var eutils = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/'; var esearch = eutils + 'esearch.fcgi?retmode=json' + apiKey; var esummary = eutils + 'esummary.fcgi?retmode=json' + apiKey; var elink = eutils + 'elink.fcgi?retmode=json' + apiKey; function getAssemblySearchUrl(taxid, ideo) { var termStem, asmSearchUrl; if (ideo.assemblyIsAccession()) { termStem = ideo.config.assembly + '%22[Assembly%20Accession]'; } else { termStem = ( taxid + '%22[taxid]' + 'AND%20(%22latest%20refseq%22[filter])%20' ); } asmSearchUrl = ideo.esearch + '&db=assembly' + '&term=%22' + termStem + 'AND%20(%22chromosome%20level%22[filter]%20' + 'OR%20%22complete%20genome%22[filter])'; return asmSearchUrl; } export {esearch, esummary, elink, getAssemblySearchUrl};