GithubHelp home page GithubHelp logo

natverse / vfbconnectr Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 1.12 MB

An R Interface to vfb-connect to query virtualflybrain.org

Home Page: http://natverse.org/vfbconnectr/

License: GNU General Public License v3.0

R 100.00%
r natverse drosophila neuroscience

vfbconnectr's Introduction

vfbconnectr

natverse R-CMD-check Docs

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')

The VFB_connect python library has a full documentation site at https://vfb-connect.readthedocs.io/.

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 ...

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.