get.inv.set.prop: Computes proportion of scores included in core sets

Description Usage Arguments Value See Also Examples

Description

This function uses data_rscreen and a threshold object and returns a vector of proportions of scores included in core sets, per replicate. It can also create a barplot of the computed proportions. It is typically used when a my_gamma is chosen to select core sets, yielding a check on the built sets.

Usage

1
get.inv.set.prop(data_rscreen, th_obj, plot = FALSE, cols_list = NULL)

Arguments

data_rscreen

an object of class 'rscreen.object', either yielded by read.screen.data, or by combine.screens. Typically the 'data_only' slot of this object contains lethality scores computed by get.leth.scores, which already reflect a value relative to negative and positive controls, per replicate.

th_obj

object containing thresholds per replicate, as returned by get.th.inv.set.

plot

logical, indicating if a barplot is to be made of the result. Defaults to FALSE, when no plot is produced.

cols_list

vector of colours to be used for the barplot, so if given it must be as long as the number of columns in data_only slot of data_rscreen. If get.pdata was used to read the phenotypic data table, its slot cols_list can be used as input for this argument. By default, a vector of colours created by rainbow will be used, a different one for each column in data_only.

Value

A vector as long as the number of columns in the data_only slot of data_rscreen, with each entry corresponding to the proportion of scores included in an core set. If plot = TRUE, makes also a barplot of the computed proportions.

See Also

get.inv.set the wrapper function that yields core sets, get.th.inv.set that produces the thresholds per replicate, get.rscreenorm to normalize data from multiple screens using core sets and get.leth.scores to compute scores that make observations in different screens comparable.

Examples

1
# See vignette

rxmenezes/rscreenorm documentation built on May 15, 2019, 1:19 p.m.