Skip to content

Commit

Permalink
add params: mass detection intensity tolerance, minimum feature peak …
Browse files Browse the repository at this point in the history
…height
  • Loading branch information
Philipbear committed Oct 20, 2024
1 parent 4f4dde6 commit a92918f
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions bin/main_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,36 +94,36 @@ def main_batch(mzml_files, csv_files,


if __name__ == '__main__':
# parser = argparse.ArgumentParser(description='Process a batch of mzML files and csv files.')
# parser.add_argument('--mzml_files', nargs='+', help='List of mzML files')
# parser.add_argument('--csv_files', nargs='+', help='List of CSV files')
# parser.add_argument('--data_collector', type=str, default='Minions', help='Data collector.')
# parser.add_argument('--pi_name', type=str, default='Pieter Dorrestein', help='PI name.')
# parser.add_argument('--mass_detect_int_tol', type=float, default=5e4, help='Mass detection intensity tolerance.')
# parser.add_argument('--min_feature_height', type=float, default=1.5e5, help='Minimum feature height.')
# parser.add_argument('--mz_tol_ppm', type=float, default=10, help='m/z tolerance in ppm.')
# parser.add_argument('--ms2_explanation_cutoff', type=float, default=0.60, help='MS2 explanation cutoff.')
# parser.add_argument('--core_adduct_filter', type=str, default='0', help='Core adduct filter.')
# parser.add_argument('--adduct_type_mode', type=str, default='full', help='Adduct type mode.')
# parser.add_argument('--plot', action='store_true', help='Plot the results.')
# args = parser.parse_args()
#
# main_batch(args.mzml_files, args.csv_files,
# data_collector=args.data_collector,
# pi_name=args.pi_name,
# mz_tol_ppm=args.mz_tol_ppm,
# mass_detect_int_tol=args.mass_detect_int_tol,
# min_feature_height=args.min_feature_height,
# ms2_explanation_cutoff=args.ms2_explanation_cutoff,
# core_adduct_filter=True if args.core_adduct_filter == '1' else False,
# adduct_type_mode=args.adduct_type_mode,
# plot=args.plot)
parser = argparse.ArgumentParser(description='Process a batch of mzML files and csv files.')
parser.add_argument('--mzml_files', nargs='+', help='List of mzML files')
parser.add_argument('--csv_files', nargs='+', help='List of CSV files')
parser.add_argument('--data_collector', type=str, default='Minions', help='Data collector.')
parser.add_argument('--pi_name', type=str, default='Pieter Dorrestein', help='PI name.')
parser.add_argument('--mass_detect_int_tol', type=float, default=5e4, help='Mass detection intensity tolerance.')
parser.add_argument('--min_feature_height', type=float, default=1.5e5, help='Minimum feature height.')
parser.add_argument('--mz_tol_ppm', type=float, default=10, help='m/z tolerance in ppm.')
parser.add_argument('--ms2_explanation_cutoff', type=float, default=0.60, help='MS2 explanation cutoff.')
parser.add_argument('--core_adduct_filter', type=str, default='0', help='Core adduct filter.')
parser.add_argument('--adduct_type_mode', type=str, default='full', help='Adduct type mode.')
parser.add_argument('--plot', action='store_true', help='Plot the results.')
args = parser.parse_args()

main_batch(args.mzml_files, args.csv_files,
data_collector=args.data_collector,
pi_name=args.pi_name,
mz_tol_ppm=args.mz_tol_ppm,
mass_detect_int_tol=args.mass_detect_int_tol,
min_feature_height=args.min_feature_height,
ms2_explanation_cutoff=args.ms2_explanation_cutoff,
core_adduct_filter=True if args.core_adduct_filter == '1' else False,
adduct_type_mode=args.adduct_type_mode,
plot=args.plot)

##############################################################################################################
# main_batch(['../test/P1_A1_510.mzML'], ['../test/PCP.csv'])
main_batch(['../test/reframe_drugs_pos_P1_A10_id.mzML'],
['../test/20241017_reframe_metadata_pos_gnps2_workflow.csv'],
mass_detect_int_tol=5e4,
min_feature_height=1.5e5,
ms2_explanation_cutoff=0.60,
adduct_type_mode='simple')
# main_batch(['../test/reframe_drugs_pos_P1_A10_id.mzML'],
# ['../test/20241017_reframe_metadata_pos_gnps2_workflow.csv'],
# mass_detect_int_tol=5e4,
# min_feature_height=1.5e5,
# ms2_explanation_cutoff=0.60,
# adduct_type_mode='simple')

0 comments on commit a92918f

Please sign in to comment.