error when loading bam files

671 views
Skip to first unread message

xiaoyu liang

unread,
Apr 29, 2020, 7:43:41 PM4/29/20
to igv-help
Hello,

1. I'm using IGV 2.8.2 on Mac.
2. I'm trying to load bam file from a remote server(I've already mapped a network drive).
3. but I can't open the bam file and IGV gave me an error:

Error loading /Users/xiaoyuliang/Desktop/TRNlocal/mec8/A/MEC8AAligned.out_sorted.bam: An error occurred while accessing: /Users/xiaoyuliang/Desktop/TRNlocal/mec8/A/MEC8AAligned.out_sorted.bam
Error loading BAM file: htsjdk.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /Users/xiaoyuliang/Desktop/TRNlocal/mec8/A/MEC8AAligned.out_sorted.bam (Operation not permitted)

4. Can you help me out? is that something wrong when I map a network driver?

Best,
Xiaoyu

xiaoyu liang

unread,
Apr 30, 2020, 12:10:42 AM4/30/20
to igv-help
BTW, everything works fine on IGV Web App, but not the IGV I downloaded on my Mac.

James Robinson

unread,
Apr 30, 2020, 12:41:29 AM4/30/20
to igv-help
Are you running Catalina?  Catalina has some restrictions on what can be done with "Desktop" and "Documents" folders, maybe other but at least those 2.   Is there a way to map your network drive so that the path does not include "Desktop"?   This is a low level error. I don't know what could be done about it otherwise, but you might try a websearch on file permission problems with Catalina, Desktop, and mounted drives.



--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/269f7f46-34a8-4bae-bb25-0e7efe612ebb%40googlegroups.com.

James Robinson

unread,
Apr 30, 2020, 12:42:45 AM4/30/20
to igv-help
Another workaround might be to download our Mac build from the "Snapshots" page and start it from the command line.  That might access the drives with different permissions.   I know it makes no sense to me either.

xiaoyu liang

unread,
Apr 30, 2020, 5:25:50 PM4/30/20
to igv-help
Yea I'm running Catalina. Thanks for your prompt reply and pointing that out! I'll try a web search see what I can do on file permission problem~ I really appreciate that!

Best,
Xiaoyu
To unsubscribe from this group and stop receiving emails from it, send an email to igv-...@googlegroups.com.

James Dipaola

unread,
Apr 30, 2020, 6:44:27 PM4/30/20
to igv-...@googlegroups.com
This happened to me also, I couldn’t open a bam through IGV tools on the desktop or downloads.  Fixed when I opened a bam, or any file, through File/Open in the IVG program.  This transmuted the access granted to IGV Tools.  Worked fine after doing this just once.  Hope it helps.

Sincerely,

Jed



To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/91c68fda-9e06-48e1-872e-28dbf420ecf8%40googlegroups.com.


This message and any attachments are solely for the use of intended recipients. The information contained herein may include trade secrets, protected health or personal information, privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you are not an intended recipient, you are hereby notified that you received this email in error, and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system.

James Robinson

unread,
Apr 30, 2020, 11:08:57 PM4/30/20
to igv-help
Thanks Jed, that's definitely worth a try.   

I think we are close to being able to "notarize" IGV, we had to wait on the Java JDK to be notarized first.   This will hopefully fix these Catalina quirks.

xiaoyu liang

unread,
May 4, 2020, 7:06:43 PM5/4/20
to igv-help
Thanks Jed! 

Best,
Xiaoyu

Robin J

unread,
Feb 4, 2021, 6:55:09 PM2/4/21
to igv-help

Hi, 
Sorry to post my problem under this thread. I'm having the exactly same problem. My system is upgraded into macOS Big Sur and my bam files are in Downloads. However, the problem is still there. 
How you solve the problem at last? I'm now using the web IGV to work.

Bests,
Jue

James Robinson

unread,
Feb 4, 2021, 7:50:50 PM2/4/21
to igv-help
Hi Jue,

Please describe your problem in detail, what exactly are you doing and what is the error you are seeing?   Also, see the welcome message for this group for the type of information we need to diagnose a problem.


Robin J

unread,
Feb 4, 2021, 8:00:56 PM2/4/21
to igv-help
Hi James, 

Thank you for the reply. 
1. tried IGV version 2.8 and 2.9. computer operating system is macOS Big Sur 
2. Like Xiaoyu, I use sshfs to remotely access my BAM from a server. I've checked the BAM and its index with Samtools view. 
3. my igv log file:

