queryEncode: Produce a subset of data following predefined criteria

Description Usage Arguments Details Value Examples

View source: R/query.R

Description

After running the prepare_ENCODEDb function, this function will allow you to extract a subset of data encording to the following criteria : accession, assay name, biosample, dataset accession, file accession, file format, laboratory, donor organism, target and treatment.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
queryEncode(
  df = get_encode_df(),
  set_accession = NULL,
  assay = NULL,
  biosample_name = NULL,
  dataset_accession = NULL,
  file_accession = NULL,
  file_format = NULL,
  lab = NULL,
  organism = NULL,
  target = NULL,
  treatment = NULL,
  project = NULL,
  biosample_type = NULL,
  file_status = "released",
  status = "released",
  fixed = TRUE,
  quiet = FALSE,
  fuzzy = FALSE
)

Arguments

df

data.frame containing ENCODE experiment and dataset metadata

set_accession

character string to select the accession

assay

character string to select the assay type

biosample_name

character string to select the biosample name

dataset_accession

character string to select the dataset accession

file_accession

character string to select the file accesion

file_format

character string to select the file format

lab

character string to select the laboratory

organism

character string to select the donor organism

target

character string to select the experimental target

treatment

character string to select the treatment

project

character string to select the project

biosample_type

character string to select the biosample type

file_status

character string to select the file status ("released", "revoked", "all"). Default "released"

status

character string to select the dataset/experiment status

fixed

logical. If TRUE, pattern is a string to be matched as it is.

quiet

logical enables to switch off the result summary information when setting at TRUE.

fuzzy

Search for substring or alternate hyphenations. Default: TRUE

Details

By default, the query can be made on an exact match term. This behaviour can be modified by setting the fixed argument at TRUE

Value

a data.frames containing data about ENCODE experiments and datasets

Examples

1
2
    queryEncode(df = get_encode_df_demo(), biosample_name = "A549",
                file_format = "bam")

ENCODExplorer documentation built on Nov. 8, 2020, 5:11 p.m.