Hello John, Thanks for replying to my post. The actual filename is something like sampleID.sorted.bam. I can't post the actual names here though. Each bam has a corresponding sampleID.sorted.bam.bai in the same directory. I am using a older version of pysam, version 0.13, which is part of the pipeline I'm using to analyze this data, I can't easily change this either since it is baked into the analysis pipeline.
I am not copying any files and I would very much like to avoid that if possible since they are so large and there are so many of them. I don't know if I'm using a cloud-access FUSE or not. The IT guy that pointed me toward the directory storing these said it was on our cloud drive or "S3" storage.
or just
if you are sure that the bai is the correct index.