make_input_tm_facs: make_input_tm_facs

Description Usage Arguments Value Examples

View source: R/test_code.R

Description

"make_input" for result of import_tm_facs

Usage

1
2
make_input_tm_facs(data_list, gene_usage = FALSE, Train = TRUE,
  ncore = 1)

Arguments

data_list

result of import_tm_facs or import_sparse

gene_usage

option for gene/peak_location filtering to make hadamard matrix

  • FALSE: gene/peak_location filtering by discarding low expressing cell ratio genes/peak_locations

  • certain number (ex: 2048): the number of gene to use for training (must be suitable number to generate hadamard matrix)

Train

TRUE if it is data for training

  • TRUE: adjust min_thr and max_thr. In addition, make the gene/peak_location count for hadamard matrix

  • FALSE: no gene/peak_location filtering

ncore

multi-thread

Value

list of "make_input" results from each tissue (or sample)

Examples

1
2
tm_facs <- import_tm_facs("address")
tm_facs_input <- make_input_tm_facs(tm_facs)

hemberg-lab/sctransfermap documentation built on Nov. 11, 2019, 6:23 a.m.