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
320d3a51
Commit
320d3a51
authored
10 months ago
by
pswain
Browse files
Options
Downloads
Patches
Plain Diff
change: updated to match new dataloader
parent
eac53e59
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/plot_kymograph.py
+10
-13
10 additions, 13 deletions
examples/plot_kymograph.py
with
10 additions
and
13 deletions
examples/plot_kymograph.py
+
10
−
13
View file @
320d3a51
from
wela.dataloader
import
dataloader
from
wela.plotting
import
kymograph
,
plot_lineage
# from genutils import figs2pdf
import
matplotlib.cm
import
matplotlib.cm
from
wela.figs2pdf
import
figs2pdf
from
wela.dataloader
import
dataloader
,
sort_df
from
wela.plotting
import
kymograph
,
plot_lineage
datasets
=
[
"
Pdr5_3_11_22
"
,
"
Pdr5_flc_10ugml_1676
"
]
datasets
=
[
"
Pdr5_3_11_22
"
,
"
Pdr5_flc_10ugml_1676
"
]
for
dataname
in
datasets
:
for
dataname
in
datasets
:
dl
=
dataloader
(
"
.
"
,
"
/Users/pswain/wip/tsv_data
"
)
dl
=
dataloader
(
"
.
"
,
"
/Users/pswain/wip/tsv_data
/pdr_with_gr/
"
)
dl
.
load
(
dataname
,
use_tsv
=
True
)
dl
.
load
(
dataname
,
use_tsv
=
True
)
df
=
dl
.
get_
sort
ed
_df
(
"
median_GFP
"
)
s
df
=
sort_df
(
dl
.
df
,
"
median_GFP
"
)
title
=
dataname
.
split
(
"
.
"
)[
0
]
title
=
dataname
.
split
(
"
.
"
)[
0
]
kymograph
(
df
,
hue
=
"
buddings
"
,
title
=
title
)
kymograph
(
s
df
,
hue
=
"
buddings
"
,
title
=
title
)
kymograph
(
df
,
hue
=
"
median_GFP
"
,
title
=
title
)
kymograph
(
s
df
,
hue
=
"
median_GFP
"
,
title
=
title
)
kymograph
(
kymograph
(
df
,
s
df
,
hue
=
"
bud_growth_rate
"
,
hue
=
"
bud_growth_rate
"
,
title
=
title
,
title
=
title
,
vmin
=-
50
,
vmin
=-
50
,
vmax
=
50
,
vmax
=
50
,
cmap
=
matplotlib
.
cm
.
Spectral
,
cmap
=
matplotlib
.
cm
.
Spectral
,
)
)
# df.id = df.id.astype("object")
# df.to_csv(dataname + ".tsv", sep="\t", index=False)
# figs2pdf("fluconazole")
if
False
:
if
False
:
figs2pdf
(
"
fluconazole
"
)
plot_lineage
(
dl
.
ids
[
34
],
dl
.
df
)
plot_lineage
(
dl
.
ids
[
34
],
dl
.
df
)
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