Learn R Programming

PopGenome (version 1.2.6)

set.ref.positions-methods: Sets reference positions for SNP data

Description

This generic function sets the positions of the SNP data. Should be used if you use alignments to store SNP data.

Usage

## S3 method for class 'GENOME':
set.ref.positions(object, positions)

Arguments

object
an object of class "GENOME"
positions
a list of reference positions

Value

  • returned value is an modified object of class "GENOME"

Examples

Run this code
# GENOME.class <- readData("\home\Alignments")
# GENOME.class
# GENOME.class <- set.ref.positions(GENOME.class,list(c(1000,2001,3000),
#                 c(3200,12000)))

Run the code above in your browser using DataLab