SCDC_prop_ONE_subcl_marker: Tree-guided proportion estimation for ONE subject

Description Usage Arguments Value

View source: R/Deconvolution.R

Description

Proportion estimation function for ONE-subject case, and apply tree-guided deconvolution

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
SCDC_prop_ONE_subcl_marker(
  bulk.eset,
  sc.eset,
  ct.varname,
  fl.varname,
  sample,
  truep = NULL,
  ct.sub = NULL,
  ct.fl.sub,
  iter.max = 3000,
  nu = 1e-04,
  epsilon = 0.001,
  weight.basis = F,
  bulk_disease = NULL,
  select.marker = T,
  markers = NULL,
  marker.varname = NULL,
  pseudocount.use = 1,
  LFC.lim = 0.5,
  allgenes.fl = F,
  ...
)

Arguments

bulk.eset

ExpressionSet object for bulk samples

sc.eset

ExpressionSet object for single cell samples

ct.varname

variable name for 'cell types'

fl.varname

variable name for first-level 'meta-clusters'

sample

variable name for subject/samples

truep

true cell-type proportions for bulk samples if known

ct.sub

a subset of cell types that are selected to construct basis matrix

ct.fl.sub

'cell types' for first-level 'meta-clusters'

iter.max

the maximum number of iteration in WNNLS

nu

a small constant to facilitate the calculation of variance

epsilon

a small constant number used for convergence criteria

weight.basis

logical, use basis matrix adjusted by MVW, default is T.

select.marker

logical, select marker genes to perform deconvolution in tree-guided steps. Default is T.

markers

A set of marker gene that input manully to be used in deconvolution. If NULL, then

marker.varname

variable name of cluster groups when selecting marker genes. If NULL, then use ct.varname.

pseudocount.use

a constant number used when selecting marker genes, default is 1.

LFC.lim

a threshold of log fold change when selecting genes as input to perform Wilcoxon's test.

allgenes.fl

logical, use all genes in the first-level deconvolution

Value

Estimated proportion, basis matrix, predicted gene expression levels for bulk samples


crhisto/SCDC documentation built on Dec. 19, 2021, 6:19 p.m.