GtfRecord
Mojo struct 🡭
GtfRecord
Section titled “GtfRecord”@memory_onlystruct GtfRecordSingle GTF2.2 feature (owned). Coordinates 1-based inclusive.
Fields
Section titled “Fields”- Seqid (
BString) - Source (
BString) - Type (
BString) - Start (
UInt64) - End (
UInt64) - Score (
Optional[Float64]) - Strand (
Optional[GtfStrand]) - Phase (
Optional[UInt8]) - Attributes (
GtfAttributes)
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, ImplicitlyDestructible, Movable, Writable
Methods
Section titled “Methods”def seqid(ref self) -> StringArgs:
- self (
Self)
Returns:
String
source
Section titled “source”def source(ref self) -> StringArgs:
- self (
Self)
Returns:
String
feature_type
Section titled “feature_type”def feature_type(ref self) -> StringArgs:
- self (
Self)
Returns:
String
start_position
Section titled “start_position”def start_position(self) -> PositionArgs:
- self (
Self)
Returns:
Position
end_position
Section titled “end_position”def end_position(self) -> PositionArgs:
- self (
Self)
Returns:
Position
interval
Section titled “interval”def interval(self) -> IntervalArgs:
- self (
Self)
Returns:
Interval
get_attribute
Section titled “get_attribute”def get_attribute(ref self, key: String) -> Optional[BString]Args:
- self (
Self) - key (
String)
Returns:
Optional
write_to
Section titled “write_to”def write_to[w: Writer](ref self, mut writer: w)Write one tab-delimited GTF line.
Parameters:
- w (
Writer)
Args:
- self (
Self) - writer (
w)