mut2GR {mitoClone2} | R Documentation |
Convert mutation string to GRanges
mut2GR(mut)
mut |
The mutation to convert to a GRanges in the format of "position reference>alternate". |
Returns a GRanges object containg the site of the variant along with reference/alternate allele data in the metacolumns
mutation.as.granges <- mut2GR('1434 G>A') mutation.as.granges.no.space <- mut2GR('1434G>A')