Hello,
I am trying to use SparseDOSSA2 to simulate a metagenome dataset with multiple sample groups (such as simple case/control). After looking at the tutorial, it seems I want to use the spike-in feature. However, it seems one step is missing from the tutorial (to generate the spike_in_setup dataframe). How would you recommend generating this one?
I also tried simply to do:
n_groups <- 3
metadata <- data.frame(
Group=rep(1:n_groups, each=500))
)
sim <- SparseDOSSA2(
template="Stool",
n_sample=nrow(metadata),
new_features=FALSE,
metadata_matrix=as.matrix(metadata),
verbose=FALSE)
But it doesn't seem the metadata does anything (when I do an NMDS plot of sim$simulated_data, I don't see any grouping). Is it because I need to add something for the spike-in feature_metadata_spike_df argument?
Thank you for your help!
Hello,
I am trying to use SparseDOSSA2 to simulate a metagenome dataset with multiple sample groups (such as simple case/control). After looking at the tutorial, it seems I want to use the spike-in feature. However, it seems one step is missing from the tutorial (to generate the
spike_in_setupdataframe). How would you recommend generating this one?I also tried simply to do:
But it doesn't seem the metadata does anything (when I do an NMDS plot of
sim$simulated_data, I don't see any grouping). Is it because I need to add something for the spike-infeature_metadata_spike_dfargument?Thank you for your help!