From: W. Trevor King Date: Fri, 31 May 2013 18:55:26 +0000 (-0400) Subject: crunch.py: Extract unfolding frequency from unfold-protein curves X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc008b25195778d425a5732ab6dfbf990b46aca9;p=blog.git crunch.py: Extract unfolding frequency from unfold-protein curves --- diff --git a/posts/Comparing_velocity_clamp_experiments/crunch.py b/posts/Comparing_velocity_clamp_experiments/crunch.py index 5b261c8..a773099 100755 --- a/posts/Comparing_velocity_clamp_experiments/crunch.py +++ b/posts/Comparing_velocity_clamp_experiments/crunch.py @@ -157,6 +157,7 @@ def load_pull(filename=pull_file, with_temperature=True): alpha_v = _numpy.array(f['unfold']['z'][...].flat, dtype=float) alpha_f = _numpy.array( f['unfold']['deflection'][...].flat, dtype=float) + frequency = float(f['config']['unfold']['frequency'][...]) v = float(f['config']['unfold']['velocity'][...]) if with_temperature: temperature = float(f['environment']['temperature'][...]) @@ -165,6 +166,7 @@ def load_pull(filename=pull_file, with_temperature=True): return { 'alpha_v': alpha_v, 'alpha_f': alpha_f, + 'frequency': frequency, 'velocity': v, 'temperature': temperature, }