Hi @Mehrbod_Estaki,
I'm extremely sorry for the late reply. I couldn't get anything to work so I went ahead with a classifier I trained with the same files a long time ago without extracting reads.
I have copy pasted the error again. I ran the codes with and without specifying paths (by changing the directory). please see below
ls qiime2-compatible-phytoref-files/
Phyto_16S_plastid_qiime2.qza Phyto_16S_plastid_taxonomy.qza
uth@nightowl:~/Uthpala/classifier-files$
qiime feature-classifier extract-reads --i-sequences qiime2-compatible-phytoref-files/Phyto_16S_plastid_qiime2.qza --p-f-primer GTGCCAGCMGCCGCGGTAA --p-r-primer GGACTACHVGGGTWTCTAAT --o-reads reference-seqs-phytoref.qza --verbose
Usage: qiime feature-classifier extract-reads [OPTIONS]
Extract sequencing-like reads from a reference database.
Inputs:
--i-sequences ARTIFACT FeatureData[Sequence]
[required]
Parameters:
--p-f-primer TEXT forward primer sequence [required]
--p-r-primer TEXT reverse primer sequence [required]
--p-trunc-len INTEGER read is cut to trunc-len if trunc-len is positive.
Applied before trim-left. [default: 0]
--p-trim-left INTEGER trim-left nucleotides are removed from the 5' end
if trim-left is positive. Applied after trunc-len.
[default: 0]
--p-identity NUMBER minimum combined primer match identity threshold.
[default: 0.8]
--p-min-length INTEGER Minimum amplicon length. Shorter amplicons are
Range(0, None) discarded. Applied after trimming and truncation, so
be aware that trimming may impact sequence
retention. Set to zero to disable min length
filtering. [default: 50]
--p-max-length INTEGER Maximum amplicon length. Longer amplicons are
Range(0, None) discarded. Applied before trimming and truncation,
so plan accordingly. Set to zero (default) to
disable max length filtering. [default: 0]
--p-n-jobs INTEGER Number of seperate processes to run.
Range(1, None) [default: 1]
--p-batch-size VALUE Int % Range(1, None) | Str % Choices('auto')
Number of sequences to process in a batch. The
auto
option is calculated from the number of
sequences and number of jobs specified.
[default: 'auto']
Outputs:
--o-reads ARTIFACT FeatureData[Sequence]
[required]
Miscellaneous:
--output-dir PATH Output unspecified results to a directory
--verbose / --quiet Display verbose output to stdout and/or stderr
during execution of this action. Or silence output
if execution is successful (silence is golden).
--citations Show citations and exit.
--help Show this message and exit.
There was a problem with the command:
(1/1) Invalid value for "--i-sequences": 'qiime2-compatible-phytoref-
files/Phyto_16S_plastid_qiime2.qza' is not a QIIME 2 Artifact (.qza)
uth@nightowl:~/Uthpala/classifier-files/qiime2-compatible-phytoref-files$
*qiime feature-classifier extract-reads *
*> --i-sequences Phyto_16S_plastid_qiime2.qza *
*> --p-f-primer GTGCCAGCMGCCGCGGTAA *
*> --p-r-primer GGACTACHVGGGTWTCTAAT *
*> --o-reads reference-seqs-phytoref.qza *
> --verbose
Usage: qiime feature-classifier extract-reads [OPTIONS]
Extract sequencing-like reads from a reference database.
Inputs:
--i-sequences ARTIFACT FeatureData[Sequence]
[required]
Parameters:
--p-f-primer TEXT forward primer sequence [required]
--p-r-primer TEXT reverse primer sequence [required]
--p-trunc-len INTEGER read is cut to trunc-len if trunc-len is positive.
Applied before trim-left. [default: 0]
--p-trim-left INTEGER trim-left nucleotides are removed from the 5' end
if trim-left is positive. Applied after trunc-len.
[default: 0]
--p-identity NUMBER minimum combined primer match identity threshold.
[default: 0.8]
--p-min-length INTEGER Minimum amplicon length. Shorter amplicons are
Range(0, None) discarded. Applied after trimming and truncation, so
be aware that trimming may impact sequence
retention. Set to zero to disable min length
filtering. [default: 50]
--p-max-length INTEGER Maximum amplicon length. Longer amplicons are
Range(0, None) discarded. Applied before trimming and truncation,
so plan accordingly. Set to zero (default) to
disable max length filtering. [default: 0]
--p-n-jobs INTEGER Number of seperate processes to run.
Range(1, None) [default: 1]
--p-batch-size VALUE Int % Range(1, None) | Str % Choices('auto')
Number of sequences to process in a batch. The
auto
option is calculated from the number of
sequences and number of jobs specified.
[default: 'auto']
Outputs:
--o-reads ARTIFACT FeatureData[Sequence]
[required]
Miscellaneous:
--output-dir PATH Output unspecified results to a directory
--verbose / --quiet Display verbose output to stdout and/or stderr
during execution of this action. Or silence output
if execution is successful (silence is golden).
--citations Show citations and exit.
--help Show this message and exit.
There was a problem with the command:
(1/1) Invalid value for "--i-sequences": 'Phyto_16S_plastid_qiime2.qza' is
not a QIIME 2 Artifact (.qza)
Many thanks!
Uthpala