Skip to content

Commit

Permalink
Use the proper CV term for library spectrum index
Browse files Browse the repository at this point in the history
  • Loading branch information
bittremieux committed Jul 2, 2020
1 parent 14c5b07 commit b5fb515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ann_solo/plot_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def main():
query_filename = os.path.abspath(os.path.join(
query_uri.netloc, query_uri.path))
ssm = ssms.loc[query_id]
library_id = ssm['opt_ms_run[1]_library_id']
library_id = ssm['opt_ms_run[1]_cv_MS:1003062_spectrum_index']
library_uri = urlparse.urlparse(urlparse.unquote(ssm['database']))
library_filename = os.path.abspath(os.path.join(
library_uri.netloc, library_uri.path))
Expand Down
2 changes: 1 addition & 1 deletion src/ann_solo/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def write_mztab(identifications: List[SpectrumSpectrumMatch], filename: str,
'search_engine_score[2]', 'modifications', 'retention_time',
'charge', 'exp_mass_to_charge', 'calc_mass_to_charge',
'spectra_ref', 'pre', 'post', 'start', 'end',
'opt_ms_run[1]_library_id',
'opt_ms_run[1]_cv_MS:1003062_spectrum_index',
'opt_ms_run[1]_cv_MS:1002217_decoy_peptide',
'opt_ms_run[1]_num_candidates']) + '\n')
# SSMs sorted by their query identifier.
Expand Down

0 comments on commit b5fb515

Please sign in to comment.