Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for Tyler output #10

Open
arichelle opened this issue Nov 14, 2018 · 0 comments
Open

Code for Tyler output #10

arichelle opened this issue Nov 14, 2018 · 0 comments

Comments

@arichelle
Copy link
Collaborator

I put the code here and will submit multiple PR in the coming days but you can already use it

Part of code to introduce around line 260

detailScoring={};
for j=1:SampleNumber
incR=1;
for i=1:210
if ~isempty(essentialRxns{i})
rxns=essentialRxns{i};
rxnID=findRxnIDs(model,rxns);
rxnID(rxnID==0)=[];
if ~isempty(rxnID)
for k=1:length(rxnID)
%1st column = sample ID
detailScoring{incR,((j-1)*8)+1}=j;
%2nd column = task ID
detailScoring{incR,((j-1)*8)+2}=i;
%3th column = task score for this sample
detailScoring{incR,((j-1)*8)+3}=ScorebyTask(i,j);
%4th column = task score in binary version for this sample
detailScoring{incR,((j-1)*8)+4}=ScorebyTask_binary(i,j);
%5th column = essential reaction associated to this
%task
detailScoring{incR,((j-1)*8)+5}=rxns(k);
%6th column = expression score associated to the
%reaction listed in the 5th column
detailScoring{incR,((j-1)*8)+6}=expression.Rxns(rxnID(k),SampleNumber);
%7th column = gene used to determine the expression of the
%reaction listed in the 5th column
geneName=expression.gene_used(rxnID(k),SampleNumber);
detailScoring{incR,((j-1)*8)+7}=geneName;
%8th column = original expression value of the gene
%listed in the 7th column
detailScoring{incR,((j-1)*8)+8}=data.value(strcmp(data.gene,geneName),SampleNumber);
incR=incR+1;
end
end
end
end

and add the output detailScoring in the call function
[score, score_binary ,taskInfos, detailScoring]=CodeWebTool_new(data,ThreshType,SampleNumber,ref,percentile_or_value,percentile,value,LocalThresholdType,percentile_low,percentile_high,value_low,value_high)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant