Skip to content

Commit

Permalink
read targets as LongDNA
Browse files Browse the repository at this point in the history
  • Loading branch information
EvoArt committed Dec 3, 2024
1 parent ec1a0e9 commit 30af494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#### Read in fasta files
"""
get_reference(ref_fasta)
Takes a path to a reference fasta. Returns a `Vector{LongDNA{4}}` of reference sequences
and a matrix taxonomic classifications. The reference fasta must be a DADA2-formatted reference database.
See [here](https://benjjneb.github.io/dada2/training.html) for examples.
Expand Down Expand Up @@ -34,7 +34,7 @@ function get_targets(seq_fasta)
seqs = []
open(FASTA.Reader, seq_fasta) do reader
for record in reader
push!(seqs,sequence(record))
push!(seqs,LongDNA{4}sequence(record))
push!(ids,identifier(record))
end
end
Expand Down

0 comments on commit 30af494

Please sign in to comment.