Three ways in,and they are not equal
IGV needs a reference before it will draw anything. Which route you take depends on whether your organism is one it already knows.
Genomes · Select Hosted Genome. Human, mouse and the common model organisms, with annotation included.
Genomes · Load Genome from File. Any organism, but you supply the index and any annotation yourself.
Sequence, genes and aliases packaged together. What to build once you are doing this repeatedly.
One file,one index beside it
For a genome IGV does not host, a FASTA and its .fai are the minimum, and IGV will build the index for you if it can write to the directory.
$ samtools faidx reference.fa
$ samtools idxstats sample.sorted.bam | head
Chromosome namesmust match exactly
This is the single most common IGV problem, and it produces an empty view rather than an error.
If your BAM was aligned against a reference calling it chr1 and you load a FASTA calling it 1, IGV will load both without complaint and show you nothing. Ensembl uses bare numbers, UCSC prefixes with chr, and the two are otherwise the same sequence.
Check with samtools idxstats against the BAM and head against the FASTA. The fix is to rename in the reference or re-align, never to hope it sorts itself out. The same applies to your VCF and any annotation you load beside it.
A .genome bundle,or a session
Two ways to avoid setting the same thing up again, for two different situations.
Bundle sequence, annotation and a chromosome alias file, so the reference loads in one step from then on.
File · Save Session captures the genome, every track and the current locus as one XML you can reopen.
On a rented machine, store the reference beside the BAMs. Sessions with absolute paths then keep working.
IGV isbeing built
The image and its definition are being verified. When they are done, it deploys by name like the rest.