Project

fishtank

0.0
No commit activity in last 3 years
No release in over 3 years
An experiment to map various attributes of the Phenoscape KB to cartoon figures, using SVG.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
>= 0
~> 10.0
~> 3.0

Runtime

 Project Readme

Fishtank

This library uses the phenoscaperb gem to query the Phenoscape API for basic statistics on a taxon, entity, and quality basis. It then renders the results as an SVG visualization.

viz

Basic use

gem install fishtank
require 'fishtank'

fish = 'VTO_0037519'
lizard = 'VTO_9007513' 
pan = 'VTO_0011989'
homininae = 'VTO_0011988'

# Create a new tank
tank = FishTank::Tank.new

# Make some Taxa
t = FishTank::Taxon::Arm.new(taxon_id: homininae)
f = FishTank::Taxon::Fish.new(taxon_id: fish)
v = FishTank::Taxon::Tetrapod.new(taxon_id: lizard)

# Add the Taxa to the tank
tank.add(t)
tank.add(f)
tank.add(v)

# Render the tank
FishTank::Draw.tank(tank: tank, attributes: FishTank::QUALITIES)

Then in the terminal (file is SVG, .html is convenience)

ruby your_file.rb > index.html
open index.html

About, thanks.

Concieved and implemented at the 2017 Phenoscape KB-DataFest. Special thanks to Wasila Dahdul for her help with the taxon models and Scott Chamberlain for phenoscaperb. In addition to the Phenoscape support logistic support for Yoder came in part from NSF-ABI-1356381.

License

MIT