From 6141d679e8f30a269e9aa2d940f38bef2a503da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciara=CC=81n=20O=27Mara?= Date: Mon, 22 Jun 2020 09:53:54 +1000 Subject: [PATCH] Use `copyto!` https://github.com/BioJulia/BioSequences.jl/pull/95 --- Project.toml | 2 +- src/sam/record.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index f5a56c2..3b2af5e 100644 --- a/Project.toml +++ b/Project.toml @@ -19,7 +19,7 @@ Automa = "0.7, 0.8" BGZFStreams = "0.3" BioAlignments = "2" BioGenerics = "0.1" -BioSequences = "2" +BioSequences = "2.0.4" GenomicFeatures = "2" Indexes = "0.1" TranscodingStreams = "0.6, 0.7, 0.8, 0.9" diff --git a/src/sam/record.jl b/src/sam/record.jl index dc14c02..2d94a12 100644 --- a/src/sam/record.jl +++ b/src/sam/record.jl @@ -399,7 +399,7 @@ function sequence(record::Record)::BioSequences.LongDNASeq end seqlen = length(record.seq) 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 end