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

Cgsmiles 1 #377

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Cgsmiles 1 #377

wants to merge 3 commits into from

Conversation

fgrunewald
Copy link
Member

Adding CGSmiles strings as option to describe polymer graphs.

This PR needs to wait until the CGSmiles package is advanced a little more but in principle works.

@fgrunewald fgrunewald requested a review from pckroon July 17, 2024 08:26
elif seq_only:
# initalize the cgsmiles molecule resolver
resolver = MoleculeResolver(cgsmiles_str, last_all_atom=all_atom)
# grep the last graph of the resolve iter
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# grep the last graph of the resolve iter
# grab the last graph of the resolve iter

meta_graph.nodes[node]['resname'] = resname
else:
for atom in meta_graph.nodes['graph'].nodes:
meta_graph.nodes['graph'].nodes[atom]['resname'] = resname
Copy link
Member

Choose a reason for hiding this comment

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

resname is undefined here

Comment on lines +355 to +356
sequence: str
string of residues format name:number
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
sequence: str
string of residues format name:number
sequence: list[str]
string of residues format name:number

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.

2 participants