SORTMERNA(1)
π NAME π
okay so this is SORTMERNA(1), from the User Commands corner of the manual world β and what it does is: filtering, mapping and OTU-picking NGS reads. that's the whole vibe. π§¬β¨
πΈ SYNOPSIS πΈ
sortmerna --ref db.fasta,db.idx --reads file.fa --aligned base_name_output [OPTIONS]
that's it, that's the shape of your command. you give it a ref, you give it reads, you give it somewhere to put the aligned stuff, and then [OPTIONS] is where you go absolutely feral. π
π¦ DESCRIPTION π¦
SortMeRNA is a biological sequence analysis tool for filtering, mapping and OTU-picking NGS reads. the core algorithm is based on approximate seeds, which is the whole reason it can do fast and sensitive analyses of nucleotide sequences at the same time. no cap. the main application is filtering rRNA from metatranscriptomic data. additional applications include OTU-picking and taxonomy assignation, which you can get at through QIIME v1.9+ (http://qiime.org - v1.9.0-rc1).
so what actually goes in and what comes out: SortMeRNA takes as input a file of reads (fasta or fastq format) plus one or multiple rRNA database file(s), and it sorts apart rRNA reads and rejected reads into two files that you, yes you, specify. optionally it can also hand you high quality local alignments of the rRNA reads against the rRNA database. it works with Illumina, 454, Ion Torrent and PacBio data, and it can produce SAM and BLAST-like alignments. it's giving versatility. π
β¨ OPTIONS β¨
π MANDATORY OPTIONS π
these are not optional, bestie. these are the bare minimum. π«Ά
--ref STRING,STRINGβ the FASTA reference file and the index file, comma-separated.
example:
--ref /path/to/file1.fasta,/path/to/index1
if you're passing multiple reference sequence files, separate them by ':'. like this:
--ref /path/f1.fasta,/path/index1:/path/f2.fasta,path/index2
--reads STRINGβ your FASTA/FASTQ reads file.--aligned STRINGβ the filepath + base file name for the aligned reads (the appropriate extension gets added for you, don't worry about it π).
π COMMON OPTIONS π
--other STRINGβ filepath + base file name for the rejected reads (again, appropriate extension gets added).--fastx BOOLβ output FASTA/FASTQ file (default: off, applies to aligned and/or rejected reads).--sam BOOLβ output SAM alignment (default: off, applies to aligned reads only).--SQ BOOLβ addSQtags to the SAM file (default: off).--blast INTβ output alignments in various Blast-like formats:0β pairwise1β tabular (Blast -m 8format)2β tabular + column forCIGAR3β tabular + columns forCIGARand query coverage
--log BOOLβ output overall statistic (default: off).--num_alignments INTβ report the firstINTalignments per read reaching E-value (default:-1; and heads up,--num_alignments 0signifies that all alignments will be output).
or (default) π
--best INTβ report theINTbest alignments per read reaching E-value (default:1), by searching--min_lis INTcandidate alignments (--best 0signifies all candidate alignments will be searched).--min_lis INTβ search all alignments having the firstINTlongest LIS (default:2). LIS stands for Longest Increasing Subsequence, and it gets computed using seeds' positions to expand hits into longer matches prior to Smith-Waterman alignment. fancy, I know. π--print_all_readsβ output null alignment strings for non-aligned reads (default: off), into SAM and/or BLAST tabular files.--paired_in BOOLβ both paired-end reads go in the--alignedfasta/q file (default: off, interleaved reads only, see Section 4.2.4 of the User Manual).--paired_out BOOLβ both paired-end reads go in the--otherfasta/q file (default: off, interleaved reads only, see Section 4.2.4 of the User Manual).--match INTβ SW score (a positive integer) for a match (default:2).--mismatch INTβ SW penalty (a negative integer) for a mismatch (default:-3).--gap_open INTβ SW penalty (a positive integer) for introducing a gap (default:5).--gap_ext INTβ SW penalty (a positive integer) for extending a gap (default:2).-N INTβ SW penalty for ambiguous letters (the N's) (default: scored as--mismatch).-F BOOLβ search only the forward strand (default: off).-R BOOLβ search only the reverse-complementary strand (default: off).-a INTβ number of threads to use (default:1).-e DOUBLEβ E-value threshold (default:1).-m INTβINTMbytes for loading the reads into memory (default:1024, and the maximum-m INTis5872).-v BOOLβ verbose (default: off).
π OTU PICKING OPTIONS π
--id DOUBLEβ %id similarity threshold (the alignment must still pass the E-value threshold, default:0.97).--coverage DOUBLEβ %query coverage threshold (the alignment must still pass the E-value threshold, default:0.97).--de_novo_otu BOOLβ FASTA/FASTQ file for reads matching database < %id (set using--id) and < %cov (set using--coverage) (alignment must still pass the E-value threshold, default: off).--otu_map BOOLβ output OTU map (this is the input to QIIME'smake_otu_table.py, default: off).
π₯ ADVANCED OPTIONS π₯
see the SortMeRNA user manual for more details π
--passes INTβ three intervals at which to place the seed on the read (L is the seed length set inindexdb_rna(1), default:L,L/2,3).--edges INTβ number (or percent, if theINTis followed by a%sign) of nucleotides to add to each edge of the read prior to SW local alignment (default:4).--num_seeds INTβ number of seeds matched before searching for candidate LIS (default:2).--full_search BOOLβ search for all 0-error and 1-error seed matches in the index rather than stopping after finding a 0-error match (<1% gain in sensitivity with up to four-fold decrease in speed, default: off).--pid BOOLβ addpidto output file names (default: off).-h BOOLβ help.--version BOOLβ SortMeRNA version number.
okay and that's the whole page, bestie!! you're gonna slay this filtering run, I can literally feel it. π«Ά
this was sortmerna 2.0, August 2015 β mwah, iconic, no notes, go run your pipeline π β¨π¦
π¦ where this page comes from
- debian bookworm: sortmerna 4.3.6-2 Β· LGPL-3.0-or-later
- debian trixie: sortmerna 4.3.7-2+b2 Β· LGPL-3.0-or-later
- ubuntu jammy: sortmerna 2.1-5 Β· LGPL-3.0-or-later
- ubuntu noble: sortmerna 4.3.6-3build2 Β· LGPL-3.0-or-later
- ubuntu questing: sortmerna 4.3.7-3
- ubuntu resolute: sortmerna 4.3.7-3build1 Β· LGPL-3.0-or-later
- ubuntu stonking: sortmerna 4.3.7-3build1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms