sample_matrix {KbaseKit} | R Documentation |
This function calculates permutations and derived stats abundance count data.
sample_matrix(file_name, num_perm = 1, perm_type = "sample_rand", write_files = FALSE, perm_dir = "./permutations/", verbose = FALSE, debug = FALSE)
file_name |
Required name or path/name of file to process |
num_perm |
Number of permutations to perform |
perm_type |
Type of permutations: either |
write_files |
Whether to write a file for each permutation / iteration |
perm_dir |
Directory for permutation files |
verbose |
Whether to print verbose output to |
debug |
Whether to print debug output to |
"sample_rand"
shuffles values among fields within a sample / column (dataset distribution is maintained, as is the distribution for each sample / column); "dataset_rand"
shuffles fields within the entire data set (maintaining total counts and the original data set distribution); "complete_rand"
randomly distributes sum of counts about an equally sized matrix (maintaining total counts, but not distribution).
Returns zero on success.
Kevin Keegan
MGRAST_plot_pco
#No examples for you!