terraref / brapi

Breeder's API implementation for TERRA-REF
https://terraref.org/brapi/v1/calls
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Implement /programs, /studies, /trials #14

Closed dlebauer closed 3 years ago

dlebauer commented 5 years ago

What breeding programs do we have?

  1. Sorghum Biomass Association Panel
  2. Durum Wheat
  3. Sorghum recombinant inbred lines
robkooper commented 5 years ago

@dlebauer how do these map to BETY?

dlebauer commented 5 years ago

Studies that map to the MIAPPE concept of the same name

create temporary table studies (
select 
  id as studyDbId,
  name as studyName,
  description as studyDescription,
  start_date as startDate,
  end_date as endDate
  design as statisticalDesign.description
  (today < end_date) as active #TRUE/FALSE
 from experiments);

Not sure how to join to locations schemas sitegroups_sites join sites join experiments_sites],

dlebauer commented 5 years ago
wget https://gist.githubusercontent.com/dlebauer/f96c5250b90d2f2d09ce03ccd3dea7ab/raw/4db4f8515c7eaeab7f3c288a0bbcdbd521db15e9/studies_inserts.sql
psql -U bety < studies_inserts.sql    
robkooper commented 5 years ago

studies is implemented, including germplasm and locations

max-zilla commented 5 years ago

implemented trials here: https://github.com/terraref/brapi/pull/33

dlebauer commented 3 years ago

these have all been implemented