Skip to content

Commit

Permalink
Added a fix to cell/trackOptiClist.m that prevents errors in the even…
Browse files Browse the repository at this point in the history
…t that there are no cells in the first frame.
  • Loading branch information
Paul Wiggins committed Aug 15, 2018
1 parent d40f2c5 commit 2c77421
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cell/trackOptiClist.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@

prog = [];
prog0 = [];
prog_ = [];
gen_ = [];
gen0_ = [];


% loop through all the images (*err.mat files)
for i = 1:num_im
data_c = loaderInternal([dirname,contents(i).name]);
Expand Down Expand Up @@ -191,7 +196,8 @@

ind_tmp0 = (ID==0);

if i == 1

if isempty( gen_ )
prog = ID;
gen0 = 0*ID;
gen = 0*ID;
Expand Down Expand Up @@ -246,13 +252,8 @@

IDmax = max(ID);

gen0_ = nan( [1,IDmax] );
gen0_(ID(~ind_tmp0)) = gen0(~ind_tmp0);

gen_ = nan( [1,IDmax] );
gen_(ID(~ind_tmp0)) = gen(~ind_tmp0);

prog_ = nan( [1,IDmax] );
prog_(ID(~ind_tmp0)) = prog(~ind_tmp0);
% done lineage stuff.

Expand Down

4 comments on commit 2c77421

@Fouga
Copy link

@Fouga Fouga commented on 2c77421 Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Paul,
for some reasons clist.data3D has only NaNs after 46th row, whereas clist.data and cell*.mat files contain all the information. I have >3000 cells. Do you know what could be the problem?

@pawiggins
Copy link
Collaborator

@pawiggins pawiggins commented on 2c77421 Aug 23, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pawiggins
Copy link
Collaborator

@pawiggins pawiggins commented on 2c77421 Aug 23, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fouga
Copy link

@Fouga Fouga commented on 2c77421 Aug 24, 2018 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.