Learn R Programming

gtx (version 0.0.8)

parse.snps: Parse text representation of a SNP embedded in flanking sequences.

Description

Extracts the first occurence of a pattern like [A/T], along with the 5' and 3' flanking sequences.

Usage

parse.snps(seqs, seqnames = NULL)

Arguments

seqs
a (vector of) sequences.
seqnames
optional names.

Value

A data frame with seven columns, called seq5p, len5p, poly, alleleA, alleleB, seq3p, and len3p.

Examples

Run this code
data(snps.BRCA1)
parse.snps(snps.BRCA1$SourceSeq[1:10])

Run the code above in your browser using DataLab