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

set.ref.positions-methodsR Documentation

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


## S4 method for signature '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


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


pievos101/PopGenome documentation built on Feb. 24, 2023, 7:11 a.m.