In Python, within the qiime2-amplicon-2024.2-py38-linux-conda environment, I'm getting the following error:
>>> from qiime2.plugins.feature_classifier import classify_consensus_vsearch, extract_reads Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'classify_consensus_vsearch' from 'qiime2.plugins.feature_classifier' (unknown location)
I'm trying to redo some database building with existing Python code, following this notebook, just at the beginning:
import Bio
from Bio import SeqIO
import os
import glob
import shutil
import tarfile
import tempfile
import pysam
import urllib.request
from zipfile import ZipFile
from os.path import abspath,exists,join
from collections import defaultdict
from qiime2 import Artifact
from qiime2.plugins.feature_classifier.methods import classify_consensus_vsearch, extract_reads
from qiime2.metadata import Metadata
from qiime2.plugins.feature_table.methods import filter_samples, merge, merge_seqs, merge_taxa, rarefy
from qiime2.plugins.taxa.methods import filter_table
from qiime2.plugins.feature_table.visualizers import summarize
I have no experience with the Python API (or Python as much) any suggestions what is wrong? I think all the other import commands worked without issues (or at least there was no error).
Thanks!