Improved docs
This commit is contained in:
parent
eff04b3124
commit
3261422605
3 changed files with 4 additions and 53 deletions
52
R/admix1.R
52
R/admix1.R
|
|
@ -350,54 +350,4 @@ admix1 <- function(tietue) {
|
|||
# save([pathname filename], 'tietue', '-v7.3'); # added by Lu Cheng, 08.06.2012
|
||||
# end
|
||||
# end
|
||||
}
|
||||
|
||||
|
||||
# function [npops] = poistaLiianPienet(npops, rowsFromInd, alaraja)
|
||||
# % Muokkaa tulokset muotoon, jossa outlier yksilöt on
|
||||
# % poistettu. Tarkalleen ottaen poistaa ne populaatiot,
|
||||
# % joissa on vähemmän kuin 'alaraja':n verran yksilöit?
|
||||
|
||||
# global PARTITION;
|
||||
# global COUNTS;
|
||||
# global SUMCOUNTS;
|
||||
|
||||
# popSize=zeros(1,npops);
|
||||
# for i=1:npops
|
||||
# popSize(i)=length(find(PARTITION==i));
|
||||
# end
|
||||
# miniPops = find(popSize<alaraja);
|
||||
|
||||
# if length(miniPops)==0
|
||||
# return;
|
||||
# end
|
||||
|
||||
# outliers = [];
|
||||
# for pop = miniPops
|
||||
# inds = find(PARTITION==pop);
|
||||
# disp('Removed individuals: ');
|
||||
# disp(num2str(inds));
|
||||
# outliers = [outliers; inds];
|
||||
# end
|
||||
|
||||
# ninds = length(PARTITION);
|
||||
# PARTITION(outliers) = 0;
|
||||
# korit = unique(PARTITION(find(PARTITION>0)));
|
||||
# for n=1:length(korit)
|
||||
# kori = korit(n);
|
||||
# yksilot = find(PARTITION==kori);
|
||||
# PARTITION(yksilot) = n;
|
||||
# end
|
||||
# COUNTS(:,:,miniPops) = [];
|
||||
# SUMCOUNTS(miniPops,:) = [];
|
||||
|
||||
# npops = npops-length(miniPops);
|
||||
|
||||
# %------------------------------------------------------------------------
|
||||
|
||||
# function clearGlobalVars
|
||||
|
||||
# global COUNTS; COUNTS = [];
|
||||
# global SUMCOUNTS; SUMCOUNTS = [];
|
||||
# global PARTITION; PARTITION = [];
|
||||
# global POP_LOGML; POP_LOGML = [];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue