Closed mdhall272 closed 5 years ago
Indeed MakeBamIndices runs (from the command line) 'samtools index BamFile' for any BamFile for which BamFile+".bai" doesn't exist. It's encountering an error running that command; "Problem running samtools index. Quitting." was my error message, and the rest is what python is producing on it's own. I've increased the verbosity of my message; have another go. I can't reproduce the error you're getting: when I specify a symlink in place of an actual bam file, it seems to follow the link first and check for the existing of the bai file afterwards - it's not troubled by the lack of a symlink+".bai" file. ?
I was using symbolic links as input .bam and _ref.fasta files, without realising that the .bai files were also expected in the same directory, and got the error message:
This was a bit baffling until I looked at the code. (Also, what is the function MakeBamIndices supposed to do? It it's intended to do something when the .bai file is missing then that did not work for me.)