Giter Club home page Giter Club logo

vfbconnectr's Introduction

vfbconnectr

Travis build status natverse

vfbconnectr provides a simple R wrapper (via reticulate) for the VFB_connect Python library that enables programmatic access to the https://virtualflybrain.org website and associated services. VFB_connect is developed by the core VFB team.

Installation

remotes::install_github("natverse/vfbconnectr")

vfbconnectr relies on the reticulate package and a Python installation. To learn more about how reticulate is used within R packages, see this article. We use the automatic configuration method. In theory this should offer to install any necessary python dependencies into a r-reticulate python environment.

Example

This is the R equivalent of the basic examples for the Python library. Essentially convert . to $ and turn ['text'] into list("text") and you should be good to go.

library(vfbconnectr)
## basic example code

vc=VfbConnect()

vc$neo_query_wrapper$get_type_TermInfo(list('FBbt_00003686'))

vc$neo_query_wrapper$get_DataSet_TermInfo(list('Ito2013'))

vc$neo_query_wrapper$get_anatomical_individual_TermInfo(list('VFB_00010001'))
# Get all terms relevant to a brain region (all parts and all overlapping cells$
# Query by label supported by default$
vc$get_terms_by_region('fan-shaped body')

Next steps

  • make a general R helper function to improve formatting of results
  • wrap some functions in R functions to improve formatting of results and avoid any need to worry about whether inputs must be in a list or not.
  • more examples ...

vfbconnectr's People

Contributors

jefferis avatar

Watchers

 avatar  avatar

Forkers

wadcoinbitbase

vfbconnectr's Issues

Reference VFB ids in read.neurons.vfb is more narrow, for types

The docs for read.neurons.vfb say the input can be VFB ids, but I think it's type ids only (FBbt ids or labels). So it does not take instance/object ids (VFB_xxxxxxx).

read.neurons.vfb(x, template = "JRC2018Unisex", ...)

Arguments
x	
VFB ids or a query passed to get_instances

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.