Added source Matlab code for reference
This commit is contained in:
parent
b8af977117
commit
b5d99903d2
186 changed files with 61405 additions and 1 deletions
25
matlab/linkage/selectGene.m
Normal file
25
matlab/linkage/selectGene.m
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
function [isOK, genename] = selectGene(genename)
|
||||
ngenes = size(genename,1);
|
||||
for i=1:ngenes
|
||||
items(i).name = genename{i};
|
||||
items(i).default = 1;
|
||||
items(i).values = [];
|
||||
end
|
||||
|
||||
title = 'STEP 3';
|
||||
nGenestr = sprintf('%d',ngenes);
|
||||
msg = sprintf(['The allelic profile contains ' nGenestr ' genes named below.\n'...
|
||||
'Select the individual sequence data that you want to load.\n'...
|
||||
'It is recommended that all the genes are selected.']);
|
||||
out = CSEFlagDialog(items, title, msg);
|
||||
if ~(isempty(out)),
|
||||
for i=1:ngenes
|
||||
if ~out(i).answer
|
||||
genename{i}=[];
|
||||
end
|
||||
end
|
||||
isOK = 1;
|
||||
else
|
||||
isOK = 0;
|
||||
genename = {[]};
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue