You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.out.println(String.format(Locale.US,"trace picked with m/z = %f, rt = %f, in sample %s. Trace has the following segments: %s", mz, rt, sample.getRun().getName(), Arrays.toString(trace.getSegments())));
53
+
ScanPointMappingmapping = sample.getMapping();
54
+
this.out.println(String.format(Locale.US,"A trace picked with m/z = %f at rt = %f in sample %s. The trace contains the following segments: %s", mz, rt, sample.getRun().getName(), Arrays.stream(trace.getSegments()).map(s->toStr(s,mapping)).collect(Collectors.joining(", "))));
if (tracked(left.getMz(), left.getRetentionTime())) {
74
-
this.out.println(String.format(Locale.US,"ALIGN two MOIS with m/z %f, rt left = %f, rt right = %f in sample %s", left.getMz(), left.getRetentionTime(), right.getRetentionTime(), rightSample.getRun().getName()));
106
+
this.out.println(String.format(Locale.US,"align two potential features with m/z = %f, rt left = %f s, rt right = %f s in sample %s", left.getMz(), left.getRetentionTime(), right.getRetentionTime(), rightSample.getRun().getName()));
if (tracked(moI.getMz(), moI.getRetentionTime())) {
81
-
this.out.println(String.format(Locale.US,"Cannot align MOI with m/z %f and rt %f in sample %s", moI.getMz(), moI.getRetentionTime(), moI.getRetentionTime(), s.getRun().getName()));
113
+
this.out.println(String.format(Locale.US,"cannot align a potential feature with m/z = %f and rt = %f s in sample %s", moI.getMz(), moI.getRetentionTime(), moI.getRetentionTime(), s.getRun().getName()));
82
114
}
83
115
}
84
116
@@ -87,34 +119,37 @@ public void moiDeleted(MoI moi) {
87
119
if (tracked(moi.getMz(), moi.getRetentionTime())) {
88
120
if (moiinstanceofAlignedMoI) {
89
121
AlignedMoIamo = (AlignedMoI) moi;
90
-
this.out.println(String.format(Locale.US,"DELETE MOI with m/z %f and rt %f which was aligned in %d samples", moi.getMz(), moi.getRetentionTime(), amo.getAligned().length));
122
+
this.out.println(String.format(Locale.US,"forget potential feature with m/z = %f and rt = %f s which was aligned in only %d samples", moi.getMz(), moi.getRetentionTime(), amo.getAligned().length));
91
123
} else {
92
-
this.out.println(String.format(Locale.US,"DELETE singleton MOI with m/z %f and rt %f", moi.getMz(), moi.getRetentionTime()));
124
+
this.out.println(String.format(Locale.US,"forget potential feature with m/z = %f and rt = %f s because it did not align to any sample", moi.getMz(), moi.getRetentionTime()));
this.out.println(String.format(Locale.US,"merge the trace with m/z = %f and rt = %f..%f s (apex at %f s) from sample %s into the merged sample.", projectedTrace.getAveragedMz(), rt0,rt1,rt, sample.getRun().getName()));
118
153
}
119
154
}
120
155
@@ -123,7 +158,12 @@ public void assignMs2ToMergedTrace(ProcessedSample sample, ContiguousTrace[] sou
this.out.printf(Locale.US, "assign NO MS/MS to trace m/z = %f, rt = %f..%f s in sample %s%n", projectedTrace.getAveragedMz(), rtA, rtB, sample.getRun().getName());
163
+
164
+
} else {
165
+
this.out.printf(Locale.US, "assign MS/MS to trace m/z = %f, rt = %f..%f s in sample %s with MS/MS scan ids are: %s%n", projectedTrace.getAveragedMz(), rtA, rtB, sample.getRun().getName(), Arrays.toString(ids));
166
+
}
127
167
}
128
168
}
129
169
@@ -132,12 +172,12 @@ public void rejectedForFeatureExtraction(@Nullable Rect r, @Nullable MergedTrace
132
172
if (merged==null && r==null) return;
133
173
if (merged==null) {
134
174
if (tracked(r.avgMz, r.minRt, r.maxRt)) {
135
-
this.out.println(String.format(Locale.US,"trace REJECTED with trace is null but rect is m/z = %f..%f, rt = %f..%f", r.minMz,r.maxMz,r.minRt,r.maxRt));
175
+
this.out.println(String.format(Locale.US,"A merged trace with m/z = %f..%f, rt = %f..%f s is rejected because it does not contain any peaks", r.minMz,r.maxMz,r.minRt,r.maxRt));
this.out.println(String.format(Locale.US,"A merged trace with m/z = %f, rt = %f s is rejected because it does not contain any peaks", merged.averagedMz(), rt));
141
181
}
142
182
}
143
183
}
@@ -146,23 +186,26 @@ public void rejectedForFeatureExtraction(@Nullable Rect r, @Nullable MergedTrace
this.out.println(String.format(Locale.US,"Feature picked with m/z = %f and rt = %f..%f s with apex is at %f s. Feature is contained in the following samples: %s", mergedTrace.averagedMz(), f.getRetentionTime().getStartTime(),
@CommandLine.Command(name = "lcms-align", aliases = {"A"}, description = "@|bold <PREPROCESSING>|@ Align and merge compounds of multiple LCMS Runs. Use this tool if you want to import from mzML/mzXml. %n %n", versionProvider = Provide.Versions.class, mixinStandardHelpOptions = true, showDefaultValues = true)
thrownewIllegalArgumentException("expect value in format \"FROM-TO\" or just \"VALUE\" (e.g. \"300.04-300.08\")");
168
+
}
169
+
}
170
+
}
171
+
172
+
@CommandLine.Option(names={"--log-file"}, defaultValue = "lcms_log.txt", description = "Path to a filename that is used to log detected mass traces. Either --log-mass or --log-rt (or both) have to be specified to enable the logging.")
173
+
publicFilelogFile;
174
+
175
+
@CommandLine.Option(names={"--log-mz"}, description = "A target mass (range) for which logging should be enabled.", converter = MassRangeOrValue.class)
176
+
publicRange<Double> logMass;
177
+
178
+
@CommandLine.Option(names={"--log-rt"}, description = "A target retention time (range) for which logging should be enabled", converter = TimeRangeOrValue.class)
0 commit comments