Learn R Programming

PopGenome (version 2.1.6)

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

Description

This generic function sets the positions of the SNP data. Should be used if you use alignment formats to store SNP data (i.e., data restricted to the polymorphic positions).

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 a 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