CDBYANK(1)
π CDBYANK(1) π
okay bestie, gather round, because today we're talking about cdbyank, a lil tool from the User Commands corner of your manual that goes and fetches stuff out of an index file. think of it as the β¨main characterβ¨ of fasta lookup. no cap. π¦
πΈ NAME πΈ
cdbyank β query an index file created with cdbfasta. that's it. that's the whole vibe check. π
β¨ DESCRIPTION β¨
π« Usage π«
cdbyank <index_file> [-d <fasta_file>] [-a <key>|-n|-l|-s]
[-o <outfile>] [-q <char>|-Q][-F] [-R] [-P] [-x] [-w] [-z <dbfasta.cdbz>
so <index_file> is the index file you (or someone iconic) already made with cdbfasta earlier β it's usually chillin' with a .cidx suffix, iykyk. π
and then here's every single flag, laid out, don't skip a single one because they all matter:
-a <key>β this is the sequence name (aka the accession) of the fasta record you want pulled up. and if you don't pass it? bestie, thencdbyankexpects a whole list of accessions coming in at stdin. π-d <fasta_file>β tells it which fasta file to pull records from. if you leave this out,cdbyankwill go snooping in the same directory where<index_file>lives, looking for a file with the same name but without the.cidxsuffix. it finds it itself, she's independent like that. π-oβ the records that got found are written to the file<outfile>instead of stdout. bye bye terminal spam. π«Ά-xβ this one allows retrieval of multiple records per key, but only if the indexed database actually had records sharing the same key (we call those non-unique keys). and just so we're clear: without-x, only one record for a given key gets retrieved. periodt. β-iβ case insensitive query. heads up though: it expects the<index_file>to have been created with thecdbfasta -ioption. don't come for her if you didn't do that part. π-Qβ outputs the query key surrounded by the character'%', right before the corresponding record. cute lil label moment. π-qβ literally the same as-Qbut you get to use the character<char>instead of'%'. customizable slay. π-wβ enable warnings when a key is not found. those warnings get sent to stderr. lowkey helpful, highkey honest. π-Fβ pulls only the defline for each record, discarding the sequence entirely.-Pβ only displays the position(s) (that's the file offset) within the database file, for the requested record(s). no sequence, just coordinates. π-Rβ sequence range extraction! it expects your input<key(s)>to have the format'<seq_name> <start> <end>'and it pulls only that specified sequence range. slice it, diva. β¨-zβ decompresses the entire file<dbfasta.cdbz>. this one assumes it was built usingcdbfastawith the'-z'option, so don't just assume, okay? π₯-vβ show version number and exit. quick lil hey-hello. π
π§ index file statistics (no database file needed!!) π§
bestie the way these don't even need a database file?? iconic:
-nβ display the number of records indexed.-lβ list all keys stored in<index_file>.-sβ display indexing summary info. πΈ
real talk:-a <key>,-n,-land-slive in the same slot in the synopsis, so it's one of those vibes β pick your path. π
and that's the whole page, you ate it. π this was cdbyank version 1.00, dated December 2025 β from the User Commands fam, written up for you with love. go query something iconic. π¦β¨
π¦ 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