1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-14 22:33:14 +00:00

Use copyto!

https://github.com/BioJulia/BioSequences.jl/pull/95
This commit is contained in:
Ciarán O'Mara 2020-06-22 09:53:54 +10:00
parent 946068b2f3
commit 6141d679e8
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ Automa = "0.7, 0.8"
BGZFStreams = "0.3" BGZFStreams = "0.3"
BioAlignments = "2" BioAlignments = "2"
BioGenerics = "0.1" BioGenerics = "0.1"
BioSequences = "2" BioSequences = "2.0.4"
GenomicFeatures = "2" GenomicFeatures = "2"
Indexes = "0.1" Indexes = "0.1"
TranscodingStreams = "0.6, 0.7, 0.8, 0.9" TranscodingStreams = "0.6, 0.7, 0.8, 0.9"

View file

@ -399,7 +399,7 @@ function sequence(record::Record)::BioSequences.LongDNASeq
end end
seqlen = length(record.seq) seqlen = length(record.seq)
ret = BioSequences.LongDNASeq(seqlen) ret = BioSequences.LongDNASeq(seqlen)
BioSequences.encode_copy!(ret, 1, record.data, first(record.seq), seqlen) copyto!(ret, 1, record.data, first(record.seq), seqlen)
return ret return ret
end end