Closed jonaszierer closed 6 years ago
Hi Jonas, @jonaszierer Thanks for opening this issue.
The simple and fast fix would be to subset by columns
or colData
first and then subset the assays.
It seems like this change won't have much implications on the other subsetting methods.
The complicated fix would be to use non-standard evaluation but the first option does the trick.
Best regards, Marcel
colData(mae[, mae$pheno == "pheno1", "exp"])
harmonizing input:
removing 2 sampleMap rows with 'colname' not in colnames of experiments
removing 2 colData rownames not in sampleMap 'primary'
DataFrame with 4 rows and 1 column
pheno
<factor>
sample2 pheno1
sample3 pheno1
sample4 pheno1
sample5 pheno1
Hi @LiNk-NY , great thanks for the quick fix! Jonas
Hi, I think there is a bug when subsetting samples and assays simultaneously:
Construct a MAE like this:
And now subset all samples and assay
now all
mae2$pheno
should bepheno1
, but they are not. They areI suppose that assays are subset first and some samples are removed while doing so. Then the logical vector for the samples is applied to the already reduced object...?
It works fine when subsetting first the assays and then the samples (or the other way round...)