Invalid value for --i-demultiplexed-seqs; paired-end-demux.qza is not a QIIME2 artifact (.qza)

Hi all, I am trying to denoise my sequence with the following command:
qiime dada2 denoise-paired
--i-demultiplexed-seqs '/home/chia/paired-end-demux.qza'
--p-trim-left-f 0
--p-trim-left-r 0
--p-trunc-len-f 220
--p-trunc-len-r 200
--o-representative-sequences reps-seqs-dada2.qza
--o-table pet-table.qza
--o-denoising-stats denoising-stats.qza
--p-n-threads 24

But the error shown: (1/1) Invalid value for '--i-demultiplexed-seqs': '/home/chia/paired-end-
demux.qza' is not a QIIME 2 Artifact (.qza)

Is there anyone has any idea on what's the possible solution or problem with my file?

Hello @CHIA,

Can you run file '/home/chia/paired-end-demux.qza and post the output here? You might also try removing the quotes around the path to your demux artifact, though I don't think that should make a difference.

Hi @colinvwood ,
It was actually because of the qza file I have generated earlier was using different version of QIIME2.
As with the latest version I am not sure why I can't use the dada2,so I went to download the older version of QIIME2 which it can't read the qza file generated by the latest version of QIIME2.

Hello @CHIA,

I don't completely understand the issue you're facing now (if you're facing one). Please post any errors you received along with the commands you ran.

This is my error message.

(qiime2-2021.4) chia@chia-MS-7C91:~$ qiime dada2 denoise-paired --i-demultiplexed-seqs '/home/chia/paired-end-demux.qza' --p-trim-left-f 0 --p-trim-left-r 0 --p-trunc-len-f 220 --p-trunc-len-r 200 --o-representative-sequences reps-seqs-dada2.qza --o-table pet-table.qza --o-denoising-stats denoising-stats.qza --p-n-threads 24

Usage: qiime dada2 denoise-paired [OPTIONS]

This method denoises paired-end sequences, dereplicates them, and filters

chimeras.

Inputs:

--i-demultiplexed-seqs ARTIFACT SampleData[PairedEndSequencesWithQuality]

                     The paired-end demultiplexed sequences to be

                     denoised.                                  [required]

Parameters:

--p-trunc-len-f INTEGER

                     Position at which forward read sequences should be

                     truncated due to decrease in quality. This truncates

                     the 3' end of the of the input sequences, which will

                     be the bases that were sequenced in the last cycles.

                     Reads that are shorter than this value will be

                     discarded. After this parameter is applied there must

                     still be at least a 12 nucleotide overlap between the

                     forward and reverse reads. If 0 is provided, no

                     truncation or length filtering will be performed

                                                                [required]

--p-trunc-len-r INTEGER

                     Position at which reverse read sequences should be

                     truncated due to decrease in quality. This truncates

                     the 3' end of the of the input sequences, which will

                     be the bases that were sequenced in the last cycles.

                     Reads that are shorter than this value will be

                     discarded. After this parameter is applied there must

                     still be at least a 12 nucleotide overlap between the

                     forward and reverse reads. If 0 is provided, no

                     truncation or length filtering will be performed

                                                                [required]

--p-trim-left-f INTEGER

                     Position at which forward read sequences should be

                     trimmed due to low quality. This trims the 5' end of

                     the input sequences, which will be the bases that

                     were sequenced in the first cycles.      [default: 0]

--p-trim-left-r INTEGER

                     Position at which reverse read sequences should be

                     trimmed due to low quality. This trims the 5' end of

                     the input sequences, which will be the bases that

                     were sequenced in the first cycles.      [default: 0]

--p-max-ee-f NUMBER Forward reads with number of expected errors higher

                     than this value will be discarded.     [default: 2.0]

--p-max-ee-r NUMBER Reverse reads with number of expected errors higher

                     than this value will be discarded.     [default: 2.0]

--p-trunc-q INTEGER Reads are truncated at the first instance of a

                     quality score less than or equal to this value. If

                     the resulting read is then shorter than `trunc-len-f`

                     or `trunc-len-r` (depending on the direction of the

                     read) it is discarded.                   [default: 2]

--p-min-overlap INTEGER

Range(4, None)       The minimum length of the overlap required for

                     merging the forward and reverse reads.  [default: 12]

--p-pooling-method TEXT Choices('pseudo', 'independent')

                     The method used to pool samples for denoising.

                     "independent": Samples are denoised indpendently.

                     "pseudo": The pseudo-pooling method is used to

                     approximate pooling of samples. In short, samples are

                     denoised independently once, ASVs detected in at

                     least 2 samples are recorded, and samples are

                     denoised independently a second time, but this time

                     with prior knowledge of the recorded ASVs and thus

                     higher sensitivity to those ASVs.

                                                  [default: 'independent']

--p-chimera-method TEXT Choices('none', 'pooled', 'consensus')

                     The method used to remove chimeras. "none": No

                     chimera removal is performed. "pooled": All reads are

                     pooled prior to chimera detection. "consensus":

                     Chimeras are detected in samples individually, and

                     sequences found chimeric in a sufficient fraction of

                     samples are removed.           [default: 'consensus']

--p-min-fold-parent-over-abundance NUMBER

                     The minimum abundance of potential parents of a

                     sequence being tested as chimeric, expressed as a

                     fold-change versus the abundance of the sequence

                     being tested. Values should be greater than or equal

                     to 1 (i.e. parents should be more abundant than the

                     sequence being tested). This parameter has no effect

                     if chimera-method is "none".           [default: 1.0]

--p-n-threads INTEGER The number of threads to use for multithreaded

                     processing. If 0 is provided, all available cores

                     will be used.                            [default: 1]

--p-n-reads-learn INTEGER

                     The number of reads to use when training the error

                     model. Smaller numbers will result in a shorter run

                     time but a less reliable error model.

                                                        [default: 1000000]

--p-hashed-feature-ids / --p-no-hashed-feature-ids

                     If true, the feature ids in the resulting table will

                     be presented as hashes of the sequences defining each

                     feature. The hash will always be the same for the

                     same sequence so this allows feature tables to be

                     merged across runs of this method. You should only

                     merge tables if the exact same parameters are used

                     for each run.                         [default: True]

Outputs:

--o-table ARTIFACT FeatureTable[Frequency]

                     The resulting feature table.               [required]

--o-representative-sequences ARTIFACT FeatureData[Sequence]

                     The resulting feature sequences. Each feature in the

                     feature table will be represented by exactly one

                     sequence, and these sequences will be the joined

                     paired-end sequences.                      [required]

--o-denoising-stats ARTIFACT SampleData[DADA2Stats]

                                                                [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).

--examples Show usage examples and exit.

--citations Show citations and exit.

--help Show this message and exit.

                There was a problem with the command:                     

(1/1) Invalid value for '--i-demultiplexed-seqs': '/home/chia/paired-end-

demux.qza' is not a QIIME 2 Artifact (.qza)

Hello @CHIA,

Can you run file /home/chia/paired-end-demux.qza and post the output here?