REFEATURE(1)
π REFEATURE(1) π
okay bestie, welcome to the refeature page from the User Commands manual β¨ she's a little command-line queen and honestly? iconic.
πΈ NAME πΈ
refeature β Read a file representing a set of features, optionally
(yes the description literally just trails off like that, no cap, that's what it says π)
π¦ SYNOPSIS π¦
refeature [OPTIONS] <infile>
β¨ DESCRIPTION β¨
So here's the vibe: you hand refeature a file that represents a set of features, and it will read it. Then, if you want, it can alter the set in one or more of several possible ways. Then it outputs it in whatever format you asked for. Periodt. π
Input and output formats may be GFF, BED, or genepred.
β οΈ okay important thing: the input format gets recognized automatically, but autorecognition needs a 'seekable' input stream β like, an actual file, not a pipe from stdin. So don't try to pipe it in, she can't rewind, she's not a VHS π«Ά
π OPTIONS π
--include-only,-i<types> β bestie this is the gatekeeper option. Include only features of the specified types (it's a comma-delimited list) and filter out literally everything else. main character only π₯--include-groups,-l<file> β include only groups whose names are listed in the specified file. The group names in that file have to be delimited by white-space (and they can be spread over any number of lines, she's flexible like that β¨).--sort,-sβ sorts features primarily by start position and secondarily by end position. Usually gives you the desired effect when you've got short overlapping features, like start & stop codons π. Features get sorted both across groups and within groups, but members of a group stay kept together. no splitting up the friend group fr fr π«--unique,-uβ makes sure the output contains no overlapping groups (or subgroups, if you're using-e). If groups do overlap, the one with the highest score (if available) or the longest length (if there's no score) gets kept, and the others get discarded.
β οΈ warning warning: long UTRs can have undesirable results, so filter out UTR exons to avoid that mess. consider yourself warned π
--groupby,-g<tag> β group features according to the specified tag. Default is"transcript_id"π--exongroup,-e<tag> β sub-group features into contiguous sets, and define those sub-groups using the specified tag (like"exon_id"). You can use this to group the features describing individual exons β e.g., each CDS and its flanking splice sites. Only features in the same major group will end up in the same minor group (so like, exons of the same transcript, ykwim? π ).--fix-start-stop,-fβ ensures that CDS features include start codons and exclude stop codons, as required by theGTF2standard. She assumes at most onestart_codonand at most onestop_codonper group. don't test her on that π--add-utrs,-Uβ creates UTR features for the portions of exons outside CDS. Only useful with GFF output, and features must be grouped at the level of transcript πΈ--add-introns,-Iβ creates intron features between exons. Also only useful with GFF output, and features must be grouped at the level of transcript π¦--add-signals,-Sβ adds features for start and stop codons and 3' and 5' splice sites. Only useful with GFF output, and features must be grouped at the level of transcript. Start and stop codons get added as required by theGTF2standard, so you don't need--fix-start-stophere.
β οΈ but heads up: this does not correctly handle the case of a splice site in the middle of a start or stop codon. she said what she said π
--output,-ogff|bed|genepred|wigβ output format, default isgff. And note thatwigoutput is fixedStep and can only be used if all elements have a score and are of equal length. very specific queen energy π--simplebed,-bβ for use with--output bed. Creates a separate line for each feature in bed output (by default, all features of a group are described by a single line). one line per feature, she's spreading out β¨--discards,-d<fname> β writes any discarded features to the specified file. like a lil lost-and-found for the features that didn't make the cut π--help,-hβ prints this help message. always here for you bestie π«Ά
and that's the whole page, you ate that π
this gorgeous thing is refeature 1.4, dated May 2016 β yeah she's vintage but she still serves, mwah πβ¨π
π¦ where this page comes from
- debian bookworm: phast 1.6+dfsg-3+b1 Β· BSD-3-Clause
- debian trixie: phast 1.7+dfsg-2 Β· BSD-3-Clause
- ubuntu jammy: phast 1.6+dfsg-3 Β· BSD-3-Clause
- ubuntu noble: phast 1.6+dfsg-4 Β· BSD-3-Clause
- ubuntu questing: phast 1.7+dfsg-3
- ubuntu resolute: phast 1.8+dfsg-1 Β· BSD-3-Clause
- ubuntu stonking: phast 1.8+dfsg-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms