From 80a8918ba810bce2c1d6a74876b1fdd50aba4299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilo=20Garc=C3=ADa?= Date: Fri, 29 Mar 2024 18:52:49 -0500 Subject: [PATCH] Fix score field declaration in Gene and ORF structs --- src/types.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.jl b/src/types.jl index bda70f6..12d9c7e 100644 --- a/src/types.jl +++ b/src/types.jl @@ -10,7 +10,7 @@ abstract type AbstractGene end stop::Int64 strand::Char frame::Int8 - score::Union{Float64, Nothing} # Add score field + score::Union{Nothing, Float64} # Add score field attribute::Dict end @@ -39,7 +39,7 @@ This is the main Gene struct, based on the fields that could be found in a GFF3, location::UnitRange{Int64} strand::Char frame::Int - score::Union{Float64, Nothing} # Add score field + score::Union{Nothing, Float64} end The ORF struct represents an open reading frame in a DNA sequence. It has two fields: