Added source Matlab code for reference
This commit is contained in:
parent
b8af977117
commit
b5d99903d2
186 changed files with 61405 additions and 1 deletions
7
matlab/spatial/private/computeDiffInCounts.m
Normal file
7
matlab/spatial/private/computeDiffInCounts.m
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function [counts sumcounts] = computeDiffInCounts(rows, data, nLetters)
|
||||
% calculate the counts of the given rows of the data (ninds*nLoci)
|
||||
% nLetters is the maximum number of different symbols over all loci
|
||||
% Lu Cheng, 25.05.2011
|
||||
|
||||
counts = histc(data(rows,:),1:nLetters,1);
|
||||
sumcounts = sum(counts,1)';
|
||||
Loading…
Add table
Add a link
Reference in a new issue