GT-EXTRACTFEAT(1)
π GT-EXTRACTFEAT π
okay so bestie, welcome to gt-extractfeat from the GenomeTools Manual β yes the manual name goes here, slay, we move. This is the tool that goes and extracts the features you asked for out of your sequence files, based on the GFF3 file. it's giving little-miss-grabs-your-exons. π
πΈ NAME πΈ
gt-extractfeat β pull the features listed in a GFF3 file out of a sequence file. that's it, that's the whole job, and she does it flawlessly β¨
π¦ SYNOPSIS π¦
gt extractfeat [option ...] [GFF3_file]
so it's the tool name, then whatever options you want, then optionally your GFF3 file. GFF3 file is optional, not me pointing that out or anything. π
π DESCRIPTION π
β¨ the options, one by one, no skipping β¨
-type[string] β tells her which type of features to extract. default: undefined (so likeβ¦ say something, bestie).-join[yes|no] β joins the feature sequences that live in the same subgraph into one single sequence. default: no. they're getting fused, fr fr.-translate[yes|no] β translates the features (of a DNA sequence) into protein. default: no. glow-up from nucleotides to amino acids honestly.-seqid[yes|no] β adds the sequence ID of the extracted features to the FASTA descriptions. default: no.-target[yes|no] β adds the target ID(s) of the extracted features to the FASTA descriptions. default: no.-coords[yes|no] β adds the location of the extracted features to the FASTA descriptions. default: no.-retainids[yes|no] β uses theIDattributes of the extracted features as the FASTA descriptions. default: no. keeping the original names, iconic behaviour. π-gcode[value] β picks the genetic code to use. default: 1. (there's a whole list of these below, don't worry, she's thorough.)-seqfile[filename] β sets the sequence file to take the sequences from. default: undefined.-encseq[filename] β sets the encoded sequence indexname to take the sequences from. default: undefined.-seqfilesβ sets the sequence files to extract the features from. use--to terminate the list of sequence files. (yes,--, the little signal that the list is done. periodt.)-matchdesc[yes|no] β searches the sequence descriptions in the input files for the desired sequence IDs (in GFF3), and reports the first match. default: no.-matchdescstart[yes|no] β exactly matches the sequence descriptions from the input files for the desired sequence IDs (in GFF3) from the beginning all the way to the first whitespace. default: no.-usedesc[yes|no] β uses sequence descriptions to map the sequence IDs (in GFF3) to the actual sequence entries. if a description contains a sequence range (like, e.g.,III:1000001..2000000), the first part gets used as the sequence ID (III) and the first range position gets used as the offset (1000001). default: no. the way she splits that up π-regionmapping[string] β sets the file containing the sequence-region to sequence file mapping. default: undefined.-v[yes|no] β be verbose. default: no. she will literally tell you everything.-width[value] β sets the output width for FASTA sequence printing (0disables formatting). default: 0.-o[filename] β redirects output to the specified file. default: undefined.-gzip[yes|no] β writes a gzip compressed output file. default: no.-bzip2[yes|no] β writes a bzip2 compressed output file. default: no.-force[yes|no] β forces writing to the output file. default: no. she's not asking permission, she's telling you. π-helpβ displays help and exits. our little "girl help" moment, but make it useful. π«Ά-versionβ displays version information and exits.
𧬠genetic code numbers for option -gcode π§¬
okay here's the whole roster, no cap, every single one:
- Standard
- Vertebrate Mitochondrial
- Yeast Mitochondrial
- Mold Mitochondrial; Protozoan Mitochondrial; Coelenterate Mitochondrial; Mycoplasma; Spiroplasma
- Invertebrate Mitochondrial
- Ciliate Nuclear; Dasycladacean Nuclear; Hexamita Nuclear
- Echinoderm Mitochondrial; Flatworm Mitochondrial
- Euplotid Nuclear
- Bacterial, Archaeal and Plant Plastid
- Alternative Yeast Nuclear
- Ascidian Mitochondrial
- Alternative Flatworm Mitochondrial
- Blepharisma Macronuclear
- Chlorophycean Mitochondrial
- Trematode Mitochondrial
- Scenedesmus obliquus Mitochondrial
- Thraustochytrium Mitochondrial
- Pterobranchia Mitochondrial
- Candidate Division SR1 and Gracilibacteria
bestie yes, the numbers skip.7,8,17,18,19,20are justβ¦ not on the list. do not come for me, I'm only the messenger. π
π file format for option -regionmapping π
the file you hand to -regionmapping defines a "mapping". a mapping maps the sequence-region entries given in the GFF3_file to a sequence file that contains the corresponding sequence. mappings can be defined in one of the following two forms:
mapping = {
chr1 = "hs_ref_chr1.fa.gz",
chr2 = "hs_ref_chr2.fa.gz"
}
or
function mapping(sequence_region)
return "hs_ref_"..sequence_region..".fa.gz"
end
so, the tea: the first form defines a Lua (http://www.lua.org) table named "mapping" which maps each sequence region to the corresponding sequence file. the second one defines a Lua function "mapping", and that function has to return the sequence file name when it gets called with the sequence_region as its argument. two forms, one job, she ate. π₯
π REPORTING BUGS π
found a bug? report it, bestie, don't just suffer in silence:
https://github.com/genometools/genometools/issues
that's the whole page, you made it, I'm so proud π₯Ήπ this was GenomeTools 1.6.6, dated 11/09/2025, and that's the cute little sign-off from yours truly. go extract something iconic. β¨ππ
π¦ where this page comes from
- ubuntu resolute: genometools 1.6.6+ds-2
- ubuntu stonking: genometools 1.6.6+ds-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms