From 7c2ec67358a8059684cfdc36dff821a4e3e86026 Mon Sep 17 00:00:00 2001 From: Sri Date: Fri, 14 Feb 2020 18:36:32 +0000 Subject: [PATCH] Updated for fixing duplicate columns in the output of neuprint_find_neurons. --- R/connectivity.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/connectivity.R b/R/connectivity.R index e7a1a1b8..ef98d49a 100644 --- a/R/connectivity.R +++ b/R/connectivity.R @@ -472,6 +472,7 @@ extract_connectivity_df <- function(rois, json){ } a <- unlist(jsonlite::fromJSON(json)) values <- data.frame(row.names = 1) + rois <- unique(rois) #this takes care if both the input and output ROIs are same.. for(roi in rois){ d <- data.frame(0,0) colnames(d) <- paste0(roi,c(".pre",".post"))