Learn R Programming

DOQTL (version 1.8.0)

convert.variants.to.GRanges: convert.variants.to.GRanges

Description

Given a data.frame of SNPs, convert the SNP locations to a GRanges object.

Usage

convert.variants.to.GRanges(variants)

Arguments

variants
Data frame with four header columns and SNPs in the remaining columns.

Value

GRanges object containing the SNP locations.

Details

This function creates a GRanges object from the CHR and POS columns of the SNP data.frame.

Examples

Run this code
  data(example.snps)
  gr = convert.variants.to.GRanges(example.snps[1:100,])

Run the code above in your browser using DataLab