Skip to content

Commit

Permalink
Merge pull request #325 from theGreatHerrLebert/feature/timsim-gui
Browse files Browse the repository at this point in the history
adding missing q-value calc to HLA case
  • Loading branch information
theGreatHerrLebert authored Feb 18, 2025
2 parents 20e62ed + 2a656d2 commit e7ce090
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion imspy/imspy/timstof/dbsearch/imspy_dda.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

from sagepy.core import Precursor, Tolerance, SpectrumProcessor, Scorer, EnzymeBuilder, SageSearchConfiguration
from sagepy.core.scoring import associate_fragment_ions_with_prosit_predicted_intensities, ScoreType
from sagepy.qfdr.tdc import target_decoy_competition_pandas
from sagepy.qfdr.tdc import target_decoy_competition_pandas, assign_sage_spectrum_q, assign_sage_peptide_q, \
assign_sage_protein_q

from imspy.algorithm.ccs.predictors import DeepPeptideIonMobilityApex, load_deep_ccs_predictor
from imspy.algorithm.utility import load_tokenizer_from_resources
Expand Down Expand Up @@ -846,6 +847,14 @@ def main():
print("calculating q-values using SAGE internal functions...")
sage_fdr_psm(psms, indexed_db, use_hyper_score=False)

# if we have multiple fasta files, q-values need to be calculated with database independent functions
else:
if args.verbose:
print("calculating q-values using SAGE-style re-implemented functions...")
assign_sage_spectrum_q(psms, use_hyper_score=True)
assign_sage_peptide_q(psms, use_hyper_score=True)
assign_sage_protein_q(psms, use_hyper_score=True)

# serialize all PSMs to JSON binary
bts = compress_psms(psms)

Expand Down

0 comments on commit e7ce090

Please sign in to comment.