Wanting to use this for my ATAC-seq peak calling pipeline but can't quite seem to get it to work on my bam files.
Have already pre-sorted my bam files using samtools sort -n and when running the following code, it comes up with "Error! 635104 cannot convert to int". Do you know how I can fix this?
for prefix in $(ls *.sorted-readnames.bam); do echo "calling peaks in $prefix"; Genrich -t ${prefix%.*.*}.sorted-readnames.bam \ -o ${prefix%.*.*}.narrowPeak \ -b ${prefix%.*.*}_peaks.bed \ -e MT -E /rds/homes/d/daviesjp/.nextflow/assets/nf-core/atacseq/assets/blacklists/GRCh38_v3.bed \ -p 0.05 -j ; done
Hi,
Wanting to use this for my ATAC-seq peak calling pipeline but can't quite seem to get it to work on my bam files.
Have already pre-sorted my bam files using samtools sort -n and when running the following code, it comes up with "Error! 635104 cannot convert to int". Do you know how I can fix this?
for prefix in $(ls *.sorted-readnames.bam); do echo "calling peaks in $prefix"; Genrich -t ${prefix%.*.*}.sorted-readnames.bam \ -o ${prefix%.*.*}.narrowPeak \ -b ${prefix%.*.*}_peaks.bed \ -e MT -E /rds/homes/d/daviesjp/.nextflow/assets/nf-core/atacseq/assets/blacklists/GRCh38_v3.bed \ -p 0.05 -j ; done
Cheers