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
28418e06
Commit
28418e06
authored
8 years ago
by
aknecht2
Browse files
Options
Downloads
Patches
Plain Diff
Updated check_result to match file_name instead of just checking for existence.
parent
118d623a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
chipathlon/db.py
+2
-2
2 additions, 2 deletions
chipathlon/db.py
chipathlon/workflow.py
+2
-1
2 additions, 1 deletion
chipathlon/workflow.py
with
4 additions
and
3 deletions
chipathlon/db.py
+
2
−
2
View file @
28418e06
...
...
@@ -39,13 +39,13 @@ class MongoDB(object):
print
"
result_id %s doesn
'
t exist.
"
%
(
result_id
,)
return
def
check_result
(
self
,
control_sample_ids
,
experiment_sample_ids
,
ref_genome
,
result_type
,
params
,
debug
=
False
):
def
check_result
(
self
,
file_name
,
control_sample_ids
,
experiment_sample_ids
,
ref_genome
,
result_type
,
params
,
debug
=
False
):
try
:
query
=
{
"
result_type
"
:
result_type
,
"
ref_genome
"
:
ref_genome
,
"
timestamp
"
:
{
"
$exists
"
:
True
},
"
file_name
"
:
{
"
$exists
"
:
True
}
"
file_name
"
:
file_name
}
# In the case that there are 0 samples we just want to check for existence.
query
[
"
control_sample_ids
"
]
=
{
"
$all
"
:
control_sample_ids
}
if
(
len
(
control_sample_ids
)
>
0
)
else
{
"
$exists
"
:
True
}
...
...
This diff is collapsed.
Click to expand it.
chipathlon/workflow.py
+
2
−
1
View file @
28418e06
...
...
@@ -265,6 +265,7 @@ class Workflow(object):
params
[
job_name
]
=
job_arg_dict
result_list
.
append
(
self
.
mdb
.
check_result
(
name
,
outputs
[
name
][
"
control_sample_ids
"
],
outputs
[
name
][
"
experiment_sample_ids
"
],
ref_genome
,
...
...
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