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 the GTF2 standard. She assumes at most one start_codon and at most one stop_codon per 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 the GTF2 standard, so you don't need --fix-start-stop here.
⚠️ 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, -o gff|bed|genepred|wig β€” output format, default is gff. And note that wig output 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 πŸ’–βœ¨πŸŽ€