diff --git a/repl/logo.jl b/repl/logo.jl index 1f7250a..1b00afe 100644 --- a/repl/logo.jl +++ b/repl/logo.jl @@ -3,7 +3,8 @@ import FASTX import Makie using Base: front using LogExpFunctions: xlogx -using SequenceLogos: __example_fasta, makie_sequence_logo! +using SequenceLogos: __example_fasta +using SequenceLogos: makie_sequence_logo! using Statistics: mean records = collect(FASTX.FASTA.Reader(open(__example_fasta()))) diff --git a/src/SequenceLogos.jl b/src/SequenceLogos.jl index 5bdfec8..bca8481 100644 --- a/src/SequenceLogos.jl +++ b/src/SequenceLogos.jl @@ -9,9 +9,6 @@ using LazyArtifacts: LazyArtifacts #include("pyplot.jl") #include("bio.jl") include("makie.jl") - -function __example_fasta() - return joinpath(artifact"RF00162_trimmed", "RF00162-trimmed.afa") -end +include("artifacts.jl") end # module diff --git a/src/artifacts.jl b/src/artifacts.jl new file mode 100644 index 0000000..4dbd70c --- /dev/null +++ b/src/artifacts.jl @@ -0,0 +1,3 @@ +function __example_fasta() + return joinpath(artifact"RF00162_trimmed", "RF00162-trimmed.afa") +end