You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: run_PMGen.py
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,8 +145,13 @@ def main():
145
145
'similarity above this fraction (0-1). pMHC similarity is the length-weighted '
146
146
'average of MHC G-domain identity and peptide identity. Default: 1.0.') # added after review --> similarity benchmark
147
147
parser.add_argument('--benchmark_exclude_ids', action="store_true", help="If activated, none of the ids in df are used as templates for benchmarking.")
148
+
parser.add_argument('--benchmark_before_date', action='store_true', default=False, help='Only valid with --benchmark. When set, templates whose PDB release '
149
+
'date is >= the target structure\'s release date are excluded. '
150
+
'Requires a "release_date" (or "PDB release date") column in --df. '
151
+
'Templates whose PDB IDs are not in --df are kept (assumed pre-2018).')
148
152
149
153
args=parser.parse_args()
154
+
ifargs.benchmark_before_date: assertargs.benchmark, "--benchmark_before_date requires --benchmark to be set."
# Build benchmark exclusion list (4-letter PDB prefixes from all test ids) # added after review --> similarity threshold
210
234
benchmark_exclude_ids=None
211
235
ifargs.benchmark_exclude_ids: # not activated for main benchmarking, bcz other methods used all templates and the comparision was not fair if we do it. Instead done in supplementary to asses model performance.
0 commit comments