load_labeled_mtx: Load a sparse matrix with row and column labels

View source: R/load_stellarscope_report.R

load_labeled_mtxR Documentation

Load a sparse matrix with row and column labels

Description

Sparse matrixes in the MTX format have integer indexes and do not have row or column names included. The labels may be included in separate files. This function takes three input files and returns a labeled sparse matrix. Dimensions of the returned sparse matrix are match the provided row and column names, transposing the matrix if needed.

Usage

load_labeled_mtx(mtx_file, rowname_file, colname_file)

Arguments

mtx_file

Sparse matrix file in MTX format

rowname_file

TSV file with row labels in first column.

colname_file

TSV file with column labels in first column.

Value

A sparse matrix of of class "dgTMatrix" with row and columns labels.


nixonlab/scopetools documentation built on Sept. 30, 2022, 11:15 a.m.