Closed ScientistJake closed 4 years ago
Thanks for the question. From the limited information, it is impossible to tell if there is something wrong with the BAM header or the alignment records. You can try piping the BAM file as a SAM to Genrich with samtools view -h <BAM> | Genrich -t - [...]
. Also, the arguments -e -v
mean that all alignments to chromosome -v
are ignored, and Genrich will not be verbose.
Thank you for the quick response. Passing it through samtools works. I'm not sure what the issue was with my bamfile as MACS2 did not have issues.
Genrich compiled with no errors or warnings. When I tried to run it on some samples aligned with bwa mem I got the following error:
Error! Cannot parse BAM file
Here's my call to Genrich:
Genrich -t sample.bwa.mem.bam -o sample.bwa.mem.narrowPeak -j -y -r -e -v
And here's the structure of the bamfile:
Am I missing something?