train_NBC | R Documentation |
NBC Training Function
train_NBC( asv_table, sample_data, minimum_detection, min_rel_abund, sigma_for_alpha = 10, sigma_for_beta = 30 )
asv_table |
double: rows= ASV names, cols=sample names |
sample_data |
character matrix: column 1 = sample names; column 2 = class labels (e.g. "asthmatic" and "healthy") |
minimum_detection |
integer is how many samples in which the ASV has to be present in to be included in the training |
min_rel_abund |
integer sequencing detection limit - the relative abundance value at which we no longer trust the ASV is truly present |
sigma_for_alpha |
sigma value for alpha MAP prior (default=10) |
sigma_for_beta |
sigma value for beta MAP prior (default=30) |
nested matrix containing 1) parameters for class 1, 2) class 2, 3) both classes, 4) the class names in order, and 5) probability of class 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.