Description Usage Arguments Details Value Examples
Collect CLUMPP output files from multiple folders to one folder
1 2 3 4 5 6 | collectClumppOutput(
prefix = "pop",
filetype = "aligned",
runsdir = NULL,
newdir = NULL
)
|
prefix |
A character indicating the prefix of the CLUMPP directories before the underscore. For ex. if the directories are pop_K2, then prefix is pop. |
filetype |
A character indicating the type of file to be copied. Options are 'aligned' to copy aligned files only, 'merged' to copy merged files only and 'both' to copy both files. |
runsdir |
A character path denoting the directory containing CLUMPP output
files in multiple directories. To use the current working directory, set |
newdir |
A character path indicating the name of the new output directory to be created with the collected runs. |
Within each CLUMPP output folder, the function searches for filenames containing combination of prefix and filetype. This file is copied to the new folder. Therefore, do not manually rename CLUMPP output files or output directories.
See the vignette for more details.
Two integers are returned. The first denotes the number of directories processed. The second number denotes the number files copied.
1 2 3 4 5 | ## Not run:
collectClumppOutput(runsdir=getwd(),newdir="output")
collectClumppOutput(prefix="pop",filetype="both",runsdir="/path/",newdir="both")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.