Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read.neurons.catmaid could add option for annotation or neuron name query #10

Closed
jefferis opened this issue Apr 22, 2015 · 3 comments
Closed

Comments

@jefferis
Copy link
Collaborator

note that by chance nat::read.neurons has a neuronnames argument

@jefferis
Copy link
Collaborator Author

perhaps anything that expects one or more skids (as first input), could process the input with a function like

catmaid_skeleton_ids<-function(x, several.ok=TRUE) {
  if(is.factor(x)) {
   x=as.character(x)
  }
  if(is.character(x)) {
    # check if these look like skids, convert to int
   skids = as.integer(skids)
    # ... otherwise find skids with a query (by name or annotation?)
    "name:",     "annotation:" 
    skids = df$skid
  } else 
  # check that skids several.ok is matched
}

@jefferis
Copy link
Collaborator Author

could also accept input like c(name='a', annot='b', annot='c')

@jefferis
Copy link
Collaborator Author

closed by 8ba6506 and merged in 08c1a6e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant