DistanceGen: DistanceGen

Description Usage Arguments Examples

View source: R/distance_gen.R

Description

Generates a distance matrix from a a transcriptomics dataset.

Usage

1
DistanceGen(dataset, metric = "euclidean", nthreads = NULL)

Arguments

dataset

A transcriptomics dataset. Preferably filtered first. First columns should be gene names. All other columns should be expression levels.

metric

The distance metric to be used to calculate the distances between genes. See parallelDist::parDist for all accepted arguments. Also allows the option of 'abs.correlation'. Not used if a distance matrix is provided.

nthreads

The number of threads to be used for parallel computations. If NULL then the maximum number of threads available will be used.

Examples

1
2
distance <- DistanceGen(Laurasmappings, metric='abs.correlation',
                        nthreads = 2)

nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.