File tree Expand file tree Collapse file tree
src/methods_transcript_assignment/pciseq Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,9 +123,11 @@ def eta_update_no_assert(self):
123123
124124# There might be spots at the border of the image, pciseq runs into an error if this is the case
125125transcripts_at_border = transcripts_dataframe ['x' ] > (label_image .shape [1 ]- 0.5 )
126+ transcripts_at_border = transcripts_at_border | (transcripts_dataframe ['y' ] > (label_image .shape [0 ]- 0.5 ))
126127transcripts_dataframe = transcripts_dataframe .loc [~ transcripts_at_border ]
127- transcripts_at_border = transcripts_dataframe ['y' ] > (label_image .shape [0 ]- 0.5 )
128- transcripts_dataframe = transcripts_dataframe .loc [~ transcripts_at_border ]
128+ transcripts_at_border_dask = transcripts .x > (label_image .shape [1 ]- 0.5 )
129+ transcripts_at_border_dask = transcripts_at_border_dask | (transcripts .y > (label_image .shape [0 ]- 0.5 ))
130+ sdata [par ['transcripts_key' ]] = sdata [par ['transcripts_key' ]].loc [~ transcripts_at_border_dask ]
129131
130132# Grab all the pciSeq parameters
131133opts_keys = [#'exclude_genes',
You can’t perform that action at this time.
0 commit comments