Skip to content

Commit

Permalink
Eliminate "min_peak_num" parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed May 23, 2017
1 parent 80f8c2f commit 20d7186
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/main/java/proteomics/Spectrum/PreSpectra.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public PreSpectra(MzXMLFile spectra_parser, BuildIndex build_index_obj, Map<Stri
int max_ms1_charge = Integer.valueOf(parameter_map.get("max_ms1_charge"));
float min_precursor_mass = Float.valueOf(parameter_map.get("min_precursor_mass"));
float max_precursor_mass = Float.valueOf(parameter_map.get("max_precursor_mass"));
int min_peak_num = Integer.valueOf(parameter_map.get("min_peak_num"));

// In DEBUG mode, filter out unlisted scan num
if (ECL2.debug) {
Expand Down Expand Up @@ -97,11 +96,6 @@ public void write(int b) throws IOException {}
}
}

if (raw_mz_intensity_map.size() < min_peak_num) {
logger.debug("Scan {} doesn't contain enough peak number ({}). Skip.", spectrum.getId(), min_peak_num);
continue;
}

int scan_num = Integer.valueOf(spectrum.getId());

Scan scan = spectra_parser.getScanByNum((long) scan_num);
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/parameter.def
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ max_chain_length = 50
min_ms1_charge = 3
max_ms1_charge = 7
max_common_ion_charge = 3
min_peak_num = 20
C13_correction_range = 0

# Tolerance
Expand Down

0 comments on commit 20d7186

Please sign in to comment.