Closed emoiso closed 4 months ago
Thanks for the question. It is better to run Genrich on an original BAM file, but there shouldn't be a problem calling peaks from a valid BAM file derived from a BED file. Can you please post the first few lines of the BAM header? samtools view -H file2.bam | head -n5
Thank you for the quick response.
This is the header:
$ samtools view -H file2.bam | head -n5
@HD VN:1.0 SO:coordinate
@PG ID:BEDTools_bedToBam VN:Vv2.29.2
@PG ID:samtools PN:samtools PP:BEDTools_bedToBam VN:1.10 CL:samtools sort
@PG ID:samtools.1 PN:samtools PP:samtools VN:1.10 CL:samtools view -H file2.bam
@SQ SN:chr1 AS:genome.file LN:195154279
Thanks! I do not see a problem with the BAM header though. Could you attach the BAM file here? Or better yet, a small part of it that still gives the no analyzable fragments
error. samtools view -h file2.bam | head -n1000 > file2_1k.sam
Hi John, How are you?
I was able to successfully run Genrich on a bam file (as follow).
Great success, great software, thank you.
Now I'd like to call peak on a bam file, derived from a bed file. Is it even possible? I follow this procedure:
I assume the failure is caused by missing information/fields in my bam file. Can you help understand which are the required fields that are misssing, please?
Thank you in advance Best, Enrico