convert.variants.to.GRanges {DOQTL} | R 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,])

[Package DOQTL version 1.18.0 Index]