Giter Site home page Giter Site logo

globalbioticinteractions / globalbioticinteractions.github.io Goto Github PK

View Code? Open in Web Editor NEW
7.0 9.0 14.0 72.83 MB

source files for GloBI website

Home Page: https://globalbioticinteractions.org

License: MIT License

HTML 53.72% JavaScript 40.77% CSS 5.25% SCSS 0.27%

globalbioticinteractions.github.io's Introduction

globalbioticinteractions.github.io

Build Status

This project contains live examples of how to use species interaction data from GloBI (see http://github.com/globalbioticinteractions/globalbioticinteractions) in a webpage.

Live examples are available at http://www.globalbioticinteractions.org .

This website is (partly) built using npm, browserify and associated tools.

installing

npm install -g watcherify
npm install -g browserify
npm install -g uglify-js

building

npm install
npm run build

testing

npm test
npm run test-browser

developing

To continuously build the browserified (./static/globi-web-min.js) run:

npm run watch

globalbioticinteractions.github.io's People

Contributors

adeans avatar aho-souke avatar antarmijail avatar coding46 avatar daniel-mietchen avatar emtuckerlab avatar frewsxcv avatar jhpoelen avatar magpiedin avatar mapmeld avatar n8upham avatar qgroom avatar seltmann avatar zedomel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

globalbioticinteractions.github.io's Issues

globi-search tests are failing (and not executing on travis)

Hi @coding46 - I was working on globi-search module and noticed that the TypeSelector test (since renamed to test/addRemoveOptions.js failed due to (what I believe is) a DOM timing issue. Unfortunately, travis is not picking up the tests because it doesn't seem to install globi-search properly in the pre-install phase.

Let me know if you can reproduce the test failures. If so, please fix them.

suggestion for real-time database tracker

It was great to see Jorrit's presentation at UC Berkeley on Thursday. I am writing to follow up on the discussion and to suggest adding a feature that would allow users to see how many contributing databases are active at the moment of data search or download. This could be helpful in situations when major contributing databases are offline or in temporary maintenance. Their temporary absence from the pool of linked sources would result in potentially incomplete information for the user and depending on what the user needs, they may decide to check for a more comprehensive dataset later. Perhaps it could be something very simple like a counter showing the number of active databases relative to the number of total potentially available, possibly with the names of active databases (just for major databases, not individual pieces of information that may also change in time). Thanks again! Iryna

provide more info / context for taxa in interactions browser

as discussed with @jhammock and Michele Weber @mxweber :

Currently, the browser pages contains scientific names of taxa involved in interactions. To further inform users about the nature of the taxon, more information would be helpful.

One way to do this could be to show an info box appears when hovering / clicking on taxon name wherever one appears on the page. The info box would contains a thumbnail, scientific name, common name (if available) and link to EOL taxon page (or other when available).

spatial queries slow on browse page

When selecting a point or area on the map in the browse page, the queries take a long time > 10s to return. It would be nice to make it a little more snappier. Particularly when using higher order taxa like Animalia or Aves. Suspect that some "smarter" pagination might work (on the server side).

add higher taxon order icon to species interaction browser

as discussed with @jhammock and Michele Weber @mxweber:

Currently, scientific names are used to indicate interacting taxa in the interaction browser. To give an indication of the kind of taxa (e.g. birds, insects, mammals), icons are used, similar to what iNaturalist is using (see screenshot taken from http://www.inaturalist.org/taxa/7079-Oxyura-jamaicensis).

@pleary @kueda would it be ok if we recycle / re-use the pretty iconic taxa you use on iNaturalist https://github.com/inaturalist/inaturalist/tree/master/app/assets/images/iconic_taxa ? If so, how can we best attribute iNat for this?

screen shot 2015-02-13 at 11 53 59 am

change result list headers

currently the result list headers look like:

screen shot 2015-08-20 at 2 58 51 pm

@mariestuder suggested to change to something like:

taxon                    interacts with                       taxon
(136 distinct)         (3711 interactions)              (379 distinct)

where the middle column reflects the currently selected interaction type

suggest to include a network diagram ("hairball") visualization in interaction browser

as discussed with @jhammock and Michele Weber @mxweber :

To help provide different views on the complex interaction data in the interaction browser, suggest to include a graph visualization using balls and sticks in addition to the circular interaction plots. The underlying idea is to show the interaction data in three ways: a force-directed network diagram in addition to the existing tabular view (top left), a dependency wheel (bottom right).

An example can be found: http://fieldguides.eol.org/eco/ecovis.php?ecosystem=39#

networkdiagram

taxon selector uses initial spatial selection only

To reproduce:

  1. select a spatial area
  2. click on "show interactions" to update the visualizations
  3. enter a search clause in the taxon selector
  4. change spatial area, click on "show interactions"
  5. enter same search clause in taxon selector

expected result:
the taxon selector results are different, because of the change in spatial selection.

actual result:
taxon selector result is same - appears that the spatial search parameter are not applied to the taxonomic interaction search widget.

on hiding spatial selection, spatial contraints are still applied

Steps to reproduce:

  1. go to browser: http://globalbioticinteractions.org/browse
  2. list human pathogens by select a taxon of interest (e.g. Homo sapiens) an interaction type (e.g. has pathogen)
  3. after the results have rendered, select a spatial area
  4. (currently no pathogen information exist with spatial info) after seeing an empty result set, disable or hide the spatial selector
  5. re-trigger the search

currently:
an empty result re-appears - it seems that the spatial constraints are still applied, even though they are hidding

expected:
non-empty results - on hiding the spatial selector, all interactions should be shown

include link in interaction widget to download interaction data

hard and unclear to discover interaction data on Moorea using browse tool

Today, Neil Davies tried to use the browse tool at http://globalbioticinteractions.org/browse . The process appeared to be slow and it was unclear how to relate the interaction to the data source.

Steps involved were:

  1. Searched for Moorea on map

  2. Found one record on Moorea

  3. Downloaded csv (took >5mins) - attached

  4. Searched for
    EOL:588060 on EOL

  5. found source http://eol.org/data_objects/23998215

  6. searched Discover Life for 588060 and found http://www.discoverlife.org/mp/20l?id=CSCA_TCN00011460

map recenters on California when enabling the area picker on browse page

When showing the area picker in http://globalbioticinteractions.org/browse/ page, I find it hard to locate or change the area picker.

use case:

  1. zoom in on Carribean
  2. select area or interest

expected:
When selecting an area of interest a rectangle is shown within the shown map. The position and size of rectangle can then be changed using touch / mouse events.

actual:
When selecting the "show area picker", the map jumps to California. To select some area in the Carribean, the area needs to be dragged from California to the Carribean (see attached first two images).

suggestion:
A leafletjs.org plugin at https://github.com/heyman/leaflet-areaselect/ uses an approach that always centers the area selector in the middle of the map. To change position, the area selector stays fixed, and the map moves underneath it. For an example (within marker clustering) see http://globalbioticinteractions.org/browse/map (see last images).

screen shot 2015-05-11 at 10 55 57 am
screen shot 2015-05-11 at 10 56 04 am
screen shot 2015-05-11 at 11 04 17 am

add placeholder image for species w/o image

As discussed last week: Not all taxa have images associated to them, and currently this shows up as a broken image link. Suggest to place an empty image (or any html element) or placeholder image whenever image is not available.

screen shot 2015-03-18 at 12 22 03 pm

queries repeated over and over - causing delayed response times

I noticed that the name lookup on http://globalbioticinteractions.org became unresponsive at around 12:50 Pacific time. On closer inspection, I noticed that neo4j instance was overloaded with requests. It turns out that requests are repeated over and over (see attached log).

@coding46 could this be related to recent changes you made to the interaction browser?

snippet from log (note that time stamps are in central European time.

2015-08-23 21:50:10,517 [qtp558638686-557] INFO : [...] SKIP 292864 LIMIT 1024] with params [{}]
2015-08-23 21:50:20,736 [qtp558638686-588] INFO : [...] as interaction_type SKIP 292864 LIMIT 1024] with params [{}]
2015-08-23 21:50:43,484 [qtp558638686-593] INFO : [...] SKIP 292864 LIMIT 1024] with params [{}]
2015-08-23 21:50:52,441 [qtp558638686-602] INFO : [...] SKIP 292864 LIMIT 1024] with params [{}]
2015-08-23 21:51:14,532 [qtp558638686-555] INFO :[...] SKIP 292864 LIMIT 1024] with params [{}]
2015-08-23 21:51:24,677 [qtp558638686-604] INFO : [...] SKIP 293888 LIMIT 1024] with params [{}]
2015-08-23 21:51:29,792 [qtp558638686-600] INFO : [...] SKIP 293888 LIMIT 1024] with params [{}]
2015-08-23 21:51:56,435 [qtp558638686-609] INFO : [...] SKIP 293888 LIMIT 1024] with params [{}]

