I’m looking for functionality that allows me to tell the methods which OTUs to correlate metadata with. I looked into the code and I’m unsure what “spikein.mt” does but it suspiciously/optimistically looks like it might be some object for telling the downstream code to use specific features for the microbe-metadata correlation? Confirmation and any further resource on the input parameter descriptions to sparseDOSSA() would help a lot.
That is, spikein.mt should be a three column data.frame. feature is index of OTU to be associated. metadata is metadata indices to be associated with the OTU, separated by “;”. strength is the effect size corresponding to each metadata column, also separated by “;”. Note that this parameter only makes sense when you provide your own metadata through UserMetadata. It’ll also bypass parameters such as percent_spiked and spikeStrength.
Thanks for this response. I read the code and discovered more about the functionality. Wished it was documented as it looks like it hasn’t been documented yet!
I am curious about one additional thing, if you are able to answer it. It’s related to microbe-microbe correlation. Is it possible to specify which microbes should be correlated? Or are selected at random?
They are selected at random, and we don’t have a spikein.mt equivalence to specify features at this point. This is a bit hack-y, but you can specify pairs of features to be associated with the same metadata variable, also through spikein.mt. In fact, internally this is how in principle SparseDOSSA specifies correlation between feature pairs.