chdir: Characteristic Direction

Description Usage Arguments Value

Description

Calculates the characteristic direction for a phenotypic dataset

Usage

1
chdir(ctrl, expm, samples, r = 1)

Arguments

ctrl

matrix of control data

expm

matrix of experiment (perturbed) data

samples

vector of drug names

r

numeric between 0 and 1. Regularised term, a parameter that smooths the covariance matrix and reduces potential noise in the dataset. The default value is 0, no regularisation.

Value

vector of n-components representing the characteristic direction of the dataset. n equals the number of features in the dataset. b is also a matrix object, and is sorted by its components' absolute values in descending order.


Swarchal/charDirection documentation built on May 9, 2019, 3:25 p.m.