-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
Thanks for this software!
I am trying to use igv-notebook to view alignments against bacterial genomes but I'm having trouble adding .bam tracks. These files all work as expected on the desktop app.
I am working within VSCode using the Jupyter extension. I am running notebook 6.4.11 and my python kernel is 3.9.7. I open the folder where the .ipynb is stored and can access the track files from that location relatively.
I am using the following code:
`import igv_notebook
igv_notebook.init()
fm043 = igv_notebook.Browser(
{
"reference": {
"id": "FM_043",
"name": "FM_043",
"fastaPath": "flye/assembly.fasta",
"indexPath": "flye/assembly.fasta.fai"
},
"locus": "contig_5:18,000-30,000"
}
)
fm043.load_track(
{
"name": "FM043_flye",
"path": "annotation/flye_igv.bed",
"format": "bed",
"type": "annotation",
"height":120,
"indexed": False,
"color": "red"
}
)
fm043.load_track(
{
"name": "FM043_flye",
"path": "align/flye_alignment.sorted.bam",
"indexPath": "align/flye_alignment.sorted.bam.bai",
"format": "bam",
"height": 240,
"type": "alignment",
"color": "blue"
}
)`
This works for the genome and annotation track! The bam file though fails to load even after 30 minutes. Sometimes a 408 error is output which suggests the server connection is too slow.
When I try to repeat the same process but instead downloading the relevant files locally, the .bam file still doesn't load. The bam file in this case is ~200Mb which I wouldn't expect to be problematic. In the /Examples section, there is reference to the url approach functioning better than the path approach. Is that all that is going on here?
