I tried wgbstools bam2pat directory/*.bam -r $region and it gives me 3 lines as a result.
The first line says bam: directory/filename.bam
The second line says Invalid input argument
The third line says Empty bam file
When I check the size of my bam file in that directory, it says 1.85 KB.
I'm not sure why I am getting these errors. Any suggestions?
I used samtools view to check, and it turns out that yes, my bam file was empty. Bam files should have MB units for them to be converted to pat and beta files.
I tried
wgbstools bam2pat directory/*.bam -r $region
and it gives me 3 lines as a result. The first line says bam: directory/filename.bam The second line says Invalid input argument The third line says Empty bam fileWhen I check the size of my bam file in that directory, it says 1.85 KB.
I'm not sure why I am getting these errors. Any suggestions?