split_clstr_file: Split a Cluster File

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/split_clstr_file.R

Description

This function splits a cluster file containing cluster information for several distances into separate cluster files for each distance.

Usage

1
split_clstr_file(clstr_file = "all_seq_complete.clust", file.prefix = "dist_")

Arguments

clstr_file

The name of the cluster file for multiple distances.

file.prefix

The prefix for the individual cluster files to be written to disk.

Details

Output files have names of the form prefix0.nn.clust where nn is the decimal distance at which sequences were clustered. The resulting cluster files may be used as input to the function assoc_repseq_IDs_with_otus_by_clstr which requires that the input cluster file be for a single distance. The resulting files may also be used as input to clstr2otu with some gain in speed compared to inputting a cluster file with multiple distances.

Value

This function operates on files. It returns a message when it has completed. It is not normally assigned to a variable; if so, the variable contains only the message.

Author(s)

John Quensen

See Also

clstr2otu

assoc_repseq_IDs_with_otus_by_clstr

Examples

1
2
clstr.file <- system.file("extdata", "all_seq_complete.clust", package="RDPutils")
split_clstr_file(clstr_file = clstr.file, file.prefix = "dist_")

jfq3/RDPutils documentation built on Nov. 8, 2019, 1:05 p.m.