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 β€” add SQ tags to the SAM file (default: off).
  • --blast INT β€” output alignments in various Blast-like formats:
    1. 0 β€” pairwise
    2. 1 β€” tabular (Blast -m 8 format)
    3. 2 β€” tabular + column for CIGAR
    4. 3 β€” tabular + columns for CIGAR and query coverage
  • --log BOOL β€” output overall statistic (default: off).
  • --num_alignments INT β€” report the first INT alignments per read reaching E-value (default: -1; and heads up, --num_alignments 0 signifies that all alignments will be output).

or (default) πŸ‘‡

  • --best INT β€” report the INT best alignments per read reaching E-value (default: 1), by searching --min_lis INT candidate alignments (--best 0 signifies all candidate alignments will be searched).
  • --min_lis INT β€” search all alignments having the first INT longest 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 --aligned fasta/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 --other fasta/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 β€” INT Mbytes for loading the reads into memory (default: 1024, and the maximum -m INT is 5872).
  • -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's make_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 in indexdb_rna(1), default: L,L/2,3).
  • --edges INT β€” number (or percent, if the INT is 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 β€” add pid to 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 πŸ’…βœ¨πŸ¦‹