getPCRsizes: getPCRsizes

Description Usage Arguments Value Author(s) Examples

View source: R/primerpcr.R

Description

returns length of product given a GRanges span and GRangesList of transcripts

Usage

1
getPCRsizes(pcr_span, txlist, verbose = FALSE)

Arguments

pcr_span

GRanges object

txlist

GRangesList object

verbose

logical. report intermediate output.

Value

data.frame of transcript names with detected sizes in basepairs

Author(s)

Diana Low

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
suppressMessages(library(BSgenome.Mmusculus.UCSC.mm9))
bsgenome<-BSgenome.Mmusculus.UCSC.mm9
## create a primer pair
## for actual use, obtain primer pair from primer design (callPrimer3)
primer_pair <- data.frame(PRIMER_LEFT_SEQUENCE="agctcttgaaattggagctgac",
                          PRIMER_RIGHT_SEQUENCE="cttagaaagaacaggaaatcc",
                          stringsAsFactors=FALSE)

## confirm location
cp<-checkPrimer(primer_pair,bsgenome,roi)
cp

## get the PCR sizes
pcr_result1 <- getPCRsizes(cp,theexons)

SPLINTER documentation built on Nov. 8, 2020, 8:13 p.m.