Closed ranasats closed 5 years ago
You can run igv offline, i do it myself. Is the fasta file and index also local?
Yes, all files are local. The above error is simply trying to even launch IGV on a node that has no internet access.
I'm loading as such: jdk-11/bin/java --module-path=lib -Xmx4g @igv.args --module=org.igv/org.broad.igv.ui.Main -g hg19 --batch test.igv
where the test.igv batch file contains all local bams/tracks.
Try using the full path to your fasta instead of the genome id or .genome file.
How did you create this .genome file?
So I did some testing and figured out I need to specify the fasta file as a genome in the batch file which I'm running in order to have IGV load the genome offline. It -still- tries loading from online, gives an HTTP error, the same as above, and then continues on as if it's fine.
Actually, the above did not solve the issue for genome loading. Posting error below:
ERROR [2019-10-21T17:49:10,773] [IGVCommandBar.java:175] [pool-3-thread-2] Error loading genome: /home/ranas/igv/genomes/hg19.genome
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[?:?]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[?:?]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403) ~[?:?]
at java.net.Socket.connect(Socket.java:591) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:177) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:474) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:569) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509) ~[?:?]
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:329) ~[?:?]
at org.broad.igv.util.HttpUtils.openConnection(HttpUtils.java:816) ~[igv.jar:?]
at org.broad.igv.util.HttpUtils.openConnection(HttpUtils.java:689) ~[igv.jar:?]
at org.broad.igv.util.HttpUtils.openConnection(HttpUtils.java:685) ~[igv.jar:?]
at org.broad.igv.util.HttpUtils.openConnectionStream(HttpUtils.java:290) ~[igv.jar:?]
at org.broad.igv.util.HttpUtils.openConnectionStream(HttpUtils.java:284) ~[igv.jar:?]
at org.broad.igv.util.ParsingUtils.openInputStreamGZ(ParsingUtils.java:111) ~[igv.jar:?]
at org.broad.igv.util.ParsingUtils.openInputStream(ParsingUtils.java:96) ~[igv.jar:?]
at org.broad.igv.util.ParsingUtils.openBufferedReader(ParsingUtils.java:78) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaIndex.parseIndexFile(FastaIndex.java:89) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaIndex.<init>(FastaIndex.java:55) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaIndexedSequence.<init>(FastaIndexedSequence.java:65) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaIndexedSequence.<init>(FastaIndexedSequence.java:56) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaBlockCompressedSequence.<init>(FastaBlockCompressedSequence.java:30) ~[igv.jar:?]
at org.broad.igv.feature.genome.fasta.FastaBlockCompressedSequence.<init>(FastaBlockCompressedSequence.java:25) ~[igv.jar:?]
at org.broad.igv.feature.genome.GenomeManager.loadDotGenomeFile(GenomeManager.java:548) ~[igv.jar:?]
at org.broad.igv.feature.genome.GenomeManager.loadGenome(GenomeManager.java:216) ~[igv.jar:?]
at org.broad.igv.feature.genome.GenomeManager.loadGenomeById(GenomeManager.java:165) ~[igv.jar:?]
at org.broad.igv.ui.commandbar.IGVCommandBar.selectGenome(IGVCommandBar.java:172) [igv.jar:?]
at org.broad.igv.ui.IGV.selectGenomeFromList(IGV.java:376) [igv.jar:?]
at org.broad.igv.batch.CommandExecutor.genome(CommandExecutor.java:373) [igv.jar:?]
at org.broad.igv.batch.CommandExecutor.execute(CommandExecutor.java:129) [igv.jar:?]
at org.broad.igv.batch.BatchRunner.run(BatchRunner.java:73) [igv.jar:?]
at org.broad.igv.util.LongRunningTask.call(LongRunningTask.java:72) [igv.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
INFO [2019-10-21T17:49:10,775] [GenomeManager.java:195] [pool-3-thread-2] Loading genome: /home/ranas/igv/genomes/hg19.genome
INFO [2019-10-21T17:49:30,955] [MessageUtils.java:76] [pool-3-thread-2] ERROR: Could not load genome: /home/ranas/igv/genomes/hg19.genome
INFO [2019-10-21T17:49:32,957] [CommandExecutor.java:218] [pool-3-thread-2] ERROR: Could not load genome: /home/ranas/igv/genomes/hg19.genome
The genome above is the same .genome file I copied from a node that does have online access. Identical systems between online/offline nodes.
You can't use a .genome file here, you have to use a fasta, unless that .genome file has been defined to point to a local fasta. A .genome file is just a small zip archive, it does not contain the fasta just a pointer to it. Don't use .genome files here they aren't neccessary, just use a fasta (indexed).
If that doesn't resolve your issue post your batch file here. Obviously I won't have access to your fasta but I can change that bit.
Essentially, I want to run IGV on a machine that is fully offline. I have the hg19 genome file, and when loading it via CLI, it errors out saying that IGV can't reach the servers. Is there anyway to load IGV on a machine which doesn't have internet access?