Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
Swain Lab
aliby
alibylite
Commits
e3d426da
Commit
e3d426da
authored
2 years ago
by
pswain
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into pp_docs
parents
5e1c1544
822b6b95
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/aliby/pipeline.py
+28
-0
28 additions, 0 deletions
src/aliby/pipeline.py
src/postprocessor/chainer.py
+1
-1
1 addition, 1 deletion
src/postprocessor/chainer.py
with
29 additions
and
1 deletion
src/aliby/pipeline.py
+
28
−
0
View file @
e3d426da
...
@@ -36,14 +36,34 @@ from postprocessor.core.processor import PostProcessor, PostProcessorParameters
...
@@ -36,14 +36,34 @@ from postprocessor.core.processor import PostProcessor, PostProcessorParameters
class
PipelineParameters
(
ParametersABC
):
class
PipelineParameters
(
ParametersABC
):
<<<<<<<
HEAD
"""
Define parameters for the different steps of the pipeline.
"""
"""
Define parameters for the different steps of the pipeline.
"""
=======
"""
Define parameters for what processes are run and how.
Input is a a list of dictionaries, one for
general in collection:
pass dictionary for each step
--------------------
expt_id: int or str Experiment id (if integer) or local path (if string).
directory: str Directory into which results are dumped. Default is
"
../data
"
Provides default parameters for the entire pipeline. This downloads the logfiles and sets the default
timepoints and extraction parameters from there.
"""
>>>>>>>
dev
_pool_index
=
None
_pool_index
=
None
def
__init__
(
def
__init__
(
self
,
general
,
tiler
,
baby
,
extraction
,
postprocessing
,
reporting
self
,
general
,
tiler
,
baby
,
extraction
,
postprocessing
,
reporting
):
):
<<<<<<<
HEAD
"""
Initialise, but called by a class method not directly.
"""
"""
Initialise, but called by a class method not directly.
"""
=======
"""
Initialise with general parameters and those for tiler, baby, extraction, postprocessing, and reporting.
"""
>>>>>>>
dev
self
.
general
=
general
self
.
general
=
general
self
.
tiler
=
tiler
self
.
tiler
=
tiler
self
.
baby
=
baby
self
.
baby
=
baby
...
@@ -60,6 +80,7 @@ class PipelineParameters(ParametersABC):
...
@@ -60,6 +80,7 @@ class PipelineParameters(ParametersABC):
extraction
=
{},
extraction
=
{},
postprocessing
=
{},
postprocessing
=
{},
):
):
<<<<<<<
HEAD
"""
"""
Initialise parameters for steps of the pipeline.
Initialise parameters for steps of the pipeline.
...
@@ -79,6 +100,9 @@ class PipelineParameters(ParametersABC):
...
@@ -79,6 +100,9 @@ class PipelineParameters(ParametersABC):
Parameters for post-processing.
Parameters for post-processing.
"""
"""
# Alan: should 19993 be updated?
# Alan: should 19993 be updated?
=======
# Alan: 19993 should be updated?
>>>>>>>
dev
expt_id
=
general
.
get
(
"
expt_id
"
,
19993
)
expt_id
=
general
.
get
(
"
expt_id
"
,
19993
)
if
isinstance
(
expt_id
,
PosixPath
):
if
isinstance
(
expt_id
,
PosixPath
):
expt_id
=
str
(
expt_id
)
expt_id
=
str
(
expt_id
)
...
@@ -87,7 +111,11 @@ class PipelineParameters(ParametersABC):
...
@@ -87,7 +111,11 @@ class PipelineParameters(ParametersABC):
# Alan: an error message rather than a default might be better
# Alan: an error message rather than a default might be better
directory
=
Path
(
general
.
get
(
"
directory
"
,
"
../data
"
))
directory
=
Path
(
general
.
get
(
"
directory
"
,
"
../data
"
))
<<<<<<<
HEAD
# get log files, either locally or via OMERO
# get log files, either locally or via OMERO
=======
# connect to OMERO
>>>>>>>
dev
with
dispatch_dataset
(
with
dispatch_dataset
(
expt_id
,
expt_id
,
**
{
k
:
general
.
get
(
k
)
for
k
in
(
"
host
"
,
"
username
"
,
"
password
"
)},
**
{
k
:
general
.
get
(
k
)
for
k
in
(
"
host
"
,
"
username
"
,
"
password
"
)},
...
...
This diff is collapsed.
Click to expand it.
src/postprocessor/chainer.py
+
1
−
1
View file @
e3d426da
...
@@ -43,7 +43,7 @@ class Chainer(Signal):
...
@@ -43,7 +43,7 @@ class Chainer(Signal):
replace_path
(
denominator
,
alias
+
bgsub
),
**
kwargs
replace_path
(
denominator
,
alias
+
bgsub
),
**
kwargs
)
)
/
self
.
get
(
replace_path
(
numerator
,
alias
+
bgsub
),
**
kwargs
)
/
self
.
get
(
replace_path
(
numerator
,
alias
+
bgsub
),
**
kwargs
)
for
alias
,
(
denominator
,
numerator
)
in
self
.
synonyms
.
items
()
for
alias
,
(
denominator
,
numerator
)
in
self
.
_
synonyms
.
items
()
for
bgsub
in
(
""
,
"
_bgsub
"
)
for
bgsub
in
(
""
,
"
_bgsub
"
)
}
}
...
...
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