Skip to content

Instantly share code, notes, and snippets.

@larsbratholm
Created November 6, 2019 11:23
Show Gist options
  • Save larsbratholm/47c29ce9347eed6e8f45245a8e6339ac to your computer and use it in GitHub Desktop.
Save larsbratholm/47c29ce9347eed6e8f45245a8e6339ac to your computer and use it in GitHub Desktop.
parsing cs and angles
import numpy as np
if __name__ == "__main__":
# parse angles to get an array like
x = [
[160, 90],
[80, 120]
]
# save the parsed data
np.save('ALA_angles.npy')
# Do this for all the chemical shifts that you want, which is ha, hn, ca, cb, co, n of each of the three residues
# parse chemical shifts to get an array like (you will need to specify the index of the atom you want)
y = [150, 160]
# save the parsed data (in this case central cb)
np.save('ALA_central_cb_cs.npy')
# The files can be loaded again with 'x = np.load('ALA_angles.npy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment