add_h5_transposed_matrix: Add a transposed version of a matrix to an .h5 file

Description Usage Arguments Value

View source: R/write_rna_h5.R

Description

Useful for applications that need feature-indexed, rather than observation-indexed values.

Usage

1
2
3
4
5
6
7
add_h5_transposed_matrix(
  h5_file,
  in_target = "matrix",
  in_feature_names = "id",
  in_sample_names = "barcodes",
  out_target = paste0("transposed_", target)
)

Arguments

h5_file

An existing .h5 file.

in_target

The name of the target matrix. Default is "matrix".

in_feature_names

The feature names to use in the transposed matrix. Default is "id".

in_sample_names

The observation names to use in the transposed matrix. Default is "barcodes".

out_target

The name of the output matrix to store. Default is "transposed_" prefixed to the in_target param (e.g. "transposed_matrix").

Value

No return


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.