converting Bam to fastq while removing clipping(hard/soft clip bases)

converting Bam to fastq while removing clipping(hard/soft clip bases)

0

Hello,

I want to do some analysis and my raw data is paired-end reads fastq files. So far:

  1. I used BWA mem to convert them to Sam file

  2. then used samtools to convert to BAM file.

My next step is to convert bam file to fastq file and for that, first I need to exclude the clipping (hard/soft clip bases). Is there any tool that does this while converting to fastq file?

So far, I looked into few tools below:

  1. samtools: I couldn’t find any option that remove clipping while converting to fastq.
  2. picard: –CLIPPING_ACTION seems to do this if I set it to ‘X’. But I am not sure.


bam_to_fastq


hard_clipping


Soft_clipping


tools


remove_clipping

• 20 views

Read more here: Source link