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

YAPSA documentation built on Nov. 8, 2020, 4:59 p.m.