Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a module for working with RMG reaction families #754

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

alongd
Copy link
Member

@alongd alongd commented Jul 2, 2024

Now we can identify for each ARC reaction all possible pathways between the reactants and products according to reaction families supported by RMG.
Also added dummy ARC families (w/o kinetics) to assist in identifying reaction templates.
Tests added.

arc/reaction/family_test.py Fixed Show fixed Hide fixed
arc/reaction/family_test.py Fixed Show fixed Hide fixed
Comment on lines +509 to +536
# def get_all_reactions_paths(rxn: 'ARCReaction') -> List['ARCReaction']:
# """
# Get all possible reaction paths with labeled atoms for a given ARC reaction.
#
# Args:
# rxn ('ARCReaction'): The ARC reaction object.
#
# Returns:
# List['ARCReaction']: A list of reactions, each represents a possible reaction path.
# """
# reaction_paths = list()
# for reactant in rxn.get_reactants_and_products(arc=True, return_copies=True)[0]:
# all_reactions.extend(reactant.generate_reactions())
# return all_reactions

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
alongd added 17 commits July 29, 2024 14:00
were used to report the git branch and commit of the repos
ARC reaction families are families for which only a template/recipe is given without kinetic data. They can be used by ARC to atom-map a reaction and search for a transition state just like RMG families. They have the same format as the `group.py` file in RMG reaction families, only here the files are named by the family label. ARC families should be located under ARC/data/families/ to be discovered by ARC.

Also added ARC_FAMILIES_PATH to settings
Currently the rmgdb module is only used by processor which will be dealt with in a different PR
It is no longer an object, no need to call family.label
No need to call determine_family() since family is now a property of reaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant