Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ng6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
genotoul-bioinfo
ng6
Commits
d3d2f507
Commit
d3d2f507
authored
5 years ago
by
Gerald Salin
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue#86' into 'master'
Merge branch Issue#86 into master See merge request
!31
parents
eeef3ecf
dffa2ab1
No related branches found
Branches containing commit
Tags
V3.2.5
Tags containing commit
1 merge request
!31
Merge branch Issue#86 into master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ng6/utils.py
+5
-3
5 additions, 3 deletions
src/ng6/utils.py
ui/nG6/res/js/tx_nG6_pi5.js
+1
-0
1 addition, 0 deletions
ui/nG6/res/js/tx_nG6_pi5.js
workflows/download_symlink/components/createsymlink.py
+2
-1
2 additions, 1 deletion
workflows/download_symlink/components/createsymlink.py
with
8 additions
and
4 deletions
src/ng6/utils.py
+
5
−
3
View file @
d3d2f507
...
...
@@ -377,9 +377,10 @@ class Utils(object):
if
prefix
==
"
data
"
or
prefix
==
"
run
"
:
run
=
t3mysql
.
select_run_informations
(
id
)
source_dir
=
data_folder
+
'
/
'
+
run
[
'
directory
'
]
project_name
=
"
Project_%s.%s
"
%
(
re
.
sub
(
r
"
[\s\/]
"
,
"
_
"
,
run
[
'
project_name
'
]),
run
[
'
project_id
'
]
)
run_name
=
"
Run_%s.%s
"
%
(
run
[
'
name
'
].
replace
(
'
'
,
'
_
'
).
replace
(
'
/
'
,
'
_
'
),
id
)
#run_name = "Run_%s.%s" %( run['name'].replace(' ', '_').replace('/', '_'), id )
run_name
=
"
Run_%s.%s
"
%
(
re
.
sub
(
r
"
[^A-Za-z1-9]
"
,
"
_
"
,
run
[
'
name
'
]),
id
)
raw_data_dir
=
os
.
path
.
join
(
output_folder
,
project_name
,
run_name
,
"
RawData
"
)
if
source_dir
not
in
src_directories
:
...
...
@@ -392,6 +393,7 @@ class Utils(object):
analysis_dir
=
data_folder
+
'
/
'
+
analyse_values
[
"
directory
"
]
analysis_name
=
"
Analyse_%s.%s
"
%
(
re
.
sub
(
r
"
[\s\/]
"
,
"
_
"
,
analyse_values
[
'
name
'
]),
analyse_id
)
dest_analysis_dir
=
os
.
path
.
join
(
output_folder
,
project_name
,
run_name
,
analysis_name
)
if
analysis_dir
not
in
src_directories
:
src_directories
.
append
(
analysis_dir
)
if
dest_analysis_dir
not
in
dest_directories
:
...
...
@@ -409,6 +411,7 @@ class Utils(object):
# it's a run analysis
if
analyse
[
"
run_id
"
]:
run_name
=
"
Run_%s.%s
"
%
(
re
.
sub
(
r
"
[\s\/]
"
,
"
_
"
,
analyse
[
"
run_name
"
]),
analyse
[
"
run_id
"
])
analysis_name
=
"
Analyse_%s.%s
"
%
(
re
.
sub
(
r
"
[\s\/]
"
,
"
_
"
,
analyse
[
"
name
"
]),
id
)
dest_analysis_dir
=
os
.
path
.
join
(
output_folder
,
project_name
,
run_name
,
analysis_name
)
if
dest_analysis_dir
not
in
dest_directories
:
...
...
@@ -429,7 +432,6 @@ class Utils(object):
if
os
.
path
.
isdir
(
e
)
:
sources
.
append
(
e
)
destinations
.
append
(
dest_directories
[
i
])
return
sources
,
destinations
...
...
This diff is collapsed.
Click to expand it.
ui/nG6/res/js/tx_nG6_pi5.js
+
1
−
0
View file @
d3d2f507
...
...
@@ -83,6 +83,7 @@ $(function () {
};
var
_retrieve_data
=
function
(
workflow_id
,
callback
,
error_callback
){
console
.
log
(
"
IN _retrieve_data, workflow_id=
"
+
workflow_id
);
$
.
ajax
({
url
:
$
(
"
#server_url
"
).
val
()
+
'
/get_workflow_outputs?workflow_id=
'
+
workflow_id
,
dataType
:
'
jsonp
'
,
...
...
This diff is collapsed.
Click to expand it.
workflows/download_symlink/components/createsymlink.py
+
2
−
1
View file @
d3d2f507
...
...
@@ -17,6 +17,7 @@
import
os
import
pickle
import
logging
from
jflow.component
import
Component
from
ng6.utils
import
Utils
...
...
@@ -27,6 +28,7 @@ def create_symbolik_link (ids_dump_path, output_list, user_script, username, pas
import
os
import
pickle
import
subprocess
import
logging
from
ng6.config_reader
import
NG6ConfigReader
from
ng6.utils
import
Utils
,
SSH
...
...
@@ -44,7 +46,6 @@ def create_symbolik_link (ids_dump_path, output_list, user_script, username, pas
fh
.
close
()
prefixed_ids
=
"
;
"
.
join
(
prefixed_ids
)
src_directories
,
dest_directories
=
Utils
.
get_directories_structure_and_content
(
ng6_username
,
data_folder
,
output_folder
,
prefixed_ids
)
destinations
=
[]
with
open
(
user_script
,
"
w
"
)
as
us
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment