You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a protocol for CBEA. As usual with the protocols, I did some internal testing but more formal testing is needed to ensure the accuracy and efficacy of the protocol.
I know the issue said to do this for BugSigDB signatures, but I'm now thinking this should be an enrichment protocol for any microbial signatures, with BugSigDB as an example.
The reason will be displayed to describe this comment to others. Learn more.
I know the issue said to do this for BugSigDB signatures, but I'm now thinking this should be an enrichment protocol for any microbial signatures, with BugSigDB as an example. But the protocol looks good!
Rename to cbea-signature-enrichment with BugSigDB as the worked example.
Address Copilot review: define aggregation by summing relative abundances
with warnings for excluded rows, and specify the pooled cross-sample null,
correlation adjustment, and upper-tail p-values by naming the CBEA functions.
Drafted with Claude Code.
The exported cbea() methods do not forward parallel_backend, so seed with
set.seed() instead. State the null as random subsets drawn from the whole
universe, matching fit_scores().
Drafted with Claude Code.
getSignatures() needs the imported BugSigDB data; it does not retrieve the preceding import result automatically. This example therefore fails with a missing-argument error. Bind the import result and pass it to getSignatures(), as the cited Figure3.Rmd does.
Use the selected distribution instead of hardcoded norm
The parameters permit selecting mnorm, but this call always uses norm. Following the snippet after selecting the mixture model produces normal-model p-values that disagree with the recorded distribution. Pass the selected distribution to keep the call consistent with Steps 4.3–4.5.
Pooled mode does not define how to align taxa before combining datasets. Positive tables with taxa {A, B, C} and {B, C, D} need a merge policy: a union introduces missing values or zeros forbidden by Step 1, while an intersection changes the universe and subsequent balances. Require identical, pre-aligned taxon identifiers, or explicitly define the merge and upstream preprocessing policy. Revalidate the combined table before proceeding so pooling cannot bypass the finite, strictly positive input requirement.
The mnorm correlation adjustment in CBEA 0.99.4 computes the mixture
standard deviation without squaring component terms, so only norm is
permitted. Pooled mode now merges datasets on the union of taxa with
zero replacement applied to the combined table.
Drafted with Claude Code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #18
Added a protocol for CBEA. As usual with the protocols, I did some internal testing but more formal testing is needed to ensure the accuracy and efficacy of the protocol.