Sample reads across mapping
1
0
Entering edit mode
2.8 years ago
MH85 ▴ 10

Hi everyone,

I have a mapping of PE reads to reference with a mean coverage of about 100 x. I need to sample (extract) reads across the alignment randomly to reduce coverage. Optimally but not necessarily, if there is heterozygote SNP, extract reads of both alleles.

Is there any way how to do it?

Thanks a lot in advance Milos

bam2fasta mapping extract_reads • 634 views
ADD COMMENT
2
Entering edit mode
2.8 years ago

see samtools view -s

  -s FLOAT subsample reads (given INT.FRAC option value, 0.FRAC is the
           fraction of templates/read pairs to keep; INT part sets seed)
ADD COMMENT
0
Entering edit mode

Thank you very much, Pierre!!! This is exactly what I need.

ADD REPLY

Login before adding your answer.

Traffic: 1986 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