get_top: Reduce entries in query results

View source: R/modules-drugs-utils.R

get_topR Documentation

Reduce entries in query results

Description

Gets all entries for compounds that have a correlation less than the top entries with a clinical phase.

Usage

get_top(query_cors, arrange_by, ntop, decreasing = FALSE)

Arguments

query_cors

data.frame with columns 'Compound' and arrange_by.

arrange_by

String indicating column name in query_cors do sort by.

ntop

Integer indicating the number of rows to keep after sorting by arrange_by.

decreasing

Should compounds be ordered from most similar to most dissimilar. TRUE used for genetic perturbations.

Value

Character vector of ntop compounds.


hms-dbmi/drugseqr documentation built on June 24, 2024, 7:03 a.m.