SRST2(1)
π srst2 β Short Read Sequence Typer π
okay bestie, pull up a chair, we're doing SRST2 today (that's section 1 of the manual, SRST2(1) if you're keeping score) and honestly? it's giving short read sequence typer and it is SO much less scary than it sounds. let's go π
β¨ SYNOPSIS β¨
srst2 [-h] [--version] [--input_se INPUT_SE [INPUT_SE ...]] [--input_pe
INPUT_PE [INPUT_PE ...]] [--merge_paired] [--forward FORWARD] [--reverse
REVERSE] [--read_type {q,qseq,f}] [--mlst_db MLST_DB] [--mlst_delimiter
MLST_DELIMITER] [--mlst_definitions MLST_DEFINITIONS]
[--mlst_max_mismatch MLST_MAX_MISMATCH] [--gene_db GENE_DB [GENE_DB
...]] [--no_gene_details] [--gene_max_mismatch GENE_MAX_MISMATCH]
[--min_coverage MIN_COVERAGE] [--max_divergence MAX_DIVERGENCE]
[--min_depth MIN_DEPTH] [--min_edge_depth MIN_EDGE_DEPTH] [--prob_err
PROB_ERR] [--stop_after STOP_AFTER] [--other OTHER] [--mapq MAPQ]
[--baseq BASEQ] [--samtools_args SAMTOOLS_ARGS] --output OUTPUT [--log]
[--save_scores] [--report_new_consensus] [--report_all_consensus]
[--use_existing_pileup] [--use_existing_scores]
[--keep_interim_alignment] [--prev_output PREV_OUTPUT [PREV_OUTPUT ...]]
like yes it's a lot of brackets, breathe, we'll get to every single one π«Ά
πΈ DESCRIPTION πΈ
SRST2 - Short Read Sequence Typer (v2)
that's the whole description. short. sweet. main character energy honestly. it types your short reads. it's the whole vibe. π
π OPTIONS π
one bullet per flag, no skipping, we're thorough in this house:
-h,--helpβ shows you this help message and then dips. classic. β¨--versionβ prints the program's version number and exits. little flex. π--input_se INPUT_SE [INPUT_SE ...]β single end read file(s) to analyse. yes bestie, they may be gzipped. π--input_pe INPUT_PE [INPUT_PE ...]β paired end read files for analysing. also may be gzipped, we love a flexible queen. π¦--merge_pairedβ turn this ON if all your input read sets belong to a single sample and you want to merge their data so you get one single result. one sample, one result, one vibe. π--forward FORWARDβ the designator for forward reads. heads up: this is only used if you're NOT in MiSeq formatsample_S1_L001_R1_001.fastq.gzβ otherwise the default is_1, i.e. it expects forward reads assample_1.fastq.gz.--reverse REVERSEβ the designator for reverse reads. same deal: only used if you're NOT in MiSeq formatsample_S1_L001_R2_001.fastq.gzβ otherwise the default is_2, i.e. it expects forward reads assample_2.fastq.gz. (yes, the original says "forward reads" there for the reverse option, we are simply reporting the lore as written, no cap π)--read_type {q,qseq,f}β read file type, forbowtie2. default isq= fastq. other options:qseq= solexa,f= fasta. pick your fighter. π--mlst_db MLST_DBβ fasta file of MLST alleles. it's optional, but likeβ¦ you probably want it. β¨--mlst_delimiter MLST_DELIMITERβ the character(s) separating gene name from allele number in the MLST database. default is"-", as inarcc-1. iconic little hyphen. π--mlst_definitions MLST_DEFINITIONSβ ST definitions for the MLST scheme. required ifmlst_dbis supplied and you actually want to calculate STs. no definitions, no STs, that's the deal. π--mlst_max_mismatch MLST_MAX_MISMATCHβ maximum number of mismatches per read for MLST allele calling. default10.--gene_db GENE_DB [GENE_DB ...]β fasta file/s for gene databases. optional. πΈ--no_gene_detailsβ switches OFF verbose reporting of gene typing. shy mode. π--gene_max_mismatch GENE_MAX_MISMATCHβ maximum number of mismatches per read for gene detection and allele calling. default10.--min_coverage MIN_COVERAGEβ minimum %coverage cutoff for gene reporting. default90.--max_divergence MAX_DIVERGENCEβ maximum %divergence cutoff for gene reporting. default10.--min_depth MIN_DEPTHβ minimum mean depth to flag as a dubious allele call. default5.--min_edge_depth MIN_EDGE_DEPTHβ minimum edge depth to flag as a dubious allele call. default2.--prob_err PROB_ERRβ probability of sequencing error. default0.01.--stop_after STOP_AFTERβ stop mapping after this number of reads have been mapped. otherwise it maps all of them. (all. every last one. π)--other OTHERβ other arguments to pass tobowtie2. must be escaped, e.g."\--no-mixed".--mapq MAPQβ the samtools-qparameter. default1.--baseq BASEQβ the samtools-Qparameter. default20.--samtools_args SAMTOOLS_ARGSβ other arguments to pass tosamtools mpileup. must be escaped, e.g."\-A".--output OUTPUTβ prefix for the srst2 output files. this one's required, note there's no brackets around it in the synopsis. periodt. π--logβ switch ON logging to file. otherwise it logs to stdout. π--save_scoresβ switch ON verbose reporting of all scores. π--report_new_consensusβ if a matching allele is not found, report the consensus allele. note: only SNP differences are considered, not indels. π--report_all_consensusβ report the consensus allele for the most likely allele. note: again, only SNP differences are considered, not indels. π¦--use_existing_pileupβ use existing pileups if they're available. otherwise they will be generated. π--use_existing_scoresβ use existing scores files if available. otherwise they will be generated. β¨--keep_interim_alignmentβ keep the interim files (sam& unsortedbam). otherwise they get deleted after the sortedbamis created. RIP little files. π--prev_output PREV_OUTPUT [PREV_OUTPUT ...]β SRST2 results files to compile. any new results from this run will also be incorporated. π
π EXAMPLE π
okay so imagine you've got a database that was downloaded by getmlst(1) by using:
getmlst --species "Escherichia coli#1"
for SRST2, remember to check what separator is being used in this allele database bestie, do not skip this step. π
looks like --mlst_delimiter '-'
>adk-1 --> --> ('adk', '-', '1')
and the suggested srst2 command for use with this MLST database:
srst2 --output test --input_pe *.fastq.gz --mlst_db
Escherichia_coli#1.fasta --mlst_definitions ecoli.txt
--mlst_delimiter '-'
note: this is correctly guessing that we should use the default --mlst_delimiter '-' with this database. the log file will tell you exactly what files were downloaded. π
more verbose example usage is described in /usr/share/doc/srst2/example.txt.gz. go read it, it's a whole thing. π«Ά
π AUTHOR π
- Michael Inouye (
minouye@unimelb.edu.au) - Harriet Dashnow (
h.dashnow@gmail.com) - Kathryn Holt (
kholt@unimelb.edu.au) - Bernie Pope (
bjpope@unimelb.edu.au)
this manpage was written by Andreas Tille for the Debian distribution and can be used for any other usage of the program. π
and that's the whole page bestie!! srst2 0.1.6, dated December 2015 β go type some reads, you're gonna slay. mwah π β¨π
π¦ where this page comes from
- debian bookworm: srst2 0.2.0-9 Β· BSD-3-Clause
- debian trixie: srst2 0.2.0-13 Β· BSD-3-Clause
- ubuntu jammy: srst2 0.2.0-9 Β· BSD-3-Clause
- ubuntu noble: srst2 0.2.0-11 Β· BSD-3-Clause
- ubuntu questing: srst2 0.2.0-13
- ubuntu resolute: srst2 0.2.0-14 Β· BSD-3-Clause
- ubuntu stonking: srst2 0.2.0-14 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms