dot-searchForAccessionAcrossDBsDF: Search for accession across databases

Description Usage Arguments Value Using df argument Examples

Description

.searchForAccessionAcrossDBsDF classifies accessions, searches for them in their original database (SRA or GEO), then, if conversion is possible, searches for corresponding accessions in the other database (SRA or GEO). If no conversion is possible, the columns from the corresponding database are returned empty (NAs).

Usage

1
2
3
4
5
6
7
.searchForAccessionAcrossDBsDF(
  acc_vector,
  sra_columns,
  geo_columns,
  gse_columns,
  df
)

Arguments

acc_vector

A vector of accessions (all must belong to the same type)

sra_columns

A character vector with names of the columns to be returned from SRA

geo_columns

A character vector with names of the columns to be returned from GEO

df

(OPTIONAL) a data frame to be used as either SRA or GEO data frame

Value

A data frame with the results of the query

Using df argument

When data frame argument is provided, corresponding columns (sra_columns for SRA or geo_columns and gse_columns for GEO) will be disregarded (and are not necessary to provide, but only if using named arguments). Accession vector is only used to classify the input data frame.

Examples

1
2
3
4
5
6
7
8
## Setup SpiderSeqR environment first (please use non-demo version)
## startSpiderSeqRDemo()
## .searchForAccessionAcrossDBsDF("GSE48253", "*", "*", "*") 
## df argument is optional

## If using named arguments, 
## it is not necessary to provide columns from the original df
# .searchForAccessionAcrossDBsDF(acc_vector = df$gsm,sra_columns="*",df=df) 

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