SAK(1)
π SAK(1) β the slicing & dicing era π
okay so bestie, buckle UP, because sak is about to change your whole FASTA/FASTQ workflow and I'm not even being dramatic. this is the manual page for sak, a tool for slicing and dicing of FASTA/FASTQ files β¨
"It slices, it dices and it makes the laundry!"
Original SAK tool by David Weese. Rewrite by Manuel Holtgrewe. kings fr π
π SYNOPSIS π
sak [OPTIONS] [-o OUT.{fa,fq}] IN.{fa,fq}
π DESCRIPTION π
literally what it says on the tin. you feed it sequences, it slices them, it dices them, it makes the laundry. no cap.
π¦ REQUIRED ARGUMENTS π¦
ININPUT_FILEβ bestie you HAVE to give it a file. valid filetypes are:.sam[.*],.raw[.*],.gbk[.*],.frn[.*],.fq[.*],.fna[.*],.ffn[.*],.fastq[.*],.fasta[.*],.fas[.*],.faa[.*],.fa[.*],.embl[.*], and.bam, where*is any of the following extensions:gz,bz2, andbgzffor transparent (de)compression. so basically compressed files just Work, slay π
β¨ OPTIONS β¨
-h,--helpβ display the help message. your lil safety net π«Ά--versionβ display version information. for when you need to know the lore.
πΈ Output Options: πΈ
-o,--out-pathOUTPUT_FILEβ path to the resulting file. if you omit it, the result is printed to stdout in FastQ format. valid filetypes are:.sam[.*],.raw[.*],.frn[.*],.fq[.*],.fna[.*],.ffn[.*],.fastq[.*],.fasta[.*],.fas[.*],.faa[.*],.fa[.*], and.bam, where*is any of the following extensions:gz,bz2, andbgzffor transparent (de)compression. (yes, theemblone is missing here, that's just how it is, don't come for me π)-rc,--revcompβ reverse-complement output. flip the whole vibe, iconic.-l,--max-lengthINTEGERβ maximal number of sequence characters to write out. like a lil trim, but for characters.
π Filter Options: π
-s,--sequenceList of INTEGER'sβ select the given sequence for extraction by 0-based index.-sn,--sequence-nameList of STRING'sβ select sequence with name prefix beingNAME.-ss,--sequencesList of STRING'sβ select sequences from-to where from and to are 0-based indices.-i,--infixList of STRING'sβ select characters from-to where from and to are 0-based indices.-ll,--line-lengthINTEGERβ set line length in output file. see the Line Length section for the deets. in range[-1..inf].
π§ LINE LENGTH π§
okay so you can use the setting --line-length for setting the resulting line length. by default, sequences in FASTA files are written with at most 70 characters per line, and sequences in FASTQ files are written without any line breaks (chaotic but valid). the quality sequence in a FASTQ file is written in the same way as the residue sequence.
the default is selected with a --line-length value of -1, and line breaks can be disabled with a value of 0.
so like:-1= the default behavior,0= no line breaks at all. remember that π
β USAGE EXAMPLES β
sak -s 10 IN.faβ cut out the 11th sequence fromIN.faand write it to stdout as FASTA. (yes,10is 0-based so it's the 11th. the math is mathing.)sak -ss 10-12 -ss 100-200 IN.fqβ cut out the 11th up to and including the 12th, and the 101th up to and including the 199th sequence fromIN.fqand write to stdout as FASTA.
sak -s 10 IN.fa
sak -ss 10-12 -ss 100-200 IN.fq
ngl, those index ranges are lowkey a lot, but the from-to inclusivity is right there in the text, so trust it fr fr π
and that's the whole page, bestie!! this was sak 0.4.12 from the tarball distribution, and the page itself is dated SAK(1). go slice something, you absolute main character ππ β¨
π¦ where this page comes from
- ubuntu stonking: seqan-apps 2.5.2-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms