mapped paired end reads extraction from .bam file
1
0
Entering edit mode
6 weeks ago
t.ali • 0

Hi there, I am working on a project where I have bam file after alignment to reference genome. Now I want to filter out the mapped reads separately(forward and reverse read files) in fastq format. I have tried many commands but it shows the same reads in forward and reverse file. and I am unable to go ahead with the assembly step. Please can anyone help me. Thanks

reads mapped samtools • 181 views
ADD COMMENT
2
Entering edit mode
6 weeks ago
samtools collate -f --threads 4 -O -u --no-PG --reference "ref.fa" "in.bam" TMP/tmp.collate |\
samtools fastq -N --threads 1 -1 TMP/jeter.R1.fq.gz -2 TMP/jeter.R2.fq.gz -s /dev/null -0 /dev/null -n
ADD COMMENT

Login before adding your answer.

Traffic: 1124 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6