Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chipathlon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Holland Computing Center
chipathlon
Commits
dc7c0b9c
Commit
dc7c0b9c
authored
9 years ago
by
aknecht2
Browse files
Options
Downloads
Patches
Plain Diff
Changed overwrite default to True. Adjusted download to the correct md5 value.
parent
4d651c4d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
chipathlon/jobs/scripts/download_fastq.py
+1
-1
1 addition, 1 deletion
chipathlon/jobs/scripts/download_fastq.py
chipathlon/utils.py
+1
-1
1 addition, 1 deletion
chipathlon/utils.py
chipathlon/workflow.py
+1
-1
1 addition, 1 deletion
chipathlon/workflow.py
with
3 additions
and
3 deletions
chipathlon/jobs/scripts/download_fastq.py
+
1
−
1
View file @
dc7c0b9c
...
@@ -7,7 +7,7 @@ parser.add_argument("-u", "--url", dest="url", required=True, help="Target url."
...
@@ -7,7 +7,7 @@ parser.add_argument("-u", "--url", dest="url", required=True, help="Target url."
parser
.
add_argument
(
"
-p
"
,
"
--path
"
,
dest
=
"
path
"
,
required
=
True
,
help
=
"
Local path to file.
"
)
parser
.
add_argument
(
"
-p
"
,
"
--path
"
,
dest
=
"
path
"
,
required
=
True
,
help
=
"
Local path to file.
"
)
parser
.
add_argument
(
"
-t
"
,
"
--url_type
"
,
dest
=
"
url_type
"
,
default
=
"
ftp://
"
,
help
=
"
Type of url to access.
"
)
parser
.
add_argument
(
"
-t
"
,
"
--url_type
"
,
dest
=
"
url_type
"
,
default
=
"
ftp://
"
,
help
=
"
Type of url to access.
"
)
parser
.
add_argument
(
"
-r
"
,
"
--retries
"
,
dest
=
"
retries
"
,
default
=
3
,
type
=
int
,
help
=
"
Number of retries.
"
)
parser
.
add_argument
(
"
-r
"
,
"
--retries
"
,
dest
=
"
retries
"
,
default
=
3
,
type
=
int
,
help
=
"
Number of retries.
"
)
parser
.
add_argument
(
"
-
o
"
,
"
--overwrite
"
,
dest
=
"
overwrite
"
,
default
=
Fals
e
,
action
=
"
store_
tru
e
"
,
help
=
"
O
verwrite local file if exists.
"
)
parser
.
add_argument
(
"
-
n
"
,
"
--overwrite
"
,
dest
=
"
overwrite
"
,
default
=
Tru
e
,
action
=
"
store_
fals
e
"
,
help
=
"
Dont
'
o
verwrite local file if exists.
"
)
parser
.
add_argument
(
"
-m
"
,
"
--md5
"
,
dest
=
"
md5
"
,
help
=
"
Check md5 value against passed value.
"
)
parser
.
add_argument
(
"
-m
"
,
"
--md5
"
,
dest
=
"
md5
"
,
help
=
"
Check md5 value against passed value.
"
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
...
This diff is collapsed.
Click to expand it.
chipathlon/utils.py
+
1
−
1
View file @
dc7c0b9c
...
@@ -13,7 +13,7 @@ def progress(current, end, length=20):
...
@@ -13,7 +13,7 @@ def progress(current, end, length=20):
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
def
downloadFile
(
url
,
localpath
,
urltype
=
"
ftp://
"
,
retries
=
3
,
overwrite
=
Fals
e
,
checkmd5
=
False
,
md5
=
None
):
def
downloadFile
(
url
,
localpath
,
urltype
=
"
ftp://
"
,
retries
=
3
,
overwrite
=
Tru
e
,
checkmd5
=
False
,
md5
=
None
):
success
=
False
success
=
False
if
url
[:
7
]
==
"
http://
"
:
if
url
[:
7
]
==
"
http://
"
:
urltype
=
""
urltype
=
""
...
...
This diff is collapsed.
Click to expand it.
chipathlon/workflow.py
+
1
−
1
View file @
dc7c0b9c
...
@@ -253,7 +253,7 @@ class Workflow(object):
...
@@ -253,7 +253,7 @@ class Workflow(object):
self
.
files
[
output_name
]
=
output_file
self
.
files
[
output_name
]
=
output_file
job
=
Job
(
self
.
executables
[
"
download_fastq.py
"
])
job
=
Job
(
self
.
executables
[
"
download_fastq.py
"
])
job
.
uses
(
output_file
,
link
=
Link
.
OUTPUT
,
transfer
=
True
)
job
.
uses
(
output_file
,
link
=
Link
.
OUTPUT
,
transfer
=
True
)
job
.
addArguments
(
"
-u
"
,
f
[
"
url
"
],
"
-p
"
,
output_file
,
"
-t http://
"
,
"
-m
"
,
f
[
"
content_
md5sum
"
])
job
.
addArguments
(
"
-u
"
,
f
[
"
url
"
],
"
-p
"
,
output_file
,
"
-t http://
"
,
"
-m
"
,
f
[
"
md5sum
"
])
self
.
jobs
[
output_name
]
=
job
self
.
jobs
[
output_name
]
=
job
self
.
dax
.
addJob
(
job
)
self
.
dax
.
addJob
(
job
)
return
return
...
...
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