-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: master
Are you sure you want to change the base?
Cgsmiles 1 #377
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resname is undefined here
sequence: str | ||
string of residues format name:number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sequence: str | |
string of residues format name:number | |
sequence: list[str] | |
string of residues format name:number |
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.