getSequenceContext: Extracts the sequence context up and downstream of a...

Description Usage Arguments Value Examples

View source: R/indel_functions.R

Description

Extracts the sequence context up and downstream of a nucleotide position

Usage

1
getSequenceContext(position, chr, offsetL = 10, offsetR = 50)

Arguments

position

Start position of the considered INDEL

chr

Chromosome of the considered INDEL

offsetL

Number of nucleotides downstream of position

offsetR

Number of nucleotides upstream of position

Value

Returns a character string containing the defined seqeunce context

Examples

1
2
3
4
5
6
library(Biostrings)
library(BSgenome.Hsapiens.UCSC.hg19)

sequence_context <- getSequenceContext(position = 123456789, chr = "chr12",
                                       offsetL= 10, offsetR=50)
sequence_context

slw287r/yapsa documentation built on June 7, 2020, 12:46 a.m.