Learn R Programming

rTRM (version 1.10.2)

getSequencesFromGenome: Retrieves a set of sequences from a BSgenome object and optionally appends a label to each sequence id.

Description

This is just a wrapper to getSeq() in package Biostrings that facilitates adding a label to each sequence.

Usage

getSequencesFromGenome(BED, genome, append.id)

Arguments

BED
file with peak locations in BED format.
genome
a BSgenome object (e.g. Mmusculus)
append.id
optional label to append to each sequence id.