View source: R/dada_phyloseq.R
postcluster_pq | R Documentation |
physeq
or a list of DNA sequencesThis function use the merge_taxa_vec
function to merge taxa into clusters.
postcluster_pq(
physeq = NULL,
dna_seq = NULL,
nproc = 1,
method = "clusterize",
id = 0.97,
vsearchpath = "vsearch",
tax_adjust = 0,
vsearch_cluster_method = "--cluster_size",
vsearch_args = "--strand both",
keep_temporary_files = FALSE,
swarmpath = "swarm",
d = 1,
swarm_args = "--fastidious",
method_clusterize = "overlap",
...
)
asv2otu(
physeq = NULL,
dna_seq = NULL,
nproc = 1,
method = "clusterize",
id = 0.97,
vsearchpath = "vsearch",
tax_adjust = 0,
vsearch_cluster_method = "--cluster_size",
vsearch_args = "--strand both",
keep_temporary_files = FALSE,
swarmpath = "swarm",
d = 1,
swarm_args = "--fastidious",
method_clusterize = "overlap",
...
)
physeq |
(required): a |
dna_seq |
You may directly use a character vector of DNA sequences
in place of physeq args. When physeq is set, dna sequences take the value of
|
nproc |
(default: 1) Set to number of cpus/processors to use for the clustering |
method |
(default: clusterize) Set the clustering method.
|
id |
(default: 0.97) level of identity to cluster |
vsearchpath |
(default: vsearch) path to vsearch |
tax_adjust |
(Default 0) See the man page
of |
vsearch_cluster_method |
(default: "–cluster_size) See other possible
methods in the vsearch manual (e.g.
|
vsearch_args |
(default : "–strand both") a one length character element defining other parameters to passed on to vsearch. |
keep_temporary_files |
(logical, default: FALSE) Do we keep temporary files
|
swarmpath |
(default: swarm) path to swarm |
d |
(default: 1) maximum number of differences allowed between two
amplicons, meaning that two amplicons will be grouped if they have |
swarm_args |
(default : "–fastidious") a one length character element defining other parameters to passed on to swarm See other possible methods in the SWARM pdf manual |
method_clusterize |
(default "overlap") the method for the |
... |
Other arguments passed on to |
This function use the merge_taxa_vec
function to
merge taxa into clusters. By default tax_adjust = 0. See the man page
of merge_taxa_vec()
.
A new object of class physeq
or a list of cluster if dna_seq
args was used.
Adrien Taudière
VSEARCH can be downloaded from https://github.com/torognes/vsearch. More information in the associated publication https://pubmed.ncbi.nlm.nih.gov/27781170.
vsearch_clustering()
and swarm_clustering()
if (requireNamespace("DECIPHER")) {
postcluster_pq(data_fungi_mini)
}
if (requireNamespace("DECIPHER")) {
postcluster_pq(data_fungi_mini, method_clusterize = "longest")
if (MiscMetabar::is_swarm_installed()) {
d_swarm <- postcluster_pq(data_fungi_mini, method = "swarm")
}
if (MiscMetabar::is_vsearch_installed()) {
d_vs <- postcluster_pq(data_fungi_mini, method = "vsearch")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.