Skip to content

Commit

Permalink
Fixes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
kdyrhage committed Nov 12, 2024
1 parent 40a21c4 commit 7e601c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GFF/GFF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/GFF/writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

2 comments on commit 7e601c8

@kdyrhage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/119231

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.1 -m "<description of version>" 7e601c805bc196b00c9d75d6e7b329c648b5659b
git push origin v0.4.1

Please sign in to comment.