Learn R Programming

humarray (version 1.2)

convert.textpos.to.data: Convert a chr:pos1-pos2 vector to a matrix

Description

Takes 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, and converts to with cols: chr, start, end.

Usage

convert.textpos.to.data(text)

Arguments

text

character vector, format like chr:pos1-pos2

Value

a matrix of the same length as 'ranges' with columns chr, start and end, and rownames will be the same as the original text vector.

See Also

ranged.to.txt

Examples

Run this code
# NOT RUN {
txt <- ranged.to.txt(rranges())
convert.textpos.to.data(txt)
# }

Run the code above in your browser using DataLab