Skip to content

Commit

Permalink
fix lib generation without training lib
Browse files Browse the repository at this point in the history
  • Loading branch information
vdemichev committed Jan 14, 2020
1 parent 1cc05ef commit 84785af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified DIA-NN-Setup.msi
Binary file not shown.
Binary file modified DiaNN.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions src/diann.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8613,7 +8613,7 @@ int main(int argc, char *argv[]) {
Profile profile(ms_files, lib.entries.size());
if (RTProfiling) for (auto jt = profile.entries.begin(); jt != profile.entries.end(); jt++)
if (jt->index >= 0) if (jt->pr.qvalue < MaxProfilingQvalue) {
lib.entries[jt->pr.index].target.iRT = lib.entries[jt->pr.index].decoy.iRT = jt->pr.predicted_iRT;
lib.entries[jt->pr.index].target.iRT = lib.entries[jt->pr.index].decoy.iRT = (!FastaSearch || GuideLibrary || RTLearnLib) ? jt->pr.predicted_iRT : jt->pr.RT;
lib.entries[jt->pr.index].best_run = jt->pr.run_index;
lib.entries[jt->pr.index].qvalue = jt->pr.qvalue;
lib.entries[jt->pr.index].protein_qvalue = jt->pr.protein_qvalue;
Expand Down Expand Up @@ -8694,7 +8694,7 @@ int main(int argc, char *argv[]) {
if (lib.entries[jt->pr.index].qvalue > ReportQValue) lib.entries[jt->pr.index].best_run = -1;
else {
lib.entries[jt->pr.index].best_run = jt->pr.run_index;
lib.entries[jt->pr.index].target.iRT = (GuideLibrary || GenSpecLib || RTLearnLib) ? jt->pr.predicted_iRT : jt->pr.RT;
lib.entries[jt->pr.index].target.iRT = (GuideLibrary || (GenSpecLib && !FastaSearch) || RTLearnLib) ? jt->pr.predicted_iRT : jt->pr.RT;
lib.entries[jt->pr.index].peak = jt->pr.peak;
lib.entries[jt->pr.index].apex = jt->pr.apex;
lib.entries[jt->pr.index].protein_qvalue = jt->pr.protein_qvalue;
Expand Down

0 comments on commit 84785af

Please sign in to comment.