WriteBED: Write 'txLoc' object to a BED file.

Description Usage Arguments Details Author(s) Examples

View source: R/IO.R

Description

Write txLoc object to a BED file. See 'Details'.

Usage

1
WriteBED(txLoc, file = NULL)

Arguments

txLoc

A txLoc object.

file

A character string; specifies the filename of the output BED file. If NULL, then file = "sites.bed"; default is NULL.

Details

The function writes entries from a txLoc object to a 6-column BED file (BED6). Note that this process is not "splice-aware", i.e. if an entry spans an intron the BED entry gives the left and right-most genomic coordinate of the feature. If file = NULL, entries will be written to sites.bed.

Author(s)

Maurits Evers, maurits.evers@anu.edu.au

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
bedFile <- system.file("extdata",
                       "miCLIP_m6A_Linder2015_hg38.bed",
                       package = "RNAModR")
sites <- ReadBED(bedFile)
txSites <- SmartMap(sites, id = "m6A", refGenome = "hg38")
WriteBED(txSites)

## End(Not run)

mevers/RNAModR documentation built on Nov. 17, 2019, 9:11 a.m.