Closed seetarajpara closed 6 months ago
Can you list the reference contigs from the input BAM file? For instance, the output from the following:
samtools idxstats m84039_231121_213913_s2.hifi_reads.bam
ah so when I ran that, I got this:
$ samtools idxstats m84039_231121_213913_s2.hifi_reads.bam
* 0 0 5079255
what should I expect to see in these columns?
EDIT to add: I looked through the headers of these BAMs I received, and it said they were sorted by coordinates, AND they had already been through ccs, pbtrim, and jasmine, so I assumed these BAM files were aligned. Does this mean I need to run alignment on them first? I apologize, I'm not used to long read data, and am mostly familiar with post-run processing for short read outputs. I appreciate any advice on this!
Hi @seetarajpara , I think you are right, the issue appears to be that these BAM files are unmapped. The recommended read mapper for HiFiCNV is pbmm2. We can add an improved error message to HiFiCNV to clarify this case.
thank you @ctsa for your prompt responses! I've been running the alignment and sorting, I think by that point I should be ready to run HiFiCNV and other downstream analyses. I appreciate your help!
I set up my test run like this:
and I keep getting this error:
Please let me know what I need to do here, the BAM file I received has been sorted by coordinate, looks like it went through the ccs, pbtrim, and jasmine commands prior to my obtaining the files. I have a viable index, both in .bai and .pbi form. I'm not sure what could possibly be the issue, any advice would be greatly appreciated!