search_field: Get metadata from SRA

Description Usage Arguments Value Examples

View source: R/search_field.R

Description

This function grabs metadata from the sample, experiment, study and experiment attribute in the SRA metadata database.

Usage

1
search_field(runacc, field, type, db_conn)

Arguments

runacc

A vector with run accessions

field

A string specifying the field of interest (e.g. "sex", "cell_line", "tissue")

type

Type of metadata which is associated with runs: 'sample', 'experiment', 'study' or 'run'

db_conn

Connection to the sqlite database

Value

resfield A dataframe with run_accessions and values associated with the field of interest. If field does not exist, NAs are returned

Examples

1
2
3
4
search_field(runacc = c("DRR023427", "SRR946066", "ERR204978"),
           field = "disease",
           type = "sample",
           db_con = conn)

joseah/srametadata documentation built on May 19, 2019, 8:45 p.m.