Skip to content

Commit

Permalink
Merge pull request #90 from 3dem/jamaliki-patch-1
Browse files Browse the repository at this point in the history
Fix numbering and sort best_hits
  • Loading branch information
jamaliki authored Nov 22, 2023
2 parents 67dc3d9 + e287a76 commit 8c48780
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion model_angelo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"""


__version__ = "1.0.9"
__version__ = "1.0.10"
2 changes: 2 additions & 0 deletions model_angelo/apps/hmm_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def main(parsed_args):
# Keep track of unique chains by target name with the lowest E-value and store separately
min_evalue_indices = hits_df.groupby('target_name')['E-value'].idxmin()
filtered_df = hits_df.loc[min_evalue_indices]
# Sort hits by lowest E-value to highest
filtered_df.sort_values(by=["E-value"], inplace=True)
filtered_df.to_csv(os.path.join(parsed_args.output_dir, "best_hits.csv"), index=False)

print("-" * 70)
Expand Down
4 changes: 2 additions & 2 deletions model_angelo/utils/save_pdb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

class ModelAngeloMMCIFIO(MMCIFIO):
def _save_dict(self, out_file):
auth_seq_id = deepcopy(self.dic["_atom_site.label_seq_id"])
label_seq_id = deepcopy(self.dic["_atom_site.auth_seq_id"])
label_seq_id = deepcopy(self.dic["_atom_site.label_seq_id"])
auth_seq_id = deepcopy(self.dic["_atom_site.auth_seq_id"])
self.dic["_atom_site.label_seq_id"] = label_seq_id
self.dic["_atom_site.auth_seq_id"] = auth_seq_id
return super()._save_dict(out_file)
Expand Down

0 comments on commit 8c48780

Please sign in to comment.