Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate preloaded genomes with custom json #779

Closed
matthdsm opened this issue Nov 6, 2018 · 4 comments
Closed

populate preloaded genomes with custom json #779

matthdsm opened this issue Nov 6, 2018 · 4 comments
Milestone

Comments

@matthdsm
Copy link

matthdsm commented Nov 6, 2018

Hi Jim,

I was wondering if there's a way to populate the preloaded genomes with custom values?
For example, I'd like to add a button to switch between genomes. Those genomes have custom id's, files and additional tracks associated to them.
Is it possible to populate the Genome object with those values so we're able to use the igv.GenomeUtils functions or the igv.browser.loadGenome() function?
Thanks
M

@matthdsm
Copy link
Author

matthdsm commented Nov 6, 2018

For example, we'd like to replace the fastaURL for hg38 with a locally hosted file and add some additional tracks to that entry, without having to hard-code it into the page.
Also, we'd like to add things like a noalt version of hg38.

M

@jrobinso jrobinso added this to the Release 2.1 milestone Nov 6, 2018
@jrobinso
Copy link
Contributor

jrobinso commented Nov 6, 2018

I just pushed a configuration parameter for this, e.g.

genomeList: "https://s3.amazonaws.com/igv.org.genomes/genomes.json"

You can also put the json array inline, rather than use a URL.

@matthdsm
Copy link
Author

matthdsm commented Nov 7, 2018

Hi Jim,

Thanks for the quick fix!
Cheers
M

@matthdsm
Copy link
Author

matthdsm commented Nov 7, 2018

Works like a charm! Thanks again!
M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants