Gff3Record
Mojo struct 🡭
Gff3Record
Section titled “Gff3Record”@memory_onlystruct Gff3RecordSingle GFF3 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[Gff3Strand]) - Phase (
Optional[UInt8]) - Attributes (
Gff3Attributes)
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
get_all_attributes
Section titled “get_all_attributes”def get_all_attributes(ref self, key: String) -> List[BString]Return all values for key (for multi-value GFF3 attributes like Parent).
Args:
- self (
Self) - key (
String)
Returns:
List
write_to
Section titled “write_to”def write_to[w: Writer](ref self, mut writer: w)Write one tab-delimited GFF3 line.
Parameters:
- w (
Writer)
Args:
- self (
Self) - writer (
w)