Skip to content

Commit

Permalink
updated mafft_add import statement in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerobeson committed Nov 11, 2024
1 parent a565653 commit ee2e35c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rescript/tests/test_trim_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
AlignedDNAFASTAFormat,
DNAIterator,)

from qiime2.plugins import alignment
from qiime2.plugins.alignment.methods import mafft_add

from rescript.trim_alignment import (
_prepare_positions, _process_primers, _locate_primer_positions,
_trim_all_sequences, _trim_alignment)

import_data = qiime2.Artifact.import_data
expand_aln = alignment.actions.mafft_add


class FakeCtx:
Expand Down Expand Up @@ -275,7 +274,7 @@ def test_trim_all_sequences_no_rev(self):
# tests against expected alignment length
def test_trim_alignment_keeplen_false(self):
obs_v4_nokeep_aln = _trim_alignment(
expand_aln,
mafft_add,
self.aligned_silva_seqs_art,
self.v4_primers_dict["forward"],
self.v4_primers_dict["reverse"],
Expand All @@ -292,7 +291,7 @@ def test_trim_alignment_keeplen_false(self):
# tests against expected alignment length
def test_trim_alignment_keeplen_true(self):
obs_v4_keep_aln = _trim_alignment(
expand_aln,
mafft_add,
self.aligned_silva_seqs_art,
self.v4_primers_dict["forward"],
self.v4_primers_dict["reverse"],
Expand Down

0 comments on commit ee2e35c

Please sign in to comment.