prepare_lasso_data: process the lasso counts and ids for conformity with pipeline...

Description Usage Arguments Value

View source: R/prepare_lasso_data.R

Description

after model building the resulting counts matrix and the ids data frame do not contain rownames (spot names / spatial information). This function matches spatial positions of lasso and raw ids and integrates the information into the lasso model.

Usage

1
prepare_lasso_data(ids_raw, ids_lasso, counts_lasso)

Arguments

ids_raw

data frame containing spatial information as built by load_ids from and ST barcode file

ids_lasso

data frame containing ids of lasso spots. For this the order in which spots are stored in the lasso models needs to be known: idx = i*x_max + j; 0 <= i <= x_max-1, 1 <= j <= y_max

counts_lasso

the model that is built in build_lassos, containing 34*32 spots without rownames

Value

list containing two elements

  1. counts - the count matrix with rownames and reduced to original spots

  2. ids - the lasso ids


tmirus/TTT documentation built on April 17, 2021, 11:04 p.m.