ERROR [2021-02-05T10:49:37,231] [IGV.java:1334]  Error loading track
org.broad.igv.exceptions.DataLoadException: An error occurred while accessing:    /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam<br>Error loading BAM file: htsjdk.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam (Operation not permitted)
at org.broad.igv.track.TrackLoader.load(TrackLoader.java:251) ~[igv.jar:?]
at org.broad.igv.ui.IGV.load(IGV.java:1399) ~[igv.jar:?]
at org.broad.igv.ui.IGV.loadResources(IGV.java:1331) [igv.jar:?]
at org.broad.igv.ui.IGV$4.run(IGV.java:474) [igv.jar:?]
at org.broad.igv.util.LongRunningTask.call(LongRunningTask.java:72) [igv.jar:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
INFO [2021-02-05T10:49:37,234] [TrackLoader.java:122]  Loading resource, path /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam.bai
INFO [2021-02-05T10:49:37,243] [MessageUtils.java:76]  <html><b>ERROR:</b> Loading SAM/BAM index files are not supported:  /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam.bai<br>Load the SAM or BAM file directly. 
INFO [2021-02-05T10:49:42,881] [MessageUtils.java:76]  Error loading /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam: An error occurred while accessing:    /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam<br>Error loading BAM file: htsjdk.samtools.util.RuntimeIOException: java.io.FileNotFoundException: /Users/jiangjue/Downloads/Gadi_bam/UP2142-B.final.bam (Operation not permitted)
INFO [2021-02-05T10:55:38,456] [ShutdownThread.java:47]  Shutting down


Comparing to your suggestion above,  my BAM is not in Desktop or Document, but under the folder of Dowloads. The web version IGV also works for me. 

Bests,
Jue

James Robinson

unread,
Feb 4, 2021, 8:27:48 PM2/4/21
to igv-help
I don't understand, you said you are using sshfs to access a remote file, but then you said your BAM file is in your Downloads folder (as the log indicates). 

I do not have "Big Sur" to test with, but the Mac can be sensitive about files in certain folders.   You might try creating a folder directly under your user home directory and move the bam (and its index) there as a test.   But again I don't understand your reference to sshfs and remote files.



--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/e7b0e44d-f943-44a1-a441-a357c97d27a3n%40googlegroups.com.

Robin J

unread,
Feb 4, 2021, 8:34:56 PM2/4/21
to igv-help
Hi,

Sorry that I didn't make myself clear. 

I use the tool `sshfs` to connect to a server and enable the local access of a BAM on that server without actually download it. In this way, I can open the BAM under the /Users/jiangjue/Downloads/Gadi_bam/ on my computer.  

Bests,
Jue

James Robinson

unread,
Feb 4, 2021, 9:01:32 PM2/4/21
to igv-help
Ah, OK,  I know nothing about sshfs so I will not be much help.  The error message perhaps indicates that the application IGV does not have permission to access that file, as opposed to you as a user having permission.   Check the "Security and Privacy" system settings, under the "Privacy" tab, and see if IGV has permissions to access the Downloads folder.  If not grant it permission.   If that doesn't work I don't have a solution,  you might try loading a local file into IGV from Downloads to see if sshfs has anything to do with it.

Here's my "Privacy" settings, note that IGV has been granted access to Downloads and Desktop

Screen Shot 2021-02-04 at 5.57.27 PM.png

Robin J

unread,
Feb 4, 2021, 9:10:16 PM2/4/21
to igv-help
Hi James,

Thank you for the solutions. I've checked my settings of privacy of files and folders in the system preference, but I don't see the IGV and its options. Also, the "+" button under the software lists does not allow me to add IGV or any other softwares into the list.

Bests,
Jue

James Robinson

unread,
Feb 4, 2021, 9:14:55 PM2/4/21
to igv-help
Did you click the lock ("Click the lock to make changes")?

Robin J

unread,
Feb 4, 2021, 9:18:42 PM2/4/21
to igv-...@googlegroups.com
Yes, I’m now worry about the installation. 

For installation, I unzip the downloaded file, and then click on the IGV. You can see that it load the reference genome smoothly. 


James Robinson

unread,
Feb 4, 2021, 9:26:48 PM2/4/21
to igv-help
Do not use IGV 2.8.0,  it is well out of date.   I think we've established you can run IGV.   You will have to give it permissions to access your Downloads folder if you want to load files from there.   That is not an IGV question, it is a Mac OS question,  you probably need administrative privileges to do that, if you don't have them you will need to ask your administrator.

Robin J

unread,
Feb 4, 2021, 9:44:41 PM2/4/21
to igv-...@googlegroups.com
Hi James,

Thank you for helping me! I’ll look at the ways to allow the access. 

Bests,
Jue

On 5 Feb 2021, at 1:26 pm, James Robinson <jrob...@broadinstitute.org> wrote:

Do not use IGV 2.8.0,  it is well out of date.   I think we've established you can run IGV.   You will have to give it permissions to access your Downloads folder if you want to load files from there.   That is not an IGV question, it is a Mac OS question,  you probably need administrative privileges to do that, if you don't have them you will need to ask your administrator.

On Thu, Feb 4, 2021 at 6:18 PM Robin J <jueri...@gmail.com> wrote:
Yes, I’m now worry about the installation. 

For installation, I unzip the downloaded file, and then click on the IGV. You can see that it load the reference genome smoothly. 
<Screen Shot 2021-02-05 at 1.17.12 pm.png>
<Screen Shot 2021-02-05 at 1.18.21 pm.png>
Reply all
Reply to author
Forward
0 new messages