Closed swvanderlaan closed 4 years ago
Hi Sander, @swvanderlaan It is difficult to reproduce your error without an small reproducible example.
You can use prepMultiAssay
in the following way:
complist <- prepMultiAssay(ExperimentList, colData, sampleMap)
MultiAssayExperiment(
experiments = complist[["experiments"]],
colData = complist[["colData"]],
sampleMap = complist[["sampleMap"]]
)
I hope this helps. Best, Marcel
Yes, sorry about not having the data. This https://github.com/waldronlab/MultiAssayExperiment/issues/277#issuecomment-634213625 option doesn't work. I get the same error.
Here is the traceback
:
15. vec_index(x, i, ...)
14. `[.vctrs_vctr`(structure(c(NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 3, NA, NA, 3, NA, 5, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, ...
13. .Primitive("[")(structure(c(NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 3, NA, NA, 3, NA, 5, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 3, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, ...
12. do.call(`[`, args)
11. do.call(`[`, args)
10. FUN(X[[i]], ...)
9. FUN(X[[i]], ...)
8. lapply(as.list(x), extractROWS, i)
7. lapply(as.list(x), extractROWS, i)
6. extractROWS(x, i) 5. extractROWS(x, i)
4. colData[keep_colData, , drop = FALSE]
3. colData[keep_colData, , drop = FALSE]
2. .harmonize(experiments, colData, sampleMap)
1. MultiAssayExperiment(experiments = objlist, colData = AEDB_all, sampleMap = dfmap)
I don't see what I am doing wrong:
primary
column in the sampleMap
matches the colname
column of the assay data (format: 8918692001_R01C02). primary
column in the colData
matches the primary
column in the sampleMap
. This is the correct mapping, right?
And I have colData
rows summing up to 186, which equals 2 assays of each 93 samples...
So what am I missing?
Hi Sander, @swvanderlaan
Unfortunately, I am unable to reproduce the issue with the examples that you provided. If you'd like further assistance, please provide a minimally reproducible example. https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Best, Marcel
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
First of all: thank you for this awesome package.
I am trying to combine to assays in one
MultiAssayExperiment
. When I use thetry
function it seems to be alright. See below. But when I try to actually combine them, it doesn't (see below). I don't get why not. What I am I missing/overlooking?Thanks!
Sander
My
try
code:The
try
output:My
MultiAssayExperiment
code:The error message: