pgs.weight.data <- data.frame(
CHROM = c('chr1', 'chrX'),
POS = c(10, 20)
);
convert.pgs.to.bed(pgs.weight.data);
# Switch between different chromosome notations
convert.pgs.to.bed(pgs.weight.data, chr.prefix = FALSE, numeric.sex.chr = TRUE);
# Add slop to BED intervals
convert.pgs.to.bed(pgs.weight.data, slop = 10);
Run the code above in your browser using DataLab