Comments (5)
Thanks Vince.
About 1):
Interestingly we have a similar situation with mcols()
on Vector derivatives:
ir <- IRanges(1:3, 5)
mcols(ir) <- DataFrame(stuff=runif(3))
rownames(mcols(ir)) <- letters[1:3]
rownames(mcols(ir))
# NULL
This should be taken care of in SummarizedExperiment 1.17.2 (see commit 495ab00).
Note that when you did colnames(assay(se1)) <- letters[4:6]
in your example above the colnames of the assay actually got modified. It's just that you didn't see them when you brought the assay back because by default assay()
doesn't bring back the real colnames. You need to use withDimnames=FALSE
for that:
> assay(se1, withDimnames=FALSE)
d e f
A 1 3 5
B 2 4 6
About 2):
Having the colData()
setter reorder the rows of the supplied DataFrame "might" sound like a nice feature but it breaks the general assumption that the getter will bring back the original DataFrame so I'm not convinced it's a good idea. Anyway if you want to pursue this please submit the proposal in a separate issue.
from summarizedexperiment.
The latest change broke some edge-case behavior:
library(SummarizedExperiment)
example(SummarizedExperiment) # create some SE's.
assay(se) <- assay(se) # OK.
empty <- se[,0]
assay(empty) <- assay(empty) # fail
from summarizedexperiment.
Thanks @LTLA (when following up on a closed issue, you should re-open)
from summarizedexperiment.
Should be addressed in SummarizedExperiment 1.17.3 (see commit 7ee31d4).
Please re-open or start a new issue if you run into other problems related with commit 495ab00 ("By default assays()
/assay()
setters reject inconsistent dimnames"). Thanks!
from summarizedexperiment.
Thanks @hpages. I don't have the authority to re-open issues on this repo, so yes, I should have started a new one.
from summarizedexperiment.
Related Issues (20)
- Vignette Doesn't Specify Dimensionality Rules HOT 1
- Add rownames check for cbind()
- Subsetting HOT 2
- Constructor assigns wrong assay values to wrong samples and features HOT 7
- Adding checkDimnames=FALSE to the SE constructor HOT 1
- subset fails when subsetting a SummarizedExperiment object with no samples HOT 11
- Should the show() method for SummarizedExperiment objects suggest saveHDF5SummarizedExperiment()? HOT 1
- Enforce unique assay names HOT 2
- `combineCols()` and `combineRows()` not listed in 'Usage' section HOT 4
- Consider assayData DataFrame for assays HOT 6
- Constructor could check that assay is in matric format HOT 2
- `all.equal(x, y)` vs `all(x == y)` HOT 3
- Remove all dimnames in `combine_assays_by` to avoid constructor check failures HOT 3
- `combineCols` should keep names in metadata with `use.names=TRUE`
- Erroneous behaviour when colData is data.frame
- package(s) not installed when version(s) same as or greater than current; use `force = TRUE` to re-install: 'SummarizedExperiment' HOT 1
- Add an `assaybind()` method
- Curious about how Rd manuals are generated HOT 3
- Feature request: keep rownames(se) and rownames() of DataFrame nested in rowData(se) in sync HOT 4
- metadata function is not exported as others HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summarizedexperiment.