getPackSeqs: Extract Sequences of Pack-TYPE Elements

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getPackSeqs.R

Description

Method to quickly extract the sequences of predicted Pack-TYPE elements (as created by packSearch).

Usage

1
getPackSeqs(packMatches, Genome, output = "DNAStringSet")

Arguments

packMatches

A dataframe containing genomic ranges and names referring to sequences to be extracted. This dataframe is in the format produced by coercing a link[GenomicRanges:GRanges-class]{GRanges} object to a dataframe: data.frame(GRanges).

Must contain the following features:

  • start - the predicted element's start base sequence position.

  • end - the predicted element's end base sequence position.

  • seqnames - character string referring to the sequence name in Genome to which start and end refer to.

Genome

A DNAStringSet object containing sequences referred to in packMatches (the object originally used to predict the transposons packSearch).

output

The type of object to be returned:

  • output = "DNAStringSet", returns a DNAStringSet object (default).

  • output = "character", returns a character vector.

Value

transposon sequences extracted from packMatches. At default returns the sequences as a DNAStringSet or, if output is set to "character", returns a character vector.

Author(s)

Jack Gisby

See Also

DNAStringSet, packSearch, DNAString

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(arabidopsisThalianaRefseq)

packMatches <- packSearch(
    Biostrings::DNAString("CACTACAA"),
    arabidopsisThalianaRefseq,
    elementLength = c(300, 3500),
    tsdLength = 3
)

packSeqs <- getPackSeqs(packMatches, arabidopsisThalianaRefseq)

packFinder documentation built on Nov. 8, 2020, 5:24 p.m.