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

View source: R/convert.variants.to.GRanges.R

convert.variants.to.GRangesR Documentation

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.

Details

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

Value

GRanges object containing the SNP locations.

Author(s)

Daniel Gatti

Examples

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

dmgatti/DOQTL documentation built on April 7, 2024, 10:35 p.m.