def load_from_file(self, drop_ms1=False): extension = ming_fileio_library.get_filename_extension(self.filename) if extension == ".mzXML": self.load_from_mzXML(drop_ms1=drop_ms1) if extension == ".mgf": self.load_from_mgf()
def load_from_file(self, drop_ms1=False): extension = ming_fileio_library.get_filename_extension(self.filename) if extension == ".mzXML": self.load_from_mzXML(drop_ms1=drop_ms1) if extension == ".mzML": self.load_from_mzML(drop_ms1=drop_ms1) if extension == ".mgf": self.load_from_mgf()
def determine_filetype_of_import(input_folder): input_filenames = ming_fileio_library.list_files_in_dir(input_folder) ext = ming_fileio_library.get_filename_extension(input_filenames[0]) if ext.upper() == ".CDF": return "netcdf" if ext.upper() == ".MZXML": return "mzxml" if ext.upper() == ".MZML": return "mzml" print("Unsupported extension") exit(1)