Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotRDA feature loadings #604

Open
antagomir opened this issue Jul 11, 2024 · 4 comments
Open

plotRDA feature loadings #604

antagomir opened this issue Jul 11, 2024 · 4 comments
Assignees

Comments

@antagomir
Copy link
Member

The mia runRDA and plotRDA do not seem to support visualizing feature loadings. This would be very useful to add.

Also in OMA chapter 7.4.1 the examples on this are very base R.

@antagomir
Copy link
Member Author

@ElySeraidarian you could check if this issue is already dealt with in the other issues/PRs?

@ElySeraidarian
Copy link

I believe this will still not work, loadings are not stored either in rotation or loadings slot which makes it impossible for me to detect loadings without a wrapper

@TuomasBorman
Copy link
Contributor

Should be checked if there is a bug

mia/R/runCCA.R

Line 370 in f193173

attr(ans, "rotation") <- X$v

@ElySeraidarian
Copy link

I've tried running that code example found in OMA book and the attribute rotation is not what expected

library(mia)
data("GlobalPatterns", package = "mia") 
tse <- GlobalPatterns
tse <- transformAssay(tse, MARGIN = "cols", method="relabundance")
tse$Group <- tse$SampleType == "Feces"
tse <- runRDA(
    tse,
    assay.type = "relabundance",
    formula = assay ~ Group,
    distance = "bray",
    na.action = na.exclude)
attr(reducedDim(tse, "RDA"), "rotation")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants