Learn R Programming

PopGenome (version 1.2.6)

create.PopGenome.method: Integration of own functions in the PopGenome-framework

Description

This function generates a skeleton for a PopGenome function. Ensures an effortless integration of new methods in the PopGenome-framework.

Usage

create.PopGenome.method(function.name,population.specific=TRUE)

Arguments

function.name
name of your function
population.specific
TRUE:function returns one value per population.FALSE:function returns one value for all populations. for example FST measurements

Details

This mechanism enables you to use your own functions in the PopGenome environment. Sliding window analysis and calculation of subsites will work well. Please look at the generated function, which documents where to place your own function in detail.

Examples

Run this code
# GENOME.class <- readData(".../Alignments")
# create.PopGenome.method("myFunction")
# edit myFunction.R
# source("myFunction")
# value <- myFunction(test)
# value

Run the code above in your browser using DataLab