annotateSNPsGWAS {circRNAprofiler} | R Documentation

## Annotate GWAS SNPs

### Description

The function annotateSNPsGWAS() annotates GWAS SNPs located in the region flanking the back-spliced junctions of each circRNA. SNPs information including the corresponding genomic coordinates are retrived from the GWAs catalog database. The user can restric the analysis to specific traits/diseases. These must go in the file traits.txt. If this file is absent or empty, all traits in the GWAS catalog are considered in the analysis. An empty list is returned if none overlapping SNPs are found.

### Usage

    annotateSNPsGWAS(targets, assembly = "hg19", makeCurrent = FALSE,
      pathToTraits = NULL)

### Arguments

`targets` | A list containing the target regions to analyze. It can be generated with `getSeqsFromGRs`.
`assembly` | A string specifying the human genome assembly. Possible options are hg38 or hg19. Current image for GWAS SNPS coordinates is hg38. If hg19 is specified SNPs coordinates are realtime liftOver to hg19 coordinates.
`makeCurrent` | A logical specifying whether to download the current image of the GWAS catalog. If TRUE is specified, the function `makeCurrentGwascat` from the `gwascat` package is used to get the more recent image. If FALSE is specified the image data(ebicat37) or data(ebicat38) are used. Default value is FALSE.
`pathToTraits` | A string containing the path to the traits.txt file. The file traits.txt contains diseases/traits specified by the user. It must have one column with header id. By default pathToTraits is set to NULL and the file it is searched in the working directory. If traits.txt is located in a different directory then the path needs to be specified. If this file is absent or empty SNPs associated with all diseases/traits in the GWAS catalog are considered in the SNPs analysis.

### Value

A list.

### Examples

    # Load data frame containing detected back-spliced junctions
    data("mergedBSJunctions")

    # Load short version of the gencode v19 annotation file
    data("gtf")

    # Annotate the first back-spliced junctions
    annotatedBSJs <- annotateBSJs(mergedBSJunctions[1, ], gtf)

    # Get genome
    genome <- BSgenome::getBSgenome("BSgenome.Hsapiens.UCSC.hg19")

    # Retrieve targets
    targets <- getSeqsFromGRs(
        annotatedBSJs,
        genome,
        lIntron = 200,
        lExon = 10,
        type = "ie"
        )

    # Annotate GWAS SNPs
    snpsGWAS <- annotateSNPsGWAS(targets, assembly = "hg19")

[Package circRNAprofiler version 1.0.0 Index]