Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wela
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
wela
Commits
e768b271
Commit
e768b271
authored
1 year ago
by
pswain
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.ecdf.ed.ac.uk/swain-lab/wela
parents
655a07e5
37641c1d
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
dataloader.py
+2
-4
2 additions, 4 deletions
dataloader.py
plotting.py
+4
-4
4 additions, 4 deletions
plotting.py
with
6 additions
and
8 deletions
dataloader.py
+
2
−
4
View file @
e768b271
...
...
@@ -79,12 +79,10 @@ class dataloader:
"
extraction/cy5/max/median
"
:
"
cy5
"
,
"
extraction/GFP/max/median
"
:
"
median_GFP
"
,
"
extraction/GFP/max/mean
"
:
"
mean_GFP
"
,
"
extraction/GFP/max/max5px
"
:
"
max5px_GFP
"
,
"
extraction/GFP/max/max5px_med
"
:
"
max5px_med_GFP
"
,
"
extraction/GFP/max/max5px_median
"
:
"
max5px_median_GFP
"
,
"
extraction/mCherry/max/median
"
:
"
median_mCherry
"
,
"
extraction/mCherry/max/mean
"
:
"
mean_mCherry
"
,
"
extraction/mCherry/max/max5px
"
:
"
max5px_mCherry
"
,
"
extraction/mCherry/max/max5px_med
"
:
"
max5px_med_mCherry
"
,
"
extraction/mCherry/max/max5px_median
"
:
"
max5px_median_mCherry
"
,
"
extraction/general/None/area
"
:
"
area
"
,
"
extraction/general/None/volume
"
:
"
volume
"
,
"
extraction/Flavin_bgsub/max/mean
"
:
"
flavin
"
,
...
...
This diff is collapsed.
Click to expand it.
plotting.py
+
4
−
4
View file @
e768b271
...
...
@@ -233,9 +233,9 @@ def plot_lineage(
plt
.
grid
()
splt
+=
1
else
:
s
=
df
[
df
.
id
==
idx
][
signal
].
to_numpy
()
m_sig
=
df
[
df
.
id
==
idx
][
signal
].
to_numpy
()
plt
.
subplot
(
nosubplots
,
1
,
splt
)
plt
.
plot
(
t
,
s
)
plt
.
plot
(
t
,
m_sig
)
plt
.
ylabel
(
signal
)
add_shading
(
shade_times
,
shade_colour
)
plt
.
grid
()
...
...
@@ -247,7 +247,7 @@ def plot_lineage(
and
signal
not
in
[
"
volume
"
,
"
growth_rate
"
]
):
for
bpt
in
b_pts
:
plt
.
plot
(
t
[
bpt
],
bud
_sig
[
bpt
],
"
k.
"
)
plt
.
plot
(
t
[
bpt
],
m
_sig
[
bpt
],
"
k.
"
)
plt
.
xlabel
(
"
time (hours)
"
)
# share the x axis
ax_list
=
fig
.
axes
...
...
@@ -259,7 +259,7 @@ def plot_lineage(
def
add_shading
(
shade_times
,
shade_colour
):
"""
Shade vertically between each pair of shade_times.
"""
if
shade_times
is
not
None
:
for
(
tstart
,
tend
)
in
shade_times
:
for
tstart
,
tend
in
shade_times
:
plt
.
axvspan
(
tstart
,
tend
,
facecolor
=
shade_colour
,
alpha
=
0.1
)
...
...
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