addMissingSamples: Add missing samples from GSEs and SRPs within a data frame

Description Usage Arguments Value See Also Examples

View source: R/addMissingSamples.R

Description

This function is intended to facilitate workflow with the results of searchAnywhere() function. The main motivation is to provide missing samples that did not match the query criteria, but might be useful when searching for controls

Usage

1
addMissingSamples(df, values = c(1, 0))

Arguments

df

Data frame (must be in searchForAccession or searchAnywhere output format)

values

A vector (length 2) indicating what will be the values assigned to the original df rows and to added rows respectively

Value

Data frame with added missing rows from the same GSE/SRP. It will also contain an additional column to indicate whether the row was originally present or not

See Also

Other Workflow functions: convertAccession(), filterByTermByAccessionLevel(), filterByTerm(), searchForAccession()

Examples

1
2
3
4
5
startSpiderSeqRDemo()
addMissingSamples(searchForAccession("SRR6823653"))
# NOTE: searchForAccession is used here to provide the data frame; 
# in reality the data frame can be generated by most other 
# SpiderSeqR functions (including search functions)

ss-lab-cancerunit/SpiderSeqR documentation built on Nov. 2, 2020, 12:18 a.m.