FaiRecord
Mojo struct 🡭
FaiRecord
Section titled “FaiRecord”@memory_onlystruct FaiRecordSingle entry from a FASTA/FASTQ .fai index file.
Columns (TAB-delimited): 1. NAME – reference sequence name 2. LENGTH – total length of the reference (bases) 3. OFFSET – byte offset of the first base in the FASTA/FASTQ file 4. LINEBASES – number of bases per sequence line 5. LINEWIDTH – number of bytes per sequence line (including newline) 6. QUALOFFSET – (FASTQ only) byte offset of first quality character or None for FASTA 5-column indexes.
Fields
Section titled “Fields”- Name (
BString) - Length (
Int64) - Offset (
Int64) - LineBases (
Int64) - LineWidth (
Int64) - QualOffset (
Optional[Int64])
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, ImplicitlyDestructible, Movable, Sized, Writable
Methods
Section titled “Methods”def name(ref self) -> StringArgs:
- self (
Self)
Returns:
String
length
Section titled “length”def length(self) -> Int64Args:
- self (
Self)
Returns:
Int64
offset
Section titled “offset”def offset(self) -> Int64Args:
- self (
Self)
Returns:
Int64
line_bases
Section titled “line_bases”def line_bases(self) -> Int64Args:
- self (
Self)
Returns:
Int64
line_width
Section titled “line_width”def line_width(self) -> Int64Args:
- self (
Self)
Returns:
Int64
qual_offset
Section titled “qual_offset”def qual_offset(self) -> Optional[Int64]Args:
- self (
Self)
Returns:
Optional
__len__
Section titled “__len__”def __len__(self) -> IntReturn the reference length as an Int.
Args:
- self (
Self)
Returns:
Int
write_to
Section titled “write_to”def write_to[w: Writer](self, mut writer: w)Write this record as a single .fai line.
Parameters:
- w (
Writer)
Args:
- self (
Self) - writer (
w)