You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function Base.convert(::Type{UInt64}, x::LongDNASeq)
return BioSequences.encoded_data(DNAMer(x))
end@inlinefunction BioSequences.LongDNASeq(x::UInt64, len::Int)
returnLongDNASeq(DNAMer{len}(x))
end
I think with update to v3 it got removed. And I am not so sure how to achieve the same with the v3...
I was thinking the code below should work, but something is changed and I am unable to pinpoint the problem.
function Base.convert(::Type{UInt64}, x::LongDNA{4})
x =LongDNA{2}(x)
if (length(x.data) >1)
throw("Sequence too long to save as UInt64.")
endreturnUInt64(x.data[1])
end@inlinefunction BioSequences.LongDNA{4}(x::UInt64, len::Int)
returnLongDNA{4}(LongDNA{2}([x], UInt64(len)))
end
Can someone give advice?
The text was updated successfully, but these errors were encountered:
Kmers are being revamped and redone in a new package - Kmers.jl, they will be based on NTuples and so allow for larger values of K than were previously possible. Your code in the second block looks sensible to me.
I have been using DNAMer for trick like this:
I think with update to v3 it got removed. And I am not so sure how to achieve the same with the v3...
I was thinking the code below should work, but something is changed and I am unable to pinpoint the problem.
Can someone give advice?
The text was updated successfully, but these errors were encountered: