Skip to content

Commit 43e7699

Browse files
committed
update
1 parent 280cde3 commit 43e7699

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

DIA-NN-Setup.msi

9 KB
Binary file not shown.

DIA-NN.exe

0 Bytes
Binary file not shown.

DiaNN.exe

0 Bytes
Binary file not shown.

GUI/GUI/obj/Release/DIA-NN GUI.csproj.FileListAbsolute.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
C:\git\DiaNN\GUI\GUI\obj\Release\DIA-NN GUI.csprojAssemblyReference.cache
21
C:\git\DiaNN\GUI\GUI\obj\Release\GUI.Form1.resources
32
C:\git\DiaNN\GUI\GUI\obj\Release\GUI.Properties.Resources.resources
43
C:\git\DiaNN\GUI\GUI\obj\Release\DIA-NN GUI.csproj.GenerateResource.cache

cranium/src/optimizer.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ typedef enum LOSS_FUNCTION_ {
1616
// convenience struct for easier parameter filling
1717
class NN {
1818
public:
19-
Network* network;
20-
DataSet* data;
21-
DataSet* classes;
22-
LOSS_FUNCTION lossFunction;
23-
size_t batchSize;
24-
float learningRate;
25-
float searchTime;
26-
float regularizationStrength;
27-
float B1, B2;
28-
int maxIters;
29-
int shuffle;
30-
int verbose;
19+
Network* network = NULL;
20+
DataSet* data = NULL;
21+
DataSet* classes = NULL;
22+
LOSS_FUNCTION lossFunction = CROSS_ENTROPY_LOSS;
23+
size_t batchSize = 1;
24+
float learningRate = 0.003;
25+
float searchTime = 0;
26+
float regularizationStrength = 0.000000001;
27+
float B1 = 0.9, B2 = 0.999;
28+
int maxIters = 1;
29+
int shuffle = 1;
30+
int verbose = 0;
3131

3232
int id; // for bagging
3333
std::minstd_rand random;

src/diann.cpp

+13-11
Original file line numberDiff line numberDiff line change
@@ -5650,7 +5650,7 @@ class Run {
56505650
#if (HASH > 0)
56515651
unsigned int hash() {
56525652
unsigned int res = 0;
5653-
if (info.size()) res ^= info[0].hash();
5653+
if (flags & fFound) if (info.size()) res ^= info[0].hash();
56545654
return res;
56555655
}
56565656
#endif
@@ -6186,24 +6186,26 @@ class Run {
61866186
float masses[TopF];
61876187
for (fr = 0; fr < TopF; fr++) masses[fr] = 0.0;
61886188
for (fr = 0, tot_corr = ifs_corr = 0.0; fr < Min(TopF, en.info[0].quant.size()); fr++) tot_corr += en.info[0].quant[fr].corr;
6189-
for (int l = 0; l < Min(TopF, en.pep->fragments.size()); l++) {
6189+
for (int l = 0; l < Min(TopF, en.info[0].quant.size()); l++) {
6190+
int li = en.info[0].quant[l].index;
61906191
if (masses[l] > E) nmz = masses[l];
6191-
else nmz = en.pep->fragments[l].mz;
6192-
for (int k = 0; k < Min(TopF, es.pep->fragments.size()); k++) {
6193-
smz = es.pep->fragments[k].mz;
6192+
else nmz = en.pep->fragments[li].mz;
6193+
for (int k = 0; k < Min(TopF, es.info[0].quant.size()); k++) {
6194+
int ki = es.info[0].quant[k].index;
6195+
smz = es.pep->fragments[ki].mz;
61946196
error = smz * 2.0 * MassAccuracy;
61956197
if (nmz < smz - error) continue;
61966198
if (nmz > C13delta + smz + error) continue;
61976199
smz = 0.0;
6198-
if (Abs(nmz - es.pep->fragments[k].mz) < error)
6199-
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), es.pep->fragments[k].mz, es.info[0].RT), MassAccuracy, &smz);
6200+
if (Abs(nmz - es.pep->fragments[ki].mz) < error)
6201+
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), es.pep->fragments[ki].mz, es.info[0].RT), MassAccuracy, &smz);
62006202
else {
62016203
if (!UseIsotopes) continue;
6202-
if (Abs(nmz - es.pep->fragments[k].mz - C13delta / (double)es.pep->fragments[k].charge) >= error) continue;
6203-
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), es.pep->fragments[k].mz + C13delta / (double)es.pep->fragments[k].charge, es.info[0].RT), MassAccuracy, &smz);
6204+
if (Abs(nmz - es.pep->fragments[ki].mz - C13delta / (double)es.pep->fragments[ki].charge) >= error) continue;
6205+
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), es.pep->fragments[ki].mz + C13delta / (double)es.pep->fragments[ki].charge, es.info[0].RT), MassAccuracy, &smz);
62046206
}
62056207
if (masses[l] <= E) {
6206-
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), en.pep->fragments[l].mz, en.info[0].RT), MassAccuracy, &nmz);
6208+
ms2h[i].level<true>(predicted_mz(&(MassCorrection[0]), en.pep->fragments[li].mz, en.info[0].RT), MassAccuracy, &nmz);
62076209
masses[l] = nmz;
62086210
}
62096211
if (Abs(smz - nmz) < E && smz > E && nmz > E) {
@@ -7601,7 +7603,7 @@ class Run {
76017603
unsigned int raw_hash() {
76027604
unsigned int res = 0;
76037605
for (int i = 0; i < ms2h.size(); i++) res ^= ms2h[i].hash();
7604-
for (int i = 0; i < ms1h.size(); i++) res ^= ms2h[i].hash();
7606+
for (int i = 0; i < ms1h.size(); i++) res ^= ms1h[i].hash();
76057607
return res;
76067608
}
76077609

0 commit comments

Comments
 (0)