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

create() ignores do.transpose=FALSE #78

Open
smgoggin10 opened this issue Nov 7, 2022 · 0 comments
Open

create() ignores do.transpose=FALSE #78

smgoggin10 opened this issue Nov 7, 2022 · 0 comments

Comments

@smgoggin10
Copy link

My data is already in rows=cells, cols=genes format, so I do not want internal transposition. My cell.attrs align to my rows and my gene.attrs align to my cols.

Running the following in loomR v0.2.1.9:

loomR::create(
filename = paste0(PARENT_PATH, "/cns_mc.loom"), 
data = protein.concat.transform, 
gene.attrs = panel_in, 
cell.attrs = metadata_in,
do.transpose = FALSE
)

Prints in console (when I manually transpose it beforehand - making it rows=genes, cols=cells - to get it to still make the file as I intend):

Transposing input data: loom file will show input columns (cells) as rows and input rows (features) as columns
This is to maintain compatibility with other loom tools
|====================================================================================================================================================================================| 100%
Adding: Gene
Adding: subsamp_ids
Adding: cluster_id
Adding: sample_date
Adding: tissue
Adding: sample_type
Adding: timepoint_num
Class: loom
Filename: /project/manuscript_materials/cns_mc.loom
Access type: H5F_ACC_RDWR
Attributes: version, chunks, LOOM_SPEC_VERSION, last_modified
Listing:
name obj_type dataset.dims dataset.type_class
col_attrs H5I_GROUP
col_graphs H5I_GROUP
layers H5I_GROUP
matrix H5I_DATASET 999968 x 40 H5T_FLOAT
row_attrs H5I_GROUP
row_graphs H5I_GROUP

Prints in console (when I input data as is with rows=cells, cols=genes):

Transposing input data: loom file will show input columns (cells) as rows and input rows (features) as columns
This is to maintain compatibility with other loom tools
|====================================================================================================================================================================================| 100%
Adding: CellID
Error in self$add.attribute(attributes = attributes, MARGIN = 2, overwrite = overwrite) :
At least one dimmension for each cell attribute must be 40

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

1 participant