Nothing
landscape.ind.freq <- function(Rland,include.states=TRUE)
{
l <- Rland
aml <- vector("list",length(landscape.ploidy(l)))
for (loc in 1:length(landscape.ploidy(l)))
{
genos <- landscape.locus(l,loc)[,-1:-landscape.democol()]
ploidy <- landscape.ploidy(l)[loc]
if (l$loci[[loc]]$type!=253)
{
lst <- landscape.locus.states(l,loc)
names(lst$state) <- lst$aindex
if (ploidy==2)
{
genos[,1] <- unname(lst$state[as.character(genos[,1])])
genos[,2] <- unname(lst$state[as.character(genos[,2])])
} else {
genos <- unname(lst$state[as.character(genos)])
}
}
amat <- sapply(names(table(genos)),function(x,genos,pl)
{
if (pl==2)
{
(as.character(genos[,1])==as.character(x))+(as.character(genos[,2])==as.character(x))
} else
{
as.character(genos)==as.character(x)
}
},genos=genos,pl=ploidy)
aml[[loc]] <- apply(amat,2,function(x,pl){x/pl},pl=ploidy) #allele freqs per ind
}
do.call(cbind,aml)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.