Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Packages
chemical_checker
Commits
7eb3d3b9
Commit
7eb3d3b9
authored
Feb 11, 2021
by
nsoler
Browse files
admin cc scripts
parent
385e84e0
Pipeline
#2387
failed with stages
in 1 minute and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
package/scripts/export_features_sign0.py
View file @
7eb3d3b9
...
...
@@ -6,7 +6,7 @@ from chemicalchecker.core.chemcheck import ChemicalChecker
from
get_repo_version
import
cc_repo_version
#VERSION= "2020_02"
def
export_features_sign0
(
cc_repo
=
None
,
outDir
=
"/aloy/scratch/nsoler/CC_related/EXPORT_SIGN/sign0
"
):
def
export_features_sign0
(
destination
=
"/aloy/scratch/nsoler/CC_related/EXPORT_SIGN/sign0
_features"
,
cc_repo
=
None
):
if
cc_repo
is
None
:
cc_repo
=
cc_repo_version
()
...
...
@@ -19,10 +19,23 @@ def export_features_sign0(cc_repo=None, outDir="/aloy/scratch/nsoler/CC_related/
else
:
print
(
"Working with cc_repo:"
,
cc_repo
)
if
not
os
.
path
.
exists
(
destination
):
try
:
os
.
makedirs
(
destination
)
except
Exception
as
e
:
print
(
"ERROR while attempting to create destination folder"
,
destination
)
print
(
e
)
else
:
print
(
"Created directory"
,
destination
)
cc
=
ChemicalChecker
(
cc_repo
)
for
space
in
"ABCDE"
:
for
num
in
(
1
,
2
,
3
,
4
,
5
):
ds
=
space
+
str
(
num
)
+
'.001'
sign0tmp
=
cc
.
get_signature
(
'sign0'
,
'full'
,
ds
)
sign0tmp
.
export_features
(
outDir
)
\ No newline at end of file
sign0tmp
.
export_features
(
destination
)
if
__name__
==
'__main__'
:
destination
=
"/aloy/scratch/nsoler/CC_related/EXPORT_SIGN/sign0_features"
export_features_sign0
(
destination
=
destination
)
\ No newline at end of file
package/scripts/make_symlink_sign0_1.py
View file @
7eb3d3b9
...
...
@@ -54,4 +54,5 @@ def make symlinks(destination = "/aloy/scratch/nsoler/CC_related/EXPORT_SIGN", c
if
__name__
==
'__main__'
:
destination
=
""
\ No newline at end of file
destination
=
"/aloy/web_checker/package_cc/2020_02/sign_links"
make
symlinks
(
destination
=
destination
)
\ No newline at end of file
Write
Preview
Markdown
is supported
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