Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Norman Ziegner
deepFPlearn
Commits
474490f1
Commit
474490f1
authored
May 28, 2020
by
Jana Schor
Browse files
canonical smiles transformation tested
parent
ceea3193
Changes
1
Hide whitespace changes
Inline
Side-by-side
dfplmodule.py
View file @
474490f1
...
...
@@ -114,6 +114,7 @@ def smi2fp(smile, fptype, size=2048):
# generate a mol object from smiles string
print
(
smile
)
cs
=
None
# first transform to canoncial smiles
try
:
cs
=
Chem
.
CanonSmiles
(
smile
)
...
...
@@ -122,6 +123,7 @@ def smi2fp(smile, fptype, size=2048):
if
not
cs
:
return
None
mol
=
None
try
:
mol
=
Chem
.
MolFromSmiles
(
cs
)
except
:
...
...
@@ -277,7 +279,7 @@ def XfromInput(csvfilename, rtype, fptype, printfp=False, retNames=False, size=2
#Ncols = len(DataStructs.BitVectToText(fps[0]))
if
verbose
>
0
:
print
(
f
'[INFO] Returned # of fingerprints:
{
Nrows
}
'
)
exit
(
0
)
# Store all fingerprints in numpy array
x
=
np
.
empty
((
Nrows
,
Ncols
),
int
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment