Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
dffa2ab1
Commit
dffa2ab1
authored
Aug 30, 2019
by
Romain Therville
☕
Browse files
issue#86
Instead of being deleted, special characters are replaced with '_'.
parent
e2ecc6b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ng6/utils.py
View file @
dffa2ab1
...
...
@@ -380,7 +380,7 @@ class Utils(object):
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"
%
(
re
.
sub
(
r
"[^A-Za-z1-9]"
,
""
,
run
[
'name'
]),
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
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment