Comments (7)
@davetang @bopekno @yasinkaymaz @ChristophH @andrewwbutler
I met the same problem,how do you solve it? And I tried your command,but it didn't work.Can anyone give me some advice? Thanks!
> attrs <- names(lfile$col.attrs)
> tha.meatdata <- lfile$get.attribute.df(MARGIN = 2, attribute.names = attrs)
Error in `[[.H5File`(self, paste0(attribute.layer, "/", col.names)) :
An object with name col_attrs/cell_names does not exist in this group
> df = lfile$get.attribute.df(MARGIN = 2, attribute.names = c("CellID", "Clusters"), col.names = "CellID")
Error in `.rowNamesDF<-`(x, value = value) :
duplicate 'row.names' are not allowed
此外: Warning message:
non-unique values when setting 'row.names': ‘10X50_5_AAGTGACCAAGT-’, ‘10X50_5_ACCGGACTCGCT-’, ‘10X50_5_ACCTTGTCTCTA-’, ‘10X50_5_ACGTCTGGCATT-’, ‘10X50_5_ACTCTGTTACCT-’, ‘10X50_5_ACTTCTGCTCCT-’, ‘10X50_5_CAGTTGCCCTTG-’, ‘10X50_5_CGGAACCTGAGT-’, ‘10X50_5_CTCACTGCCATA-’, ‘10X50_5_CTGAGACATGGT-’, ‘10X50_5_GAAACTTAACGC-’, ‘10X50_5_GAAGACACACAC-’, ‘10X50_5_GACCCTTGGGAG-’, ‘10X50_5_GATAGACAACTG-’, ‘10X50_5_GATATGTAGAAG-’, ‘10X50_5_GCACACAGAGAT-’, ‘10X50_5_GCCATGTCCGTC-’, ‘10X50_5_TCGAACTGCTGA-’, ‘10X50_6_AACACTGAGCAG-’, ‘10X50_6_ACGAACGTGTCA-’, ‘10X50_6_ACTTTGGTTTCT-’, ‘10X50_6_AGAACTTAAGCC-’, ‘10X50_6_AGGATGTTCCGC-’, ‘10X50_6_ATACTGAGGTCT-’, ‘10X50_6_CCAGCTTCCGTC-’, ‘10X50_6_TAGAGAATCTCT-’, ‘10X50_6_TCAACTGCCATA-’, ‘10X50_6_TCAGGAGAAGGC-’, ‘10X50_6_TCCAGAGGTACT-’, ‘10X50_6_TCGAACATCACG-’, ‘10X50_6_TGGATGACCTCC-’, ‘10X50_6_TTAAGAGGGACA-’, ‘10X50_7_AACAGATCAAGC-’, [... truncated]
from loomr.
Encountered the same issue, I solved it by expliciting the name of the column name using the col.names
argument (row.names
if you're querying for gene-related attributes).
For instance, to retrieve the cell names and clusters as a dataframe, you would write::
df = lfile$get.attribute.df(MARGIN = 2, attribute.names = c("CellID", "Clusters"), col.names = "CellID")
Hope it helps !
from loomr.
I have the same issue here...
> names(lfile$row.attrs)
[1] "Accession" "Gene" "_LogCV"
[4] "_LogMean" "_Selected" "_Total"
[7] "_Valid" "gene_dispersion" "gene_dispersion_scaled"
[10] "gene_means" "var_genes"
>
> attrs <- names(lfile$row.attrs)
> attr.df <- lfile$get.attribute.df(MARGIN = 1, attribute.names = attrs)
Error in `[[.H5File`(self, paste0(attribute.layer, "/", row.names)) :
An object with name row_attrs/gene_names does not exist in this group
from loomr.
Thanks for pointing this out, we will work on a fix.
from loomr.
Hi there,
I've just run into the same problem as Sophia's. Is there a way to make row.names unique to proceed with get.attribute.df?
Best,
Lipin
from loomr.
Having the same issue. All of the row attributes are non unique, so I cannot access them!
from loomr.
Hi,
I am also having this issue when trying to extract attributes
Error in `.rowNamesDF<-`(x, value = value) :
duplicate 'row.names' are not allowed
Did anyone find a solution?
from loomr.
Related Issues (20)
- Loom file outdated version for loompy HOT 2
- Raw Data not Present in Loom File
- Combine two loom files
- Package ‘R6’ version 2.4.0 cannot be unloaded:
- Cannot convert Seurat object to loom HOT 2
- Error in (function () : id is invalid
- get.attribute.df() - how to handle duplicate CellIDs? HOT 1
- Cannot open loom file HOT 3
- saving a loomR file
- LoomR doesn't seem to work HOT 3
- How to save/export loom file HOT 1
- Does package support storing info in global attributes?
- Compatibility with R version 4.0.3
- how to merge 6 loom file? HOT 2
- Conversion from Seurat to loom
- get.attribute.df(): unused argument (attribute.names = ) HOT 2
- Error in private$reset_batch() : attempt to apply non-function
- create() ignores do.transpose=FALSE
- 'Error in eval(exprs[i], envir) : object 'confint.default' not found' while trying to install the developmental version 1.0.3.9000 HOT 1
- subsetting loom file
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 loomr.