Skip to content

create() ignores do.transpose=FALSE  #78

@smgoggin10

Description

@smgoggin10

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions