samtools-quickcheck(1)
π NAME π
samtools quickcheck β a rapid sanity check on input files
ok so real talk, this is the samtools manual, section 1 (the "Bioinformatics tools" one, you already know π§¬), and we're talking about quickcheck β the little icon that just vibes in and tells you whether your files are even okay before you commit to anything heavy β¨
πΈ SYNOPSIS πΈ
samtools quickcheck [options] in.sam|in.bam|in.cram [ ... ]
π¦ DESCRIPTION π¦
Quickly check that input files appear to be intact. That's the whole assignment, bestie π«Ά
Here's what it actually does, step by step, no cap:
- Checks that the beginning of the file contains a valid header (all formats) containing at least one target sequence
- Then it seeks to the end of the file and checks that an end-of-file (
EOF) is present and intact β BAM and CRAM only tho
the vibes are shallow on purpose β data in the middle of the file is not read, since that would be much more time consuming. So please note: this command will not detect internal corruption. It's literally just here to test that files aren't truncated before you do more intensive tasks on them. Think of it as a vibe check, not a full medical exam π
Exit codes, because they matter: this command will exit with a non-zero exit code if any input files don't have a valid header or are missing an EOF block. Otherwise it will exit successfully (with a zero exit code). Slay π
β¨ OPTIONS β¨
-vβ Verbose output: will additionally print the names of all input files that don't pass the check tostdout. And the way that multiple-voptions work? Each extra one causes additional messages regarding check results to be printed tostderr. So you can stack 'em for maximum yapping π’-qβ Quiet mode: disables warning messages onstderrabout files that fail. Lowkey the "I don't wanna hear it" flag π. If both-qand-voptions are used then the appropriate level of-vtakes precedence β so-vwins the argument, periodt.-uβ Expect unmapped input data, so do not require targets in the header. Perfect for when your file is unmapped and you're not about to be judged for it π
π AUTHOR π
Written by Josh Randall from the Sanger Institute. Icon behavior, fr fr π
π SEE ALSO π
samtools(1)- Samtools website: <http://www.htslib.org/>
ok that's the whole page, mwah π this was samtools-1.24, dated 9 July 2026, and it's the samtools-quickcheck(1) girlies' moment β go check those files, bestie, ily π«Άπ
π¦ where this page comes from
- epel 10: samtools 1.24-2.el10_3 Β· MIT
- nixpkgs unstable: samtools 1.24
- Copyright (C) 2008-2011, 2013-2018 Genome Research Ltd
- copyright (C) 2010, 2011 Broad Institute
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms