Skip to content

Commit fe27535

Browse files
committed
Correct filtering
1 parent 5c64bd5 commit fe27535

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/methods_transcript_assignment/pciseq

src/methods_transcript_assignment/pciseq/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ 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
125125
transcripts_at_border = transcripts_dataframe['x'] > (label_image.shape[1]-0.5)
126-
transcripts_dataframe = transcripts_dataframe.loc[transcripts_at_border]
126+
transcripts_dataframe = transcripts_dataframe.loc[~transcripts_at_border]
127127
transcripts_at_border = transcripts_dataframe['y'] > (label_image.shape[0]-0.5)
128-
transcripts_dataframe = transcripts_dataframe.loc[transcripts_at_border]
128+
transcripts_dataframe = transcripts_dataframe.loc[~transcripts_at_border]
129129

130130
# Grab all the pciSeq parameters
131131
opts_keys = [#'exclude_genes',

0 commit comments

Comments
 (0)