We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 796f573 commit 5c64bd5Copy full SHA for 5c64bd5
1 file changed
src/methods_transcript_assignment/pciseq/script.py
@@ -121,6 +121,12 @@ def eta_update_no_assert(self):
121
else:
122
label_image = sdata_segm["segmentation"].to_numpy()
123
124
+# There might be spots at the border of the image, pciseq runs into an error if this is the case
125
+transcripts_at_border = transcripts_dataframe['x'] > (label_image.shape[1]-0.5)
126
+transcripts_dataframe = transcripts_dataframe.loc[transcripts_at_border]
127
+transcripts_at_border = transcripts_dataframe['y'] > (label_image.shape[0]-0.5)
128
129
+
130
# Grab all the pciSeq parameters
131
opts_keys = [#'exclude_genes',
132
'max_iter',
0 commit comments