From 6828fc467e8347d52ad50b2a3ad840c7c33d9b11 Mon Sep 17 00:00:00 2001 From: Gregory Jefferis Date: Wed, 22 Apr 2015 11:22:00 +0100 Subject: [PATCH] catmaid_get_neuronnames returns names in order of passed skids * closes #6 --- R/catmaid_metadata.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/catmaid_metadata.R b/R/catmaid_metadata.R index 04da503..e9a865d 100644 --- a/R/catmaid_metadata.R +++ b/R/catmaid_metadata.R @@ -19,7 +19,8 @@ catmaid_get_neuronnames<-function(skids, pid=1, ...) { missing_names=setdiff(as.character(skids), names(res)) if(length(missing_names)) res[missing_names]=NA_character_ - res + # ensure that return values are in order that was passed in + res[as.character(skids)] } #' Get list of annotations (including user information) from CATMAID