Corrects the z-scores signs according to the metrics
correct.zscore.signs.Rd
For some metrics a high z-score is good, while for others a low one is good. This function corrects for that so that a negative z-score is a poor score for every metric. It then sets all positive scores to zero.
Usage
correct.zscore.signs(
zscores,
signs.data,
metric.col.name = "Metric",
signs.col.name = "Sign",
filename = NULL
)
Arguments
- zscores
A dataframe whose rows are samples and each column a QC metric, entries are z-scores
- signs.data
A dataframe of two columns, the metric names and the sign of the metric
- metric.col.name
The name of the column in signs.data that stores the metric name
- signs.col.name
The name of the column in signs.data that stores sign as 'neg' or 'pos'
- filename
A filename where to save data. If NULL data will not be saved to file