Added source Matlab code for reference
This commit is contained in:
parent
b8af977117
commit
b5d99903d2
186 changed files with 61405 additions and 1 deletions
6
matlab/admixture/calcGeneLengths.m
Normal file
6
matlab/admixture/calcGeneLengths.m
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function gene_lengths = calcGeneLengths(component_mat)
|
||||
[ngenes, y] = size(component_mat);
|
||||
gene_lengths = zeros(ngenes,1);
|
||||
for i = 1:ngenes
|
||||
gene_lengths(i) = length(find(component_mat(i,:)>0));
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue