Learn R Programming

humarray (version 1.0.0)

ranged.to.txt: Convert GRanges/RangedData to chr:pos1-pos2 vector

Description

Takes a RangedData or GRanged object from some annotation lookup functions and converts to standard text positions, such as what you might see on the UCSC genome browser, such as chr1:10,000,234-11,000,567 for a range, or chrX:234,432 for a SNP. Useful for printing messages, concatenating positions to a single vector, or creating queries for databastes.

Usage

ranged.to.txt(ranges)

Arguments

ranges
A RangedData or GRanges object

Value

a text vector of the same length as 'ranges' with notation as described above representing each position in the 'ranges' object

See Also

convert.textpos.to.data

Examples

Run this code
ranged.to.txt(rranges())

Run the code above in your browser using DataLab