/// Converts GFF3 record to the internal `Gene` representation
Converts GFF3 record to the internal `Gene` representation
Converts GFF3 record to the internal ` Gene ` representation
pub fn convert_gff_record_to_gene(gene_name: &str, record: &GffRecord) -> Result<Gene, Report> {
  let start = (*record.start() - 1) as usize; // Convert to 0-based indices
  Ok(Gene {
    gene_name: gene_name.to_owned(),
    start,
    end: *record.end() as usize,
    strand: record.strand().map_or(GeneStrand::Unknown, |s| s.into()),
    frame: parse_gff3_frame(record.frame(), start),
  })
}
pub fn convert_gff_record_to_gene ( gene_name : & str , record : & GffRecord ) -> Result < Gene , Report > { let start = ( * record . start ( ) - 1 ) as usize ; // Convert to 0-based indices Ok ( Gene { gene_name : gene_name . to_owned ( ) , start , end : * record . end ( ) as usize , strand : record . strand ( ) . map_or ( GeneStrand :: Unknown , | s | s . into ( ) ) , frame : parse_gff3_frame ( record . frame ( ) , start ) , } ) }
Converts GFF3 record to the internal `Gene` representation
Converts GFF3 record to the internal ` Gene ` representation
gene_name
&str
record
&GffRecord