use stable urls with anchors for browse page

Suggest to use scheme discussed in #16 in the http://globalbioticinteractions.org/browse pages to make it easy to share a specific state of the browser with others. The "#" style url should be updated whenever spatial or taxonomic search parameters change.

Currently, this is also possible using the "share" functionality, however, a "?" is used in the URL, causing the page to reload when used.

Current:
http://www.globalbioticinteractions.org/browse/?&bbox=-125.53344800000002,32.750323,-114.74487299999998,41.574361

Suggest to change to:
http://www.globalbioticinteractions.org/browse/#&bbox=-125.53344800000002,32.750323,-114.74487299999998,41.574361

stable URLs

When I search for an interaction I expect a URL for the results that I can share, maybe something like http://www.globalbioticinteractions.org/#taxon=Patiria+miniata&interaction=preys_on

Problem about filtering specific species in GitHub browse

Hi, Dear editer:

Thanks so much for sharing the powerful globi browse,This is Dupont, I am having a workshop instructed by @jhpoelen at Texas A&M University, Corpus Christi , however I found myself difficult to filter the interaction linked by a single species I am interested in, (King mackerel,Scomberomorus cavalla) at http://www.globalbioticinteractions.org/browse/ in the Gulf of Mexico;

So, I am wondering if you can improve a little bit about the filtering function, Thanks.

Appreciate for your help,
Dupont

globi-search tests not executing on travis

see #31 for related issue.

It seems that globi-search module is not being installed properly on travis for some reason. After several attempts to fix the issue, I decided to write this issue so that we don't forget.

The install files on the preinstall phase:
(see https://travis-ci.org/globalbioticinteractions/globalbioticinteractions.github.io/builds/75522883 ).

> npm cache clean & npm install ./node_modules/globi-*
untar error /home/travis/.npm/globi-search/0.0.2/package.tgz

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.