Extract reads from a specific genomic region.
Extract Reads
Extract Reads is used to retrieve sequencing
reads mapped to a specific genomic region from SAM, BAM,
or CRAM alignment files. This tool enables researchers
to focus on particular chromosomes, genes, loci, or
regions of interest without processing the entire
alignment dataset.
.sam)
.bam)
.cram)
Users must specify:
# Extract reads from chromosome 1
samtools view sample.bam chr1
# Extract reads from a genomic region
samtools view sample.bam chr1:100000-200000
# Save extracted reads
samtools view -b sample.bam chr1:100000-200000 > extracted.bam
Read001 99 chr1 105432 60 100M
Read002 147 chr1 105560 60 100M
Read003 99 chr1 105721 60 100M
Each record represents a sequencing read aligned within the selected genomic interval.
Official Samtools Documentation: Samtools View Manual
Li, H., Handsaker, B., Wysoker, A., Fennell, T., Ruan, J., Homer, N., et al. (2009). The Sequence Alignment/Map (SAM) format and SAMtools. Bioinformatics, 25(16), 2078–2079. DOI: 10.1093/bioinformatics/btp352