parCallEnsemble: parCallEnsemble

View source: R/ModelSeries_callSubtypes2.R

parCallEnsembleR Documentation

parCallEnsemble

Description

Parallel version of callEnsemble

Usage

parCallEnsemble(
  X,
  ens = NULL,
  geneAnnotation = NULL,
  geneSet = NULL,
  scaller = NULL,
  geneid = "ensembl",
  matchmode = c("fix", "free")[1],
  subtype = c("PAD.train_20200110", "ImmuneSubtype")[1],
  verbose = T,
  numCores = 2
)

Arguments

X

a numeric RNA expression vector or matrix with gene names

ens

A List of multiple model. Result of fitEnsembleModel

geneAnnotation

A data frame with ENSEMBL, SYMBOL and ENTREZID of the genes in geneSet

geneSet

A list of genes for classification

scaller

scaller object. A xgb.train object.

geneid

type of gene id in X. One of 'symbol', 'entrez' and 'ensembl'.

matchmode

If your genes belong to ENSEMBL, SYMBOL or ENTREZ, you should set matchmode = 'fix', in which all genes would be aligned to ENSEMBL. 'matchmode = free' is a legacy feature, which means that you have to convert your genes into the same annotation type of the pre-trained GSClassifier model.

subtype

Default subtype methods. Now, only 'PAD' and 'ImmuneSubtype' are available. ATTENTION: If you use self-defined data (ens, geneAnnoation, geneSet or scaller), you MUST set subtype as NULL! All available options please visit GSClassifier_Data

verbose

whether report messages

numCores

No. of CPU core

Details

1. Data of one sample was not supported. Please use callEnsemble instead.
2. The sample of X must be over 10!

Value

table, column 1 is best call, remaining columns are subtype prediction scores.


huangwb8/GSClassifier documentation built on July 12, 2024, 5:10 p.m.