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