-
Notifications
You must be signed in to change notification settings - Fork 2
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
swap ca cb channels #93
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setup( | ||
name="aposteriori", | ||
version="2.2.0", | ||
version="2.3.0", | ||
author="Wells Wood Research Group", | ||
author_email="[email protected]", | ||
description="A library for the voxelization of protein structures for protein design.", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,11 +113,12 @@ | |
@click.option( | ||
"-ae", | ||
"--atom_encoder", | ||
type=click.Choice(["CNO", "CNOCB", "CNOCBCA", "CNOCBCAQ", "CNOCBCAP"]), | ||
type=click.Choice(["CNO", "CNOCB", "CNOCACB", "CNOCACBQ", "CNOCACBP"]), | ||
default="CNO", | ||
required=True, | ||
help=( | ||
"Encodes atoms in different channels, depending on atom types. Default is CNO, other options are ´CNOCB´ and `CNOCBCA` to encode the Cb or Cb and Ca in different channels respectively." | ||
"Encodes atoms in different channels, depending on atom types. Default is CNO, other options are ´CNOCB´ and `CNOCACB` to encode the Cb or Cb and Ca in different channels respectively. " | ||
"Charged and polar versions can be used with CNOCACBQ and CNOCACBP respectively." | ||
), | ||
) | ||
@click.option( | ||
|
@@ -267,20 +268,20 @@ def cli( | |
codec = Codec.CNO() | ||
elif atom_encoder == "CNOCB": | ||
codec = Codec.CNOCB() | ||
elif atom_encoder == "CNOCBCA": | ||
codec = Codec.CNOCBCA() | ||
elif atom_encoder == "CNOCBCAQ": | ||
codec = Codec.CNOCBCAQ() | ||
elif atom_encoder == "CNOCBCAP": | ||
codec = Codec.CNOCBCAP() | ||
elif atom_encoder == "CNOCACB": | ||
codec = Codec.CNOCACB() | ||
elif atom_encoder == "CNOCACBQ": | ||
codec = Codec.CNOCACBQ() | ||
elif atom_encoder == "CNOCACBP": | ||
codec = Codec.CNOCACBP() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here maybe let's add both |
||
else: | ||
assert atom_encoder in [ | ||
"CNO", | ||
"CNOCB", | ||
"CNOCBCA", | ||
"CNOCBCAQ", | ||
"CNOCBCAP", | ||
], f"Expected encoder to be CNO, CNOCB, CNOCBCA, CNOCBCAQ, CNOCBCAP, but got {atom_encoder}" | ||
"CNOCACB", | ||
"CNOCACBQ", | ||
"CNOCACBP", | ||
], f"Expected encoder to be CNO, CNOCB, CNOCACB, CNOCACBQ, CNOCACBP, but got {atom_encoder}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again here. I would say let's raise a warning if you are using the old encoders saying they are deprecated and will be removed in future versions. |
||
|
||
make_frame_dataset( | ||
structure_files=structure_files, | ||
|
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.
For backwards compatibility, can we add both?
type=click.Choice(["CNO", "CNOCB", "CNOCACB", "CNOCACBQ", "CNOCACBP", "CNOCBCA", "CNOCBCAQ", "CNOCBCAP" ]),