pred2bed: Format LTR prediction data to BED file format

View source: R/pred2bed.R

pred2bedR Documentation

Format LTR prediction data to BED file format

Description

This function formats the LTR prediction data.frame generated by LTRharvest, LTRdigest, or LTRpred to a data.frame in BED file format.

Usage

pred2bed(LTR.data, output = "output")

Arguments

LTR.data

the LTR prediction data.frame generated by LTRharvest, LTRdigest, or LTRpred.

output

filename of the output BED file.

Details

The BED file format is defined by: chromosome; start; end; name; columns.

Author(s)

Hajk-Georg Drost

References

http://www.ensembl.org/info/website/upload/bed.html

Examples

gff.file <- system.file("TAIR10_chr_all_LTRdigestPrediction.gff",
                        package = "LTRpred")
tabout.file <- system.file("TAIR10_chr_all-ltrdigest_tabout.csv"
                           ,package = "LTRpred")
LTRfile <- read.prediction(gff.file,tabout.file, program = "LTRdigest")

# generate BED file
pred2bed(LTRfile$ltr.retrotransposon)


HajkD/LTRpred documentation built on April 22, 2022, 4:35 p.m.