Skip to content

Commit

Permalink
Merge pull request #103 from Roestlab/102-bug-unexpected-keyword-argu…
Browse files Browse the repository at this point in the history
…ment-for-conformer-peak-picking

fix: remove window_size arg from Conformer call
  • Loading branch information
singjc authored Jan 25, 2024
2 parents 7560d19 + 40018cd commit 5808e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion massdash/server/ExtractedIonChromatogramAnalysisServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def main(self):
tr_group.targeted_transition_list = transition_list_ui.target_transition_list
print(f"Pretrained model file: {peak_picking_settings.peak_picker_algo_settings.pretrained_model_file}")

peak_picker = ConformerPeakPicker(self.massdash_gui.file_input_settings.osw_file_path, peak_picking_settings.peak_picker_algo_settings.pretrained_model_file, window_size=peak_picking_settings.peak_picker_algo_settings.conformer_window_size, prediction_threshold=peak_picking_settings.peak_picker_algo_settings.conformer_prediction_threshold, prediction_type=peak_picking_settings.peak_picker_algo_settings.conformer_prediction_type)
peak_picker = ConformerPeakPicker(self.massdash_gui.file_input_settings.osw_file_path, peak_picking_settings.peak_picker_algo_settings.pretrained_model_file, prediction_threshold=peak_picking_settings.peak_picker_algo_settings.conformer_prediction_threshold, prediction_type=peak_picking_settings.peak_picker_algo_settings.conformer_prediction_type)
# get the trantition in tr_group with the max intensity
max_int_transition = np.max([transition.intensity for transition in tr_group.transitionData])
peak_features = peak_picker.pick(tr_group, max_int_transition)
Expand Down

0 comments on commit 5808e3e

Please sign in to comment.