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
0e5f8bcc
Commit
0e5f8bcc
authored
9 months ago
by
pswain
Browse files
Options
Downloads
Patches
Plain Diff
change: added example scripts for imageviewer
parent
99dd1843
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/run_imageviewer.py
+22
-14
22 additions, 14 deletions
examples/run_imageviewer.py
examples/run_local_imageviewer.py
+24
-0
24 additions, 0 deletions
examples/run_local_imageviewer.py
with
46 additions
and
14 deletions
examples/run_imageviewer.py
+
22
−
14
View file @
0e5f8bcc
from
wela.imageviewer
import
Local
ImageViewer
,
get_files
from
wela.imageviewer
import
ImageViewer
aliby_input
=
"
/Users/pswain/wip/aliby_input/
"
aliby_output
=
"
/Users/pswain/wip/aliby_output/
"
omero_name
=
"
test26643
"
position
=
"
001
"
omero_name
=
"
2104_2024_03_29_Aggregation_to_0pc_glc_sorb_00
"
position
=
"
ch11_Gcd6_001
"
# ADD details
server_info
=
{
"
host
"
:
""
,
"
username
"
:
""
,
"
password
"
:
""
,
}
# for zarr files
liv
=
LocalImageViewer
(
*
get_files
(
aliby_input
,
aliby_output
,
omero_name
,
position
,
)
h5file
=
f
"
{
aliby_output
}{
omero_name
}
/
{
position
}
.h5
"
iv
=
ImageViewer
.
remote
(
h5file
,
server_info
,
2104
)
tpt_end
=
10
# for information only
iv
.
print_traps_with_cells
(
tpt_end
)
# use Napari to view cells
# python -m pip install "napari[all]" --upgrade
iv
.
view
(
trap_ids
=
[
4
,
8
,
13
],
tpt_end
=
tpt_end
,
channels_to_skip
=
[
"
cy5
"
],
no_vertical_tiles
=
1
,
)
liv
.
view
(
trap_id
=
1
,
tps
=
8
)
This diff is collapsed.
Click to expand it.
examples/run_local_imageviewer.py
0 → 100644
+
24
−
0
View file @
0e5f8bcc
from
wela.imageviewer
import
ImageViewer
,
get_files
aliby_input
=
"
/Users/pswain/wip/aliby_input/
"
aliby_output
=
"
/Users/pswain/wip/aliby_output/
"
omero_name
=
"
25681_2022_04_30_flavin_htb2_glucose_10mgpL_01_00
"
position
=
"
htb2mCherry_018
"
# for zarr files
iv
=
ImageViewer
.
local
(
**
get_files
(
aliby_input
,
aliby_output
,
omero_name
,
position
,
)
)
tpt_end
=
14
iv
.
print_traps_with_cells
(
tpt_end
=
tpt_end
)
iv
.
view
(
tpt_end
=
tpt_end
,
trap_ids
=
[
1
,
2
,
3
,
6
,
48
,
49
,
50
,
51
,
52
,
53
,
54
,
55
,
87
,
88
,
92
,
93
],
no_vertical_tiles
=
3
,
)
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