Skip to content

Instantly share code, notes, and snippets.

@jhjensen2
Created May 6, 2016 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhjensen2/41662b74e4a01e0b639920cc9e13e23e to your computer and use it in GitHub Desktop.
Save jhjensen2/41662b74e4a01e0b639920cc9e13e23e to your computer and use it in GitHub Desktop.
smiles = "CCCC"
subst = ["F","Cl"]
l = list(smiles)
print l
s = ""
print l[1]+l[2]+l[3]
for i in range(len(subst)):
x = subst[i]
for j in range(len(subst)):
y = subst[i]
if j>=i:
print x+smiles+y
for i in range(len(l)):
s = s + l[i]
print s
x = "CN1CC[C@]23[C@H]4Oc5c(O)ccc(C[C@@H]1[C@@H]2C=C[C@@H]4O)c35"
words = x.split("N")
print words
print words[0]+"[N@H+]"+words[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment