Skip to content

Commit 60ebf09

Browse files
committed
editions added after revisions
1 parent 041c6d2 commit 60ebf09

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

AFfine/run_prediction.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
#(template_pdbfile, target_to_template_alignstring,
171171
# identities, target_len, template_len) = line[cols]
172172

173-
assert row.target_len == len(query_sequence), f'{row.target_len},{len(query_sequence)}'
173+
assert row.target_len == len(query_sequence), f'{row.target_len},{len(query_sequence), row}'
174174
target_to_template_alignment = {
175175
int(x.split(':')[0]) : int(x.split(':')[1]) # 0-indexed
176176
for x in row.target_to_template_alignstring.split(';')
@@ -199,12 +199,6 @@
199199
msa = [query_sequence] + msa
200200

201201

202-
# ── Build peptide mask per-target if sampling requested ──
203-
all_metrics = process_target_with_ig_pipeline(
204-
args, ig_config, targetl, query_sequence, query_chainseq,
205-
all_template_features, model_runners, outfile_prefix,
206-
crop_size, msa, deletion_matrix,
207-
)
208202
# -------- End of V2 after sampling mode -------------- #
209203
all_metrics = process_target_with_ig_pipeline(
210204
args, ig_config, targetl, query_sequence, query_chainseq,

PANDORA/PANDORA/Pandora/Modelling_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from copy import deepcopy
2323
import re
2424
import json
25+
import pandas as pd
2526

2627
def _parse_release_date(s):
2728
"""Parse a release-date string in any of the common formats. Returns a
@@ -680,7 +681,7 @@ def find_template(target, database, best_n_templates=1,
680681
t_date = _parse_release_date(benchmark_release_dates_map[key])
681682
if t_date is None:
682683
continue
683-
if t_date >= tgt_date:
684+
if t_date > tgt_date:
684685
excluded_by_date.append(ID)
685686
putative_templates.pop(ID, None)
686687
print(f'[benchmark_before_date] Target {target.id} '

PANDORA/PANDORA/Pandora/Pandora.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def find_template(self, best_n_templates=1, benchmark=False,
120120
benchmark_exclude_ids=benchmark_exclude_ids,
121121
benchmark_release_dates_map=benchmark_release_dates_map,
122122
target_release_date=target_release_date,
123-
benchmark_release_dates_map=benchmark_release_dates_map,
124-
target_release_date=target_release_date,
125-
verbose=verbose
123+
126124
)
127125

128126
self.target.templates = [i.id for i in self.template]
@@ -460,7 +458,9 @@ def model(self, n_loop_models=20, n_homology_models=1,
460458
benchmark=benchmark,
461459
benchmark_similarity_threshold=benchmark_similarity_threshold, # added after review --> similarity threshold
462460
benchmark_exclude_ids=benchmark_exclude_ids,
463-
verbose=verbose)
461+
benchmark_release_dates_map=benchmark_release_dates_map,
462+
target_release_date=target_release_date,
463+
)
464464
except:
465465
self.__log(self.target.id, 'None', 'Could not find a template')
466466
raise Exception('Could not find a template')

run_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ def run_single_proteinmpnn(path, directory, args, anchor_and_peptide=None):
10311031
binder_pred=args.binder_pred,
10321032
fix_anchors=args.fix_anchors,
10331033
anchor_and_peptide=anchor_and_peptide,
1034-
model_name=args.proteinmpnn_model_name
1034+
model_name=args.proteinmpnn_model_name,
1035+
only_multichain=False,
10351036
)
10361037
runner_mpnn.run() #
10371038

0 commit comments

Comments
 (0)