Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
RNANet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2020-08-25 13:38:24 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8eb4c7145331e9eb07c416275ba2f57ba5f38c9
d8eb4c71
1 parent
1854316d
automation script for EvryRNA
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
RNAnet.py
automate.sh
RNAnet.py
View file @
d8eb4c7
...
...
@@ -1411,7 +1411,10 @@ class Pipeline:
subprocess
.
run
([
"tar"
,
"-C"
,
path_to_3D_data
+
"/datapoints"
,
"-czf"
,
f
"results/archive/RNANET_datapoints_{time_str}.tar.gz"
,
"."
])
# Update shortcuts to latest versions
subprocess
.
run
([
"rm"
,
"-f"
,
runDir
+
"/results/RNANET_datapoints_latest.tar.gz"
,
runDir
+
"/results/summary_latest.csv"
,
runDir
+
"/results/families_latest.csv"
])
subprocess
.
run
([
"rm"
,
"-f"
,
runDir
+
"/results/RNANET_datapoints_latest.tar.gz"
,
runDir
+
"/results/summary_latest.csv"
,
runDir
+
"/results/families_latest.csv"
])
subprocess
.
run
([
'ln'
,
"-s"
,
runDir
+
f
"/results/archive/RNANET_datapoints_{time_str}.tar.gz"
,
runDir
+
"/results/RNANET_datapoints_latest.tar.gz"
])
subprocess
.
run
([
'ln'
,
"-s"
,
runDir
+
f
"/results/archive/summary_{time_str}.csv"
,
runDir
+
"/results/summary_latest.csv"
])
subprocess
.
run
([
'ln'
,
"-s"
,
runDir
+
f
"/results/archive/families_{time_str}.csv"
,
runDir
+
"/results/families_latest.csv"
])
...
...
automate.sh
View file @
d8eb4c7
# This is a script supposed to be run periodically as a cron job
# Run RNANet
cd
/home/lbecquey/Projects/RNANet;
rm -f stdout.txt stderr.txt errors.txt;
# Run RNANet
time
'./RNAnet.py --3d-folder /home/lbequey/Data/RNA/3D/ --seq-folder /home/lbecquey/Data/RNA/sequences/ -s -r 20.0 --archive'
> stdout.txt 2> stderr.txt;
# Compress
rm -f results/RNANet.db.gz
gzip -k results/RNANet.db
# Sync in Seafile
seaf-cli start;
sleep 1h;
seaf-cli stop;
...
...
Please
register
or
login
to post a comment