Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
leverjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
leverjs
Commits
6eaaa77c
Commit
6eaaa77c
authored
Jun 10, 2023
by
ac_fx
Browse files
Options
Downloads
Patches
Plain Diff
gen_ssf_kymo outfolder
parent
81d28400
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/+SSF/gen_SSF_kymo.m
+8
-8
8 additions, 8 deletions
matlab/+SSF/gen_SSF_kymo.m
with
8 additions
and
8 deletions
matlab/+SSF/gen_SSF_kymo.m
+
8
−
8
View file @
6eaaa77c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
% targetChannelNames = {'Erk SSF'; 'Akt SSF' ; 'DHB SSF'; 'H2B SSF'; 'velocity SSF'}; % channel names in the kymo
% targetChannelNames = {'Erk SSF'; 'Akt SSF' ; 'DHB SSF'; 'H2B SSF'; 'velocity SSF'}; % channel names in the kymo
% targetChannelNames = {'Erk SSF'; 'Oct4 SSF' ; 'H2B SSF'; 'velocity SSF'}; % channel names in the kymo
% targetChannelNames = {'Erk SSF'; 'Oct4 SSF' ; 'H2B SSF'; 'velocity SSF'}; % channel names in the kymo
% targetChannelNumbers = [2, 3, -1]; % maps image channel names to kymo channel names
% targetChannelNumbers = [2, 3, -1]; % maps image channel names to kymo channel names
function
gen_SSF_kymo
(
strDB
,
targetChannelNames
,
targetChannelNumbers
,
bDownscale
,
startFrame
)
function
gen_SSF_kymo
(
strDB
,
targetChannelNames
,
targetChannelNumbers
,
outfolder
,
bDownscale
,
startFrame
)
if
~
exist
(
'bDownscale'
,
'var'
)
if
~
exist
(
'bDownscale'
,
'var'
)
bDownscale
=
false
;
bDownscale
=
false
;
...
@@ -22,9 +22,9 @@ else
...
@@ -22,9 +22,9 @@ else
end
end
L
=
length
(
flist
);
L
=
length
(
flist
);
cacheFolder
=
fullfile
(
ROOT
,
'kymoV2'
);
if
~
exist
(
cacheF
older
,
'dir'
)
if
~
exist
(
outf
older
,
'dir'
)
mkdir
(
cacheF
older
);
mkdir
(
outf
older
);
end
end
imd
=
{};
imd
=
{};
...
@@ -33,7 +33,7 @@ p = ljsStartParallel(16);
...
@@ -33,7 +33,7 @@ p = ljsStartParallel(16);
parfor
ff
=
1
:
L
parfor
ff
=
1
:
L
% for ff=1:L
% for ff=1:L
str_ff
=
fullfile
(
flist
(
ff
)
.
folder
,
flist
(
ff
)
.
name
);
str_ff
=
fullfile
(
flist
(
ff
)
.
folder
,
flist
(
ff
)
.
name
);
if
exist
(
fullfile
(
cacheF
older
,[
flist
(
ff
)
.
name
'_ssf_cache.json'
]),
'file'
)
if
exist
(
fullfile
(
outf
older
,[
flist
(
ff
)
.
name
'_ssf_cache.json'
]),
'file'
)
fprintf
(
1
,
'genKymo skipping %s kymo exists\n'
,
str_ff
);
fprintf
(
1
,
'genKymo skipping %s kymo exists\n'
,
str_ff
);
continue
continue
end
end
...
@@ -46,11 +46,11 @@ parfor ff=1:L
...
@@ -46,11 +46,11 @@ parfor ff=1:L
imVolume
=
imVolume
(:,:,
startFrame
:
end
,:);
% trim off first 30 frames
imVolume
=
imVolume
(:,:,
startFrame
:
end
,:);
% trim off first 30 frames
imd
{
ff
}
=
MicroscopeData
.
MakeMetadataFromImage
(
imVolume
);
imd
{
ff
}
=
MicroscopeData
.
MakeMetadataFromImage
(
imVolume
);
imd
{
ff
}
.
DatasetName
=
[
flist
(
ff
)
.
name
'_ssf_cache'
];
imd
{
ff
}
.
DatasetName
=
[
flist
(
ff
)
.
name
'_ssf_cache'
];
imd
{
ff
}
.
imageDir
=
cacheF
older
;
imd
{
ff
}
.
imageDir
=
outf
older
;
imd
{
ff
}
.
ChannelNames
=
targetChannelNames
;
imd
{
ff
}
.
ChannelNames
=
targetChannelNames
;
MicroscopeData
.
WriterH5
(
imVolume
,
'imageData'
,
imd
{
ff
},
'path'
,
cacheF
older
);
MicroscopeData
.
WriterH5
(
imVolume
,
'imageData'
,
imd
{
ff
},
'path'
,
outf
older
);
tElapsed
=
toc
(
t0
);
tElapsed
=
toc
(
t0
);
fprintf
(
1
,
'ssf_volume %d tElapsed=%0.2f\n'
,
ff
,
tElapsed
);
fprintf
(
1
,
'ssf_volume %d tElapsed=%0.2f\n'
,
ff
,
tElapsed
);
end
end
Import
.
leverImport
(
''
,
cacheFolder
);
Import
.
leverImport
(
''
,
outfolder
);
\ No newline at end of file
\ No newline at end of file
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