Giter Site home page Giter Site logo

vizan-client-matlab's Introduction

vizan-client-matlab

A Matlab client for VizAn REST server

Table of Contents

Installation

vizan-client-matlab is available on Linux/macOS and Windows and supports MATLAB R2016b and higher.

You can use MATLAB toolbox file. It is found under Releases.

Or you can install toolbox manually. First, clone repo:

$ git clone https://github.com/lv-csbg/vizan-client-matlab.git
$ matlab -nodesktop -nojvm -r "addpath(genpath('vizan-client-matlab')); exit;"

Or in MATLAB change working directory to git directory and:

addpath(genpath(pwd))

Local Web server

For local server you need to install Docker . On Linux also you should perform post-installation steps . To download the needed docker image enter this command into Terminal:

$ docker pull lvcsbg/tools:vizan-rest-server-slim

And to run local server directly from MATLAB:

% To start server
server = initVizAnLocalServer
% To stop server
delete(server)

Usage

With local server running there is no need to provide url, so :

% To start server
server = initVizAnLocalServer
% When using local server 'url' parameter is not needed
% exampleHttpResponse = visualise('model.json','model_map.svg','fba_result.svg', 'FBA');
% 'model.json' - filename of a model;
% 'model_map.svg' - filename of a map, created based on model, explained in VizAn tutorial;
% 'fba_result.svg' - filename for result visualisation;
% 'FBA' - type of visualisation;
% exampleHttpResponse - returns HTTP response received from server, for info/debug purposes.
res = visualise('iML1515.json','E_coli_source.svg','my_matlab_output_fba.svg', 'FBA');
% To stop server
delete(server)

Development

To install the development version from Github:

git clone https://github.com/lv-csbg/vizan-client-matlab.git
cd vizan-client-matlab

License

vizan-client-matlab is distributed under the terms of GPL v3 License

docker_server module is also distributed under the terms of MIT License

vizan-client-matlab's People

Contributors

rudolfspetrovs avatar agroshvillis avatar

Watchers

James Cloos avatar

vizan-client-matlab's Issues

Cobra model as an argument

Make it possible to give Cobra model object too as an argument for visualisation, not just a JSON file.

error reading 2017 matlab. Sekoju tavām instrukcijām readme failā. ja kaut ko nesaprotu apskaidro mani ...

server = initVizAnLocalServer
Initialising VizAn Local REST Server...
Starting local server...

server =

localServer with properties:

status: 0
cmdout: 'Recreating docker_server_webapp_1 ... ←↵�[1A�[2K←Recreating docker_server_webapp_1 ... �[32mdone�[0m←�[1BRecreating docker_server_webserver_1 ... ←↵�[1A�[2K←Recreating docker_server_webserver_1 ... �[32mdone�[0m←�[1B'

res1 = visualise('model.json','model_map.svg','fba_result.svg', 'FBA');
Error using visualiseInR2016b (line 4)
modelFile was not found.

Error in visualise (line 21)
response = visualiseInR2016b(p.Results.modelFile, p.Results.svgFile, p.Results.outputFile,
p.Results.analysisType, p.Results.url, p.Results.show);

Flux object as an argument

Make it possible to give Cobra Flux results object as an argument for visualisation, not just a JSON file.

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.