Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zprobot committed Dec 18, 2024
1 parent ae65a4d commit aac18e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion quantmsio/core/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, mzTab_path, sdrf_path, msstats_in_path):

def extract_psm_msg(self, chunksize=2000000, protein_str=None):
P = Psm(self.mztab_path)
pep_dict = P.extract_from_pep(chunksize=chunksize)
pep_dict = P.extract_from_pep(chunksize=100000, protein_str=protein_str)
map_dict = {}
for psm in P.iter_psm_table(chunksize, protein_str):
for key, df in psm.groupby(["reference_file_name", "peptidoform", "precursor_charge"]):
Expand Down
3 changes: 1 addition & 2 deletions quantmsio/operate/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def generate_psms_of_spectrum(
"""
pqwriters, pqwriter_no_part, filename = init_save_info(parquet_path)
p = Query(parquet_path)
for _, table in p.iter_file(file_num=file_num):
refs = table["reference_file_name"].unique()
for refs, table in p.iter_file(file_num=file_num):
mzml_handlers = {ref: OpenMSHandler() for ref in refs}
table[["number_peaks", "mz_array", "intensity_array"]] = table[["reference_file_name", "scan"]].apply(
lambda x: map_spectrum_mz(
Expand Down

0 comments on commit aac18e2

Please sign in to comment.