-
Notifications
You must be signed in to change notification settings - Fork 47
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
Martini3-IDP #647
base: master
Are you sure you want to change the base?
Martini3-IDP #647
Changes from all commits
4b21391
db6722e
4591a61
3ebabba
4bf7810
c510ef3
92d21f6
f4f61ea
cf44b5d
b5a4b6d
e5ef2c0
cddf4eb
c5df2ee
44941d6
d01a03d
e553fc3
72e8ade
008a4f0
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 |
---|---|---|
|
@@ -78,7 +78,6 @@ LOGGER = StyleAdapter(LOGGER) | |
|
||
VERSION = "martinize with vermouth {}".format(vermouth.__version__) | ||
|
||
|
||
def read_system(path, ignore_resnames=(), ignh=None, modelidx=None): | ||
""" | ||
Read a system from a PDB or GRO file. | ||
|
@@ -1037,6 +1036,12 @@ def entry(): | |
defines = ("GO_VIRT",) | ||
itp_paths = {"atomtypes": "go_atomtypes.itp", | ||
"nonbond_params": "go_nbparams.itp"} | ||
if not args.water_bias: | ||
# this ensures that disordered-folded go bonds get removed regardless of force field. | ||
vermouth.processors.ComputeWaterBias(args.water_bias, | ||
{s: float(eps) for s, eps in args.water_bias_eps}, | ||
[(int(start), int(stop)) for start, stop in args.water_idrs], | ||
).run_system(system) | ||
else: | ||
# don't write non-bonded interactions | ||
itp_paths = [] | ||
|
@@ -1167,6 +1172,25 @@ def entry(): | |
"".join(ss_sequence), | ||
] | ||
|
||
supp_ss_seq = list( | ||
itertools.chain( | ||
*( | ||
dssp.sequence_from_residues(molecule, "cgsecstruct") | ||
for molecule in system.molecules | ||
if selectors.is_protein(molecule) | ||
) | ||
) | ||
) | ||
if any([molecule.meta.get('modified_cgsecstruct', False) for molecule in system.molecules]): | ||
LOGGER.info(("Secondary structure assignment changed between dssp and martinize. " | ||
"Check files for details."), type="general") | ||
header += [ | ||
"The assigned secondary structure conflicted with ", | ||
"annotated IDRs. The following sequence of Martini secondary ", | ||
"structure was actually applied to the system:", | ||
"".join([dssp.SS_CG[i] for i in supp_ss_seq]) | ||
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. Can you explain why the |
||
] | ||
|
||
Comment on lines
+1184
to
+1193
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. Any chance we can fold this into an (existing) processor? |
||
if args.top_path is not None: | ||
write_gmx_topology(system, | ||
args.top_path, | ||
|
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.
Do
args.water_bias_eps
andargs.water_idrs
have sane defaults?