set.chromosomes: Load gene annotation for eQTL input object

View source: R/input_eqtl.r

set.chromosomesR Documentation

Load gene annotation for eQTL input object

Description

Load the eQTL gene annotation for the specified chromosomes into the gwas.input object. Previously loaded gene annotation is replaced

Usage

set.chromosomes(gwas.input, chromosomes)

Arguments

gwas.input

GWAS input object preprocessed using process.eqtl.input (object is modified by function).

chromosomes

Specifies which chromosomes to load the annotation data for (loading all chromosomes may be time-consuming). Can be set to 'all' to load all chromosomes, 'auto' to load all autosomal chromosomes, or a vector of chromosome numbers (the X chromosome can be specified as 'X' or 23).

Value

No return value, the gwas.input argument is modified in place. The following fields are changed

  • eqtl.genes - list containing the names and mapped SNPs for all genes in the eQTL data set

  • current.chromosomes - list of currently loaded chromosomes

  • current.genes - vector of genes available for the currently loaded tissue


josefin-werme/LAVA documentation built on July 4, 2024, 8:11 p.m.