Skip to content

What is the best way to load gene annotations and make them searchable? #3875

Answered by cmdcolin
jpcartailler asked this question in Q&A
Discussion options

You must be logged in to vote

the best way is to use tabix indexed gff. we do not support text indexing from either gtf or bed files currently.

one "easy-ish" way to convert gtf to gff is

sudo apt install gffread # for converting gtf to gff
sudo apt install genometools # for sorting gff
gffread -E file.gtf -o- > file.gff3
gt gff3 -sortlines -tidy -retainids file.gff > file.sorted.gff
bgzip file.sorted.gff
tabix file.sorted.gff.gz
jbrowse add-track file.sorted.gff.gz --load copy --out /path/to/your/instance
jbrowse text-index --out /path/to/your/instance # indexes all tracks that it recognizes in the /path/to/your/instance/config.json

after those steps, your instance should be text searchable using the little 'locatio…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cmdcolin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants