CDBFASTA(1)
π NAME π
cdbfasta β bestie she creates an index file for records from a multi-fasta file. that's the whole job, and she does it flawlessly. β¨
π¦ DESCRIPTION π¦
okay so listen. you've got a big ol' multi-fasta file and you want to jump straight to a record instead of scrolling through it like it's a group chat from 2021. cdbfasta makes you an index, and honestly? she ate. π₯
π Usage π
cdbfasta <fastafile> [-o <index_file>] [-r <record_delimiter>]
[-z <compressed_db>] [-i] [-m|-n <numkeys>|-f<LIST>]|-c|-C]
[-w <stopwords_list>] [-s <stripendchars>] [{-Q|-G}]
[-v]
Creates an index file for records from a multi-fasta file. By default β like, when you don't pass -m/-n/-c/-C β only the first space-delimited token from the defline is used as a key. one token, one key, no notes. π
<fastafile> is the multi-fasta file to index. With -o the index file will be named <index_file>. If you don't give it one, the index filename is the database name plus the suffix .cidx. she names her own files, main character energy.
π OPTIONS π
-o<index_file>β names the index file<index_file>. If you don't pass it, the index filename is the database name plus the suffix.cidx.-r<record_delimiter>β a string of characters at the beginning of a line marking the start of a record. Default is'>'. π-Qβ treat the input as fastq format, aka with'@'as the record delimiter and with records expected to have at least 4 lines. lowkey a whole different genre of file.-z<compressed_db>β the database gets compressed into the file<compressed_db>before indexing. and bestie,<fastafile>can be"-"or"stdin"here, so you can pipe the input records in from stdin. π«Ά-s<stripendchars>β strips extraneous characters from around the space-delimited tokens, for the multikey options below (-m,-n,-f). Default<stripendchars>set is:'",`.(){}/[]!:;~|><+-β yes there's a backtick in there, she contains multitudes. π-mβ the "multi-key" option: creates hash entries pointing to the same record for all tokens found in the defline. one record, many doors. πͺβ¨-n<numkeys>β same as-m, but only takes the first<numkeys>tokens from the defline. And when you use it with the-aoption (peep below), it only collects the first<numkeys>accessions from each defline.-fLISTβ indexes space-delimited tokens (fields) in the defline as given byLISTof fields or field ranges β same syntax as UNIXcut, iykyk. βοΈ-w<stopwordslist>β excludes from indexing all the words found in the file<stopwordslist>(for options-m,-nand-k). π«-iβ do case insensitive indexing, i.e. create additional keys for all-lowercase tokens used for indexing from the defline. shout it, whisper it, same key. π’-cβ for deflines in the format:db1|accession1|db2|accession2|..., only the first db-accession pair ('db1|accession1') is taken as the key.-Cβ like-c, but the subsequentdb|accessionconstructs are also indexed, along with the full (default) token. additionally, all nrdb concatenated accessions found in the defline are parsed and stored β assuming0x01or'^|^'as separators. she's thorough!! π-aβ accession mode: like-Cbut indexes only the'accession'part for all'db|accession'constructs found, plus the default first tokens.-Aβ like-aand-Ctogether (both accessions and'db|accession'constructs are used as keys). why choose when you can have both π-Dβ index each pipe ('|') delimited token found in the record identifier, e.g.>key1|key2|key3|..-dβ same as-Dbut using a custom key delimiter<kdelim>instead of the pipe character'|'. your delimiter, your rules. π-Gβ FASTA records are treated as large genomic sequences (e.g. full chromosomes/contigs) and their formatting is checked for suitability for fast range queries β that means uniform line length within each record. no raggedy lines allowed bestie, the range queries need consistency. π-vβ show program version and exit. bye!! π
β οΈ heads up:-sonly strips characters from around the space-delimited tokens, and only matters for the multikey options (-m,-n,-f) β don't expect it to do anything for the plain default key. also-Gstill checks your formatting; if your records aren't uniform, that's on your file, not on her. π
and that's the whole page, bestie β go index something gorgeous. π§π
signing off from cdbfasta version 1.00, dated December 2025, page CDBFASTA(1) β User Commands, mwah ππ
π¦ where this page comes from
- ubuntu resolute: cdbfasta 1.00+git20230710.da8f5ba+dfsg-1build2 Β· PD
- ubuntu stonking: cdbfasta 1.00+git20230710.da8f5ba+dfsg-1build2 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms