Free · runs in your browser
samtools
Flagstat, stats, sort, view, depth and duplicate marking for SAM and BAM files.
- Free with a free account
- Nothing to install
- Your files stay on your device
Version: 1.21 · Licence: MIT · Authors' project: htslib.org
What you need
- An alignment file in BAM or SAM format. It does not need to be sorted; the page sorts it where a step needs that.
Sign in with a free account, press Load example, then Run, to see a full result in seconds.
Learn samtools and the full workflow around it in NGS Data Analysis: WGS & WES, a Vedicgen course with a certificate · from ₹6,999 + GSTView course
Reading the result
- Flagstat counts reads by category. Check the mapped and properly paired percentages.
- Stats lists summary numbers such as error rate, average quality and insert size.
- Depth gives the read depth at every position; the mosdepth page turns this into a coverage summary.
- Mark duplicates flags PCR and optical duplicates. A duplicate rate above 20 to 30% for DNA libraries often means low library complexity.
Limits
SAM or BAM up to 200 MB; CRAM is not supported because it needs a reference.
For larger files or whole genomes, plan the run in Solagene AI: it can run the same tool on your own computer through the free Bridge, or on Solagene cloud with Pro.
Cite
Danecek P, et al. (2021). Twelve years of SAMtools and BCFtools. GigaScience 10:giab008. doi:10.1093/gigascience/giab008
Cite, link or share this tool
Open this page, sign in with a free Solagene account, choose your files and press Run. samtools runs inside your browser tab, so there is nothing to install. Sign in with a free Solagene account, then press Load example to try it with a small dataset first.
An alignment file in BAM or SAM format. It does not need to be sorted; the page sorts it where a step needs that.
Flagstat counts reads by category. Check the mapped and properly paired percentages. Stats lists summary numbers such as error rate, average quality and insert size. Depth gives the read depth at every position; the mosdepth page turns this into a coverage summary. Mark duplicates flags PCR and optical duplicates. A duplicate rate above 20 to 30% for DNA libraries often means low library complexity.
Yes. samtools runs in your browser on your own computer, so there is no cost. You sign in with a free Solagene account to use it.
No. Files are read by your browser and processed on your device. Nothing is sent to Solagene.
Yes. This page runs the original samtools 1.21, compiled to WebAssembly by the biowasm project.
SAM or BAM up to 200 MB; CRAM is not supported because it needs a reference. For larger jobs, Solagene AI can plan the same run on your own computer or on Solagene cloud.
Common next steps are mosdepth, Picard, bcftools. Each one also runs free in your browser on Solagene.
Related tools
- mosdepthPer-contig coverage summary, region means, threshold percentages and a cumulative coverage chart.
- PicardInsert-size and alignment summary metrics with Picard's definitions, plus mark duplicates.
- bcftoolsVCF statistics, filtering by expression, normalisation and variant calling from a BAM.
- BWAIndex a reference and align paired reads with BWA MEM, then sort and index the BAM.
- minimap2Map short, Nanopore, PacBio HiFi or genome reads with minimap2, then sort and index the BAM.
- fastpTrim adapters and low-quality bases from FASTQ reads and produce an HTML QC report.