Skip to content

Commit 80e6546

Browse files
Update urls.R
1 parent 81bed71 commit 80e6546

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/urls.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ bancsee <- function(banc_ids = NULL,
131131
nuclei_ids <- nuclei_ids[nuclei_ids!="0"]
132132

133133
# Get BANC IDs
134-
if(!length(banc_ids)){
134+
if(length(banc_ids)){
135135
u1=banc_scene(banc_ids, open=F, layer = "segmentation proofreading")
136136
colourdf1 = data.frame(ids = banc_ids,
137137
col=grDevices::colorRampPalette(c("#54BCD1", "#0000FF", "#8A2BE2"))(length(banc_ids)))
@@ -141,15 +141,15 @@ bancsee <- function(banc_ids = NULL,
141141
banc_ngl_segments(sc1) <- NULL
142142
}
143143

144-
if(!length(fafb_ids)){
144+
if(length(fafb_ids)){
145145
u2=banc_scene(fafb_ids, open=F, layer = "fafb v783 imported")
146146
colourdf2 = data.frame(ids = fafb_ids,
147147
col=grDevices::colorRampPalette(c("#EE4244", "#D72000", "#C23A4B"))(length(fafb_ids)))
148148
sc2<-fafbseg::ngl_add_colours(u2, colourdf2, layer = "fafb v783 imported")
149149
fafbseg::ngl_layers(sc1)$`fafb v783 imported` <- fafbseg::ngl_layers(sc2)$`fafb v783 imported`
150150
}
151151

152-
if(!length(hemibrain_ids)){
152+
if(length(hemibrain_ids)){
153153
u3=banc_scene(hemibrain_ids, open=F, layer = "hemibrain v1.2.1 imported")
154154
colourdf3 = data.frame(ids = hemibrain_ids,
155155
col=grDevices::colorRampPalette(c("#00FF00", "#32CD32", "#006400"))(length(hemibrain_ids)))
@@ -162,15 +162,15 @@ bancsee <- function(banc_ids = NULL,
162162
fafbseg::ngl_layers(sc1)$`hemibrain v1.2.1 imported, mirrored` <- fafbseg::ngl_layers(sc4)$`hemibrain v1.2.1 imported, mirrored`
163163
}
164164

165-
if(!length(manc_ids)){
165+
if(length(manc_ids)){
166166
u5=banc_scene(manc_ids, open=F, layer = "manc v1.2.1 imported")
167167
colourdf5 = data.frame(ids = manc_ids,
168168
col=grDevices::colorRampPalette(c("#FFA07A", "#FF4500", "#FF8C00"))(length(manc_ids)))
169169
sc5<-fafbseg::ngl_add_colours(u5, colourdf5, layer = "manc v1.2.1 imported")
170170
fafbseg::ngl_layers(sc1)$`manc v1.2.1 imported` <- fafbseg::ngl_layers(sc5)$`manc v1.2.1 imported`
171171
}
172172

173-
if(!length(nuclei_ids)){
173+
if(length(nuclei_ids)){
174174
u6=banc_scene(manc_ids, open=F, layer = "nuclei (v1)")
175175
colourdf6 = data.frame(ids = nuclei_ids,
176176
col="#FC6882")

0 commit comments

Comments
 (0)