Hi community!
I am subsampling input control data for DiffBind analysis to test something. I have merged first input files by using samtools merge and then later samtools view -s "percentage of subsampling"
When I am trying to run DiffBind, then I get this error:
'subsampled_input.bam' does not appear to be a BAM file (bad magic number)
Any ideas? I am browsing in internet. I guess is a problem of the bam file, not of DiffBind. But if you could give some hints I will highly appreciate it.
Thanks
Sergio
Are you *just* using the "
-s
" option? "samtools view
" by default produces SAM output, not BAM. If you haven't already, try "samtools view -b -s
..."Thanks!!! That´s was the error, now working fine!
I could not live without youuuuuuuu and Rory hahaha THANKS!!!