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-10-01 20:18:23 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7d8de5ade76ae65a3c6c53a3a400d26db2044052
7d8de5ad
1 parent
0ec3d1cf
timestamp for archive
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
RNAnet.py
scripts/automate.sh
RNAnet.py
View file @
7d8de5a
...
...
@@ -1559,8 +1559,10 @@ class Pipeline:
if
self
.
ARCHIVE
:
os
.
makedirs
(
runDir
+
"/archive"
,
exist_ok
=
True
)
datestr
=
time
.
strftime
(
'
%
Y
%
m
%
d'
)
subprocess
.
run
([
"tar"
,
"-C"
,
path_to_3D_data
+
"/datapoints"
,
"-czf"
,
runDir
+
f
"/archive/RNANET_datapoints_{time.strftime('
%
Y
%
m
%
d')}.tar.gz"
,
"."
])
runDir
+
f
"/archive/RNANET_datapoints_{datestr}.tar.gz"
,
"."
])
subprocess
.
run
([
"ln"
,
"-S"
,
runDir
+
f
"/archive/RNANET_datapoints_{datestr}.tar.gz"
,
runDir
+
f
"/archive/RNANET_datapoints_latest.tar.gz"
])
def
sanitize_database
(
self
):
"""Searches for issues in the database and correct them"""
...
...
scripts/automate.sh
View file @
7d8de5a
...
...
@@ -19,6 +19,9 @@ cp /home/lbecquey/Projects/RNANet/results/frequencies.csv /home/lbecquey/Project
cp /home/lbecquey/Projects/RNANet/results/pair_types.csv /home/lbecquey/Projects/RNANet/archive/pair_types_latest.csv
mv /home/lbecquey/Projects/RNANet/results/RNANet.db.gz /home/lbecquey/Projects/RNANet/archive/
# Init Seafile synchronization between RNANet library and ./archive/ folder (just the first time !)
# seaf-cli sync -l 8e082c6e-b9ed-4b2f-9279-de2177134c57 -s https://entrepot.ibisc.univ-evry.fr -u l****.b*****y@univ-evry.fr -p ****************** -d archive/
# Sync in Seafile
seaf-cli start >> latest_run.log 2>&1
echo
'Waiting 10m for SeaFile synchronization...'
>> latest_run.log
...
...
Please
register
or
login
to post a comment