@gmod/jbrowse
Version:
JBrowse - client-side genome browser
97 lines (63 loc) • 3.09 kB
Markdown
---
id: minimal
title: Minimal JBrowse configurations
---
In 1.15.3, many track types were given the ability to "auto-infer" track type and storeClass from the file extension of the urlTemplate so minimal configs can be specified
For example you can simply create a "data directory" folder, and hand edit a "tracks.conf" file to contain something like
[]
refSeqs=genome.fa.fai
[]
urlTemplate=genome.fa
[]
urlTemplate=alignments.bam
[]
urlTemplate=alignments.cram
[]
urlTemplate=variants.vcf.gz
[]
urlTemplate=genes.gff3.gz
[]
urlTemplate=peaks.bed.gz
The refSeqs config tells JBrowse the list of chromosomes, which can be an FAI file, a 2bit file, a chrom.sizes file, or if prepare-refseqs.pl was used, it is unnecessary to specify this.
For the sequence track, specifying the urlTemplate as genome.fa will assume that indexed FASTA is used and will automatically locate genome.fa.fai (unindexed fasta is too slow for even modest sized reference sequences so it just assumes indexed FASTA)
[]
urlTemplate=genome.fa
To specify genes, you can use GFF3Tabix or BigBed
[]
urlTemplate=genes.gff3.gz
[]
urlTemplate=genes.bb
Note GFF3Tabix supports indexing feature names, IDs, and other things (if nameAttributes is specified in the config of a GFF3Tabix, it indexes those features) with generate-names.pl. BigBed does not currently have generate-names.pl support
### Alignments
Alignments tracks can be specified with CRAM and BAM using the minimal config
[tracks.mybam]
urlTemplate=alignments.bam
[]
urlTemplate=alignments.cram
The BAM index (bai) and CRAM index (crai) will automatically be located. If CSI indexes are used, csiUrlTemplate must be specified. Or if the BAI/CRAI index is in a non-standard location, specify baiUrlTemplate/craiUrlTemplate.
### Variants
A minimal VCF tabix track can use
[tracks.myvcf]
urlTemplate=variants.vcf.gz
The tbi index will automatically be located by adding .tbi to the urlTemplate. If CSI indexes are used, csiUrlTemplate must be specified
A minimal bigwig config is simply a url template to the bigwig file
[]
urlTemplate=bigwig.bw
The trackList.json also can do minimal configs. An example
{
"refSeqs": "genome.fa.fai",
"tracks": [
{"label": "refseqs", "urlTemplate": "genome.fa"},
{"label": "bam", "urlTemplate": "alignments.bam"},
{"label": "cram", "urlTemplate": "alignments.cram"},
{"label": "vcf", "urlTemplate": "variats.vcf.gz"},
{"label": "gff3tabix", "urlTemplate": "genes.gff3.gz"},
{"label": "bigbed", "urlTemplate": "bigbed.bb"},
{"label": "bigwig", "urlTemplate": "bigwig.bw"}
]
}