We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ee928 commit eb6ead1Copy full SHA for eb6ead1
src/biosequence/biosequence.jl
@@ -44,6 +44,7 @@ Base.keys(seq::BioSequence) = eachindex(seq)
44
Base.nextind(::BioSequence, i::Integer) = Int(i) + 1
45
Base.prevind(::BioSequence, i::Integer) = Int(i) - 1
46
Base.size(x::BioSequence) = (length(x),)
47
+Base.ndims(x::BioSequence) = 1
48
Base.eltype(::Type{<:BioSequence{A}}) where {A <: Alphabet} = eltype(A)
49
Base.eltype(x::BioSequence) = eltype(typeof(x))
50
Alphabet(::Type{<:BioSequence{A}}) where {A <: Alphabet} = A()
src/longsequences/indexing.jl
@@ -66,3 +66,6 @@ end
66
@inbounds data[vi] = (v_ << off) | (bits & ~(bitmask(i) << off))
67
return s
68
end
69
+
70
+# Broadcasting
71
0 commit comments