DECIPHER-genomics / Genoverse

HTML5 scrollable genome browser
https://genoverse.org/
Other
108 stars 44 forks source link

How to load my own genome feature in the Genoverse tracks? #85

Closed allen-zhan340 closed 1 year ago

allen-zhan340 commented 1 year ago

I have my own genomes features in a json file, (shows below): I put the file in the path -- '/src/js/genomes' of Genoverse and named it 'mvp.js', and i use the follwing code, but it didn't work.

Need your help! sir!

can someone just tell me how i can use my own genome feature in the web?

the genoverse script code:

"""

""""

the content of 'mvp.js' just like this: [{ "logic_name": "gene", "feature_type": "gene", "end": 67859, "biotype": "protein_coding", "gene_acc": "SG0050.p01", "protein_acc": "BAE73325.1", "strand": 0, "id": "flagellum-specific ATP synthase FliI (SG0050)", "start": 66483 }, { "logic_name": "gene", "feature_type": "gene", "end": 68615, "biotype": "protein_coding", "gene_acc": "SGP1_0042.p01", "protein_acc": "BAE75749.1", "strand": 0, "id": "achromobactin biosynthetic and transport gene yhcA (SGP1_0042)", "start": 67227 } ........... ]