# How to use decontam-identify to clean table and repseqs in 2025.7?

**URL:** <https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485>\
**Category:** User Support\
**Tags:** decontam\
**Created:** [July 22, 2025, 2:40pm UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485 "2025-07-22T14:40:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arwqiime](https://forum.qiime2.org/user_avatar/forum.qiime2.org/arwqiime/32/12728_2.png) [@arwqiime](https://forum.qiime2.org/u/arwqiime)\
**Post date:** [July 22, 2025, 2:40pm UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485/1 "2025-07-22T14:40:56Z")

</div>

Hello,  
I have recieved the warning about `decontam-remove` using q2-amplicon-2025.4. I found the following update in the 2025.7 release document.

> [@QIIME 2 2025.7 is now available!](https://forum.qiime2.org/t/qiime-2-2025-7-is-now-available/33447/1):
>
> @jordenrabasco removed the `decontam-remove` action, as this was redundant with other workflows for removing features from feature tables. You should now use `qiime feature-table filter-features` and `qiime feature-table filter-seqs`

Although `decontam-remove` is still working in 2025.4, I was trying to use `q2 feature-table filter-features` and `filter-seqs` as recommended. These two commands require an artifact of `FeatureTable[Frequency]`, but `q2 quality-filter decontam-identify` produces an artifact of `FeatureData[DecontamScore]`.  
How should I used the output of `decontam-identify` to clean the abundance table and representative sequences?

Until 2025.4, I used the filtered table output from `decontam-remove` as an input to `filter-seqs` command.

Best,

---

<div class="post-metadata">

**Author:** ![jordenrabasco](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jordenrabasco/32/16424_2.png) [@jordenrabasco](https://forum.qiime2.org/u/jordenrabasco)\
**Post date:** [July 22, 2025, 3:15pm UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485/2 "2025-07-22T15:15:15Z")

</div>

Hi @arwqiime,

Thanks for using the plugin! To now filter features from your table you will need to use the `qiime feature-table filter-features ` plugin, where your unaltered feature table is the input and the obj from `decontam-identify` output is the metadata. I will be updating the tutorial soon with the appropriate commands in the place of decontam remove. An example of the commands are below where THRESHOLD is a value between 0-1 for decontam score filtering:

Feature-Table Filtering:  
`qiime feature-table filter-features --i-table meta-genomic-bracken-feature-table.qza --m-metadata-file mgt_decontam_scores.qza --p-where '[p]>THRESHOLD OR [p] IS NULL' --o-filtered-table mgt_filtered_table.qza`

Representative-Sequences filtering:  
`qiime feature-table filter-seqs --i-data representative_sequences.qza --i-table no_subset_filtered_table.qza --o-filtered-data filtered_rep_seq.qza`

Let me know if you have any other questions or issues with the above commands!

best,

Jorden Rabasco

---

<div class="post-metadata">

**Author:** ![arwqiime](https://forum.qiime2.org/user_avatar/forum.qiime2.org/arwqiime/32/12728_2.png) [@arwqiime](https://forum.qiime2.org/u/arwqiime)\
**Post date:** [July 23, 2025, 7:18am UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485/3 "2025-07-23T07:18:20Z")

</div>

Hi @jordenrabasco  
Thank you for your explanation how to provide the decontam-scores table as a metadata-file!

Related to this a short question: My workflow to remove putative contamination hat three steps:

1. remove putativ contaminant features by (now) `feature-table filter features`
2. remove the control sample by `feature-table filter-samples`
3. remove putative contaminant sequences by `feature-table filter-seqs` using table from 1) and the original representative sequences.

I assume that there is no combined way to do this like the `feature-table filter-feature-conditionally` command, and I have to do it with the three steps above?

Best,

---

<div class="post-metadata">

**Author:** ![jordenrabasco](https://forum.qiime2.org/user_avatar/forum.qiime2.org/jordenrabasco/32/16424_2.png) [@jordenrabasco](https://forum.qiime2.org/u/jordenrabasco)\
**Post date:** [July 23, 2025, 3:12pm UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485/4 "2025-07-23T15:12:24Z")

</div>

> [@arwqiime](#):
>
> ion:

Hi @arwqiime ,

Of course!

Yes to my knowledge there is not combined way to do the functionality from the three steps outlined above. The motivation for removing the command `decontam-remove`, was to make the workflow more applicable to QIIME 2 metagenomic workflows as well as amplicon. While this does then require more commands at the end of the day, it will hopefully make the workflow more accessible across the QIIME 2 community as a whole.

best,

Jorden

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [August 23, 2025, 9:12pm UTC](https://forum.qiime2.org/t/how-to-use-decontam-identify-to-clean-table-and-repseqs-in-2025-7/33485/5 "2025-08-23T21:12:40Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
