Right, so when I looked at this initially my first step was checking that the headers in the bam file were right. Indeed, each line looks something like this @SQ SN:$chromosome LN:$length and the chromosomes correspond correctly to the chromosome in the reference fasta.
I thought it might be an error with a missing index, so I tried re-indexing all of them with
for file in $(cat $Bamfiles); do echo $file; samtools index $file; done
Unfortunately, this alone did not fix the error. Is there a way to check their content?
Hello Ace!
We believe that this post does not fit the main topic of this site.
Error resolved
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
No need to close the post. That is an action used by moderators for inappropriate, incomplete, off-topic posts.
You can
acceptyour own answer below to provide closure to this thread.