@@ -131,7 +131,7 @@ bancsee <- function(banc_ids = NULL,
131
131
nuclei_ids <- nuclei_ids [nuclei_ids != " 0" ]
132
132
133
133
# Get BANC IDs
134
- if (! length(banc_ids )){
134
+ if (length(banc_ids )){
135
135
u1 = banc_scene(banc_ids , open = F , layer = " segmentation proofreading" )
136
136
colourdf1 = data.frame (ids = banc_ids ,
137
137
col = grDevices :: colorRampPalette(c(" #54BCD1" , " #0000FF" , " #8A2BE2" ))(length(banc_ids )))
@@ -141,15 +141,15 @@ bancsee <- function(banc_ids = NULL,
141
141
banc_ngl_segments(sc1 ) <- NULL
142
142
}
143
143
144
- if (! length(fafb_ids )){
144
+ if (length(fafb_ids )){
145
145
u2 = banc_scene(fafb_ids , open = F , layer = " fafb v783 imported" )
146
146
colourdf2 = data.frame (ids = fafb_ids ,
147
147
col = grDevices :: colorRampPalette(c(" #EE4244" , " #D72000" , " #C23A4B" ))(length(fafb_ids )))
148
148
sc2 <- fafbseg :: ngl_add_colours(u2 , colourdf2 , layer = " fafb v783 imported" )
149
149
fafbseg :: ngl_layers(sc1 )$ `fafb v783 imported` <- fafbseg :: ngl_layers(sc2 )$ `fafb v783 imported`
150
150
}
151
151
152
- if (! length(hemibrain_ids )){
152
+ if (length(hemibrain_ids )){
153
153
u3 = banc_scene(hemibrain_ids , open = F , layer = " hemibrain v1.2.1 imported" )
154
154
colourdf3 = data.frame (ids = hemibrain_ids ,
155
155
col = grDevices :: colorRampPalette(c(" #00FF00" , " #32CD32" , " #006400" ))(length(hemibrain_ids )))
@@ -162,15 +162,15 @@ bancsee <- function(banc_ids = NULL,
162
162
fafbseg :: ngl_layers(sc1 )$ `hemibrain v1.2.1 imported, mirrored` <- fafbseg :: ngl_layers(sc4 )$ `hemibrain v1.2.1 imported, mirrored`
163
163
}
164
164
165
- if (! length(manc_ids )){
165
+ if (length(manc_ids )){
166
166
u5 = banc_scene(manc_ids , open = F , layer = " manc v1.2.1 imported" )
167
167
colourdf5 = data.frame (ids = manc_ids ,
168
168
col = grDevices :: colorRampPalette(c(" #FFA07A" , " #FF4500" , " #FF8C00" ))(length(manc_ids )))
169
169
sc5 <- fafbseg :: ngl_add_colours(u5 , colourdf5 , layer = " manc v1.2.1 imported" )
170
170
fafbseg :: ngl_layers(sc1 )$ `manc v1.2.1 imported` <- fafbseg :: ngl_layers(sc5 )$ `manc v1.2.1 imported`
171
171
}
172
172
173
- if (! length(nuclei_ids )){
173
+ if (length(nuclei_ids )){
174
174
u6 = banc_scene(manc_ids , open = F , layer = " nuclei (v1)" )
175
175
colourdf6 = data.frame (ids = nuclei_ids ,
176
176
col = " #FC6882" )
0 commit comments