Entering edit mode
                    5.6 years ago
        Rashedul Islam
        
    
        ▴
    
    480
    I want to get all the reads from a bam file in a single fastq file. I am getting the message "Segmentation fault (core dumped)" while running
bedtools bamtofastq -i in.name.sorted.bam -fq out.fq
However, it works for the PE mode
bedtools bamtofastq -i in.name.sorted.bam -fq out.R1.fq -fq2 out.R2.fq
Bedtools version: v2.29.0
Any suggestion would be very helpful.
It might be because your directory doesn't have enough space/memory or your program is trying to write in a file that is read only.