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

Energy offset input preparation - following the SSM approach #20

Merged
merged 7 commits into from
Apr 20, 2021

Conversation

candidechamp
Copy link
Collaborator

@candidechamp candidechamp commented Apr 7, 2021

Hi,

This ended up being a bit more involved than I thought, but what these changes are for are quite simple.

We know from Benjamin's work that we would like to use the SSM approach in all steps of the pipeline. This means that we want to use the coordinates for the optimized states analysis as input for the various pipeline steps.

Prior to these changes, the eoff input would find the undersampling limit from the lower bound analysis, and then go 2 replicas lower (for a total of 3 undersampling replicas). This however means that we would be "missing" some of the conformations from some end states as usually they are more than 3.

Here my approach was to place N (number of end states) replicas between the two bounds found in the lower bound analysis. This means the s_vals.csv file generated now contains that information.

Then I had to modify the eoff submission to take this into account, which meant changing a few things.

The code previously had many options to determine the s-values, I chose to remove the access to these other options. I think it would always be simpler to just write down the values in the csv, and call the code as it is. I didn't remove all of the redundant code, but I could do it as soon as I get your approval.

Note that this code could therefore easily work with an s-distribution that doesn't have N undersampling replicas.

@RiesBen RiesBen mentioned this pull request Apr 15, 2021
4 tasks
Copy link
Collaborator

@RiesBen RiesBen left a comment

Choose a reason for hiding this comment

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

I just found a minor thing here, which is the default path, that should be changed. Appart from that I think now all the changes make sense.


##make folder
out_eoff_dir = bash.make_folder(out_eoff_dir)

opt_states = "/path/to/a_optimizedState/analysis/data"
template_imd = "/home/cchampion/tmp/test_area/CHK1_ring/input/template_reeds.imd"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a relative path to "../0_input right/template_reeds.imd"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, my idea with writing /path/to/a_optimizedStates/...
was to make sure the user replaces this line with what they want every time they use it.

We could have a default value of opt_states = root_dir + "/a_optimizedState/analysis/data"

for the template imd I just forgot to change, but your suggestion is correct!

I'll make these small changes tomorrow morning and merge it if that is ok with you.

@RiesBen RiesBen self-requested a review April 19, 2021 15:56
Copy link
Collaborator

@RiesBen RiesBen left a comment

Choose a reason for hiding this comment

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

@candidechamp
can be merged, after changing the paths as mentioned.

@candidechamp candidechamp merged commit 14f15db into main Apr 20, 2021
@candidechamp candidechamp deleted the ssm_eoff_input branch April 20, 2021 08:09
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