-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The order in which TwoBit and BioSequences are loaded seems to matter.
Loading TwoBit before BioSequences is fine.
(TestTwoBit.jl) pkg> st
Status `~/Projects/TestTwoBit.jl/Project.toml`
[7e6ae17a] BioSequences v2.0.5
[75842c30] TwoBit v0.1.0
julia> using TwoBit
julia> using BioSequences
julia> TwoBit.Record("test", dna"GATC")
TwoBit.WriteRecord{LongDNASeq}("test", GATC, nothing)However, with a fresh session, loading BioSequences before TwoBit raises the following warnings and errors.
julia> using BioSequences
julia> using TwoBit
┌ Warning: Replacing module `BioSequences`
└ @ Base loading.jl:1036
julia> TwoBit.Record("test", dna"GATC")
ERROR: MethodError: no method matching TwoBit.Record(::String, ::LongDNASeq)
Closest candidates are:
TwoBit.Record(::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/TwoBit/yminl/src/record.jl:5
TwoBit.Record(::AbstractString, ::BioSequences.BioSequence) at ~/.julia/packages/TwoBit/yminl/src/record.jl:233
TwoBit.Record(::AbstractString, ::BioSequences.BioSequence, ::Union{Nothing, Vector{UnitRange{Int64}}}) at ~/.julia/packages/TwoBit/yminl/src/record.jl:233
Stacktrace:
[1] top-level scope
@ none:1Metadata
Metadata
Assignees
Labels
No labels