Learn R Programming

PopGenome (version 2.7.5)

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

Description

This function generates a skeleton for a PopGenome function. It thereby facilitates the effortless integration of new methods into 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 calculated across all populations (as in the case of FST measurements)

Details

This mechanism enables you to use your own functions in the PopGenome environment. The functions can also be applied to sliding windows or subsites. Please look at the generated function, which documents where to place your own function in detail.

Examples

Run this code
# NOT RUN {
# 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