jack.knife.transform | R Documentation |
This generic function transforms an existing object of class "GENOME"
into another object of class "GENOME"
,
in which each region corresponds to the (JACKNIFE !) window. Each jacknife window will be excluded from the analyses and the
calculation will be applied to the union of all other windows.
## S4 method for signature 'GENOME'
jack.knife.transform(object,
width=7, jump=5,
type=1,
start.pos=FALSE,end.pos=FALSE
)
object |
an object of class |
width |
window size. default: |
jump |
jump size. default: |
type |
|
start.pos |
start position |
end.pos |
end position |
The function creates a transformed object of class "GENOME"
.
This function currently is only available for SNP data formats. PopGenome will scan the data from position 1 to the last observed SNP if start or end-positions are not specified. This mechanism can also be applied to the splitting.data() function. Just set split.GENOME.class@jack.knife <- TRUE after splitting the data.
# GENOME.class <- readData("...", format="VCF")
# jack.GENOME.class <- jack.knife.transform(GENOME.class,100,100)
# jack.GENOME.class <- neutrality.stats(jack.GENOME.class)
# jack.GENOME.class@Tajima.D
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.