Description Usage Arguments Details Value
Calculate 2D fused-lasso solutionpath for a countmatrix and save as object This function was adapted with some changes from Martin Fahrenberger's sflST package (https://github.com/Martin-Fahrenberger/sflST)
1 | build_lassos(counts, ids, name, output_folder = NULL, ncores = 4, gamma = 1)
|
counts |
input matrix of counts with genes in columns and spot identifier in rows |
ids |
coordinate table which converts the spot identifier into an x and y coordinate on a grid |
name |
Name of the experiment |
output_folder |
folder in which to save the results |
ncores |
number of parallel processes to start (default 8) |
gamma |
ratio of penalization between sparsity and continuity (default 1, high = sparse) |
This function builds a solution path for each gene (column) in a input matrix, selects the models according to the BIC and builds a count matrix
list containing three elements
counts - count matrix in the same format as input count matrix
ids - barcode data frame that assigns spot identifiers to locations on the grid
lls - numeric vector containing least squares fit of model to raw expression for each gene
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.