View source: R/CELESTA_functions.R
GetMarkerExpMatrix | R Documentation |
Gets the protein marker expressions and assigns each cell a cell ID.
Only protein markers specified in prior_marker_info
are extracted from the
imaging_data_file
. Cells are assigned IDs from 1 to the total number of
cells. If transform_type = 1
, then an arcsinh transform is applied to the
protein marker expressions.
GetMarkerExpMatrix( prior_marker_info, imaging_data_file, cofactor, transform_type )
prior_marker_info |
user-defined cell-type signature matrix. The data should contain two columns (name X and Y) for the x, y coordinates and a column for each protein marker. Each row represents the data for a single cell, including its x, y coordinates and expression for each protein marker. |
imaging_data_file |
segmented imaging data. The first column must contain the cell types to be inferred. The second column must contain the lineage information with the following format (without spaces): # _ # _ #.
The third column and beyond are columns for protein markers.
|
cofactor |
used to calculate the arcsinh transform on the protein marker expressions |
transform_type |
indicates a transform type for the protein marker expressions (0 = no transform, 1 = arcsinh transform) |
a list with the following information:
cell_ids
the IDs of the cells
original_exp
the original expression matrix (containing only the
protein markers specified by prior_marker_info
)
marker_exp_matrix
or original_exp
the transformed expression matrix (or original expression matrix if a transform is not specified)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.