From 7e601c805bc196b00c9d75d6e7b329c648b5659b Mon Sep 17 00:00:00 2001 From: Karl Dyrhage Date: Tue, 12 Nov 2024 10:17:53 +0100 Subject: [PATCH] Fixes #15 --- src/GFF/GFF.jl | 2 +- src/GFF/writer.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GFF/GFF.jl b/src/GFF/GFF.jl index e83e78f..75691bd 100644 --- a/src/GFF/GFF.jl +++ b/src/GFF/GFF.jl @@ -6,7 +6,7 @@ using BioGenerics using DataFrames using CodecZlib -import ..GenomicAnnotations: Record, Gene, AbstractGene, GeneDataView, Locus +import ..GenomicAnnotations: Record, Gene, AbstractGene, GeneDataView, Locus, Join, Order import ..GenomicAnnotations: SpanLocus, ClosedSpan, Complement import ..GenomicAnnotations: sequence, iscomplement, iscomplete, addgene!, pushproperty!, feature, index, locus, oneline export sequence, iscomplement, iscomplete, feature, index, locus diff --git a/src/GFF/writer.jl b/src/GFF/writer.jl index a58d7e8..2d77f25 100644 --- a/src/GFF/writer.jl +++ b/src/GFF/writer.jl @@ -55,10 +55,10 @@ function gffstring(gene::Gene) end end end - if locus(gene).position isa Vector + if locus(gene) isa Union{Join, Order} s = String(take!(buf)) res = IOBuffer() - for pos in locus(gene).position + for pos in locus(gene).loc println(res, join([parent(gene).name, get(gene, :source, "."), feature(gene),