This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
This QIIME 2 plugin supports filtering and trimming of sequence reads based on PHRED scores and ambiguous nucleotide characters.
- version:
2024.10.0
- website: https://
github .com /qiime2 /q2 -quality -filter - user support:
- Please post to the QIIME 2 forum for help with this plugin: https://
forum .qiime2 .org - citations:
- Bokulich et al., 2013
Actions¶
Name | Type | Short Description |
---|---|---|
q-score | method | Quality filter based on sequence quality scores. |
Artifact Classes¶
QualityFilterStats |
Formats¶
QualityFilterStatsFmt |
QualityFilterStatsDirFmt |
quality-filter q-score¶
This method filters sequence based on quality scores and the presence of ambiguous base calls.
Citations¶
Inputs¶
- demux:
SampleData[SequencesWithQuality | PairedEndSequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The demultiplexed sequence data to be quality filtered.[required]
Parameters¶
- min_quality:
Int
The minimum acceptable PHRED score. All PHRED scores less that this value are considered to be low PHRED scores.[default:
4
]- quality_window:
Int
The maximum number of low PHRED scores that can be observed in direct succession before truncating a sequence read.[default:
3
]- min_length_fraction:
Float
The minimum length that a sequence read can be following truncation and still be retained. This length should be provided as a fraction of the input sequence length.[default:
0.75
]- max_ambiguous:
Int
The maximum number of ambiguous (i.e., N) base calls. This is applied after trimming sequences based on
min_length_fraction
.[default:0
]
Outputs¶
- filtered_sequences:
SampleData[SequencesWithQuality]
|
SampleData[JoinedSequencesWithQuality]
The resulting quality-filtered sequences.[required]
- filter_stats:
QualityFilterStats
Summary statistics of the filtering process.[required]
Examples¶
q_score¶
wget -O 'demuxed-seqs.qza' \
'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
qiime quality-filter q-score \
--i-demux demuxed-seqs.qza \
--o-filtered-sequences dumux-filtered.qza \
--o-filter-stats demux-filter-stats.qza
from qiime2 import Artifact
from urllib import request
import qiime2.plugins.quality_filter.actions as quality_filter_actions
url = 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn = 'demuxed-seqs.qza'
request.urlretrieve(url, fn)
demuxed_seqs = Artifact.load(fn)
dumux_filtered, demux_filter_stats = quality_filter_actions.q_score(
demux=demuxed_seqs,
)
- Using the
Upload Data
tool: - On the first tab (Regular), press the
Paste/Fetch
data button at the bottom.- Set "Name" (first text-field) to:
demuxed-seqs.qza
- In the larger text-area, copy-and-paste: https://
amplicon -docs .qiime2 .org /en /latest /data /examples /quality -filter /q -score /1 /demuxed -seqs .qza - ("Type", "Genome", and "Settings" can be ignored)
- Set "Name" (first text-field) to:
- Press the
Start
button at the bottom.
- On the first tab (Regular), press the
- Using the
qiime2 quality-filter q-score
tool: - Set "demux" to
#: demuxed-seqs.qza
- Press the
Execute
button.
- Set "demux" to
- Once completed, for each new entry in your history, use the
Edit
button to set the name as follows: - (Renaming is optional, but it will make any subsequent steps easier to complete.)
History Name "Name" to set (be sure to press [Save]) #: qiime2 quality-filter q-score [...] : filtered_sequences.qza
dumux-filtered.qza
#: qiime2 quality-filter q-score [...] : filter_stats.qza
demux-filter-stats.qza
library(reticulate)
Artifact <- import("qiime2")$Artifact
quality_filter_actions <- import("qiime2.plugins.quality_filter.actions")
request <- import("urllib")$request
url <- 'https://amplicon-docs.qiime2.org/en/latest/data/examples/quality-filter/q-score/1/demuxed-seqs.qza'
fn <- 'demuxed-seqs.qza'
request$urlretrieve(url, fn)
demuxed_seqs <- Artifact$load(fn)
action_results <- quality_filter_actions$q_score(
demux=demuxed_seqs,
)
dumux_filtered <- action_results$filtered_sequences
demux_filter_stats <- action_results$filter_stats
from q2_quality_filter._examples import q_score_example
q_score_example(use)
- Links
- Documentation
- Source Code
- Stars
- 1
- Last Commit
- 86cb430
- Available Distros
- 2024.10
- 2024.10/amplicon
- 2024.10/metagenome
- 2024.5
- 2024.5/amplicon
- 2024.5/metagenome
- 2024.2
- 2024.2/amplicon
- 2023.9
- 2023.9/amplicon
- 2023.7
- 2023.7/core