FASTAHACK(1)
πΈ FASTAHACK(1) πΈ
okay bestie, welcome to fastahack β it's a User Command, it's in section 1 of the manual, and it's lowkey the moment. π
β¨ NAME β¨
fastahack β indexing and extracting sequences and subsequences from FASTA files π§¬β¨
π¦ DESCRIPTION π¦
the whole vibe, in one line:
usage: fastahack [options] <fasta reference>
that's it. that's the whole thing. give it a FASTA reference and it will index, extract, entropy and dump for you. no cap. π«Ά
π options: π
-i,--indexβ generate a fasta index at<fasta reference>.faiβ¨ (yes, right next to your reference, minding its own business)-r,--region REGIONβ print the specified region π―-c,--stdinβ read a stream of line-delimited region specifiers on stdin and print the corresponding sequence for each one on stdout π (yes, it's a whole pipeline moment)-e,--entropyβ print the shannon entropy of the specified region π₯ (science!!)-d,--dumpβ print the fasta file in the form'seq_name <tab> sequence'πΎ (tab-separated, exactly like that)
π so like, what even is a REGION? π
REGION is of the form:
<seq>, <seq>:<start>[sep]<end>, <seq1>:<start>[sep]<seq2>:<end>
where start and end are 1-based, and the region includes the end position. and [sep] is "-" or ".." π
and the way it behaves, fr fr:
- specifying a sequence name alone will return the entire sequence
- specifying a range will return that range
- and specifying a single coordinate pair, e.g.
<seq>:<start>, will return just that base β one singular base, she's tiny but she's iconic π
ngl the 1-based + inclusive-end thing is the detail everyone gets wrong, so like, write it down bestie π
π author: π
Erik Garrison <erik.garrison@bc.edu> β king behaviour, we stan π
and that's the page!! fastahack 1.0.0+dfsg-11, dated December 2023 πΈ this has been your girl explaining FASTA hacking with main character energy. go index something. slay. π β¨π¦
π¦ where this page comes from
- ubuntu noble: fastahack 1.0.0+dfsg-11 Β· MIT
- ubuntu questing: fastahack 1.0.0+dfsg-11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms