Skip to content

Config update#50

Open
hlasimpk wants to merge 21 commits intomainfrom
config_update
Open

Config update#50
hlasimpk wants to merge 21 commits intomainfrom
config_update

Conversation

@hlasimpk
Copy link

Updated a few aspects of ABCFold, most notably:

  • Added in a config file that's stored in the home dir, this has been expanded to contain info on versions, micromamba envs, weight installation locations
  • Worked out why the ipsae scoring was occasionally giving errors and removed try/except after fixing
  • Closes PTM fixes #48 i.e. that PTMs were failing with AF3 due to sequence mismatch in MSA, also found an issue with how Boltz worked with bonded pairs.

@hlasimpk hlasimpk requested a review from hllelli2 February 26, 2026 15:52
msa = None
for sequence in json_dict['sequences']:
protein = sequence.get("protein")
if protein is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like not nesting too much for readability. Instead of if protein is not None: You can instead do

if protein is None:
continue

Rest of code

This reduces nesting.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realise this was

markdown

  • --rest of code--

return yaml_string

def add_key_and_value(self, key: str, value: str):
def add_key_and_value(self, key: str, value):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the typing removed from here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the value isn't always a string, so it was breaking for bonded pairs iirc

Could potentially replace with Union[str, bool]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

except ValueError:
logger.error("ValueError when calculating ipSAE score, bypassing ipSAE")
pass
ipsae = Ipsae(model, pae_obj)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏🙏🙏🙏🙏

for seed in self.seeds
}

def update_chain_labels(self, cif_file) -> CifFile:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type hint for cif_file

@hllelli2
Copy link
Collaborator

hllelli2 commented Mar 6, 2026

Looking good.

I think we should add mypy with type-checking to ensure we have all our type-hints in order.

Also, what's your local test coverage getting. we have 67% in actions but we don't run the programs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PTM fixes

2 participants