UofS-Pulse-Binfo / analyzedphenotypes

Tripal/Drupal support for analyzed phenotypic data including data loaders, exporters, trait pages and summaries on germplasm pages.
GNU General Public License v2.0
0 stars 1 forks source link

Child studies field #106

Closed reynoldtan closed 4 years ago

reynoldtan commented 5 years ago

This PR will create a Tripal 3 field that will show a summary of traits with corresponding stocks and experiments a trait was measured, organized in cards/tiles. Each tile is titled with the trait name and elements underneath are the stock, followed by the experiment as one unit of information a trait was used in.

Screen Shot 2019-10-02 at 9 57 40 AM (2)

Features:

  1. Trait links to trait profile page.
  2. Stock name links to stock profile page.
  3. Colour codes to easily compare similar stock names.
  4. Stock group select - will select same traits across all tiles when pointing to a stock.

Metadata

Documentation:

Description

Dependencies

Testing?

  1. Update AP to include this new field.
  2. Add field ideally to a Registered Variety.
  3. Load a germplasm of type #2. This germ must contain an alternative (is_selection_of) germplasm that has phenotypes associated to it.
reynoldtan commented 5 years ago

I tried the child studies in my old AP, no child studies, setup the field as you described and got this result.

Screen Shot 2019-11-06 at 10 44 24 AM (2)

Could you please check if that CDC Glamis has

  1. Has no phenotype associated to it.
  2. Has other related stock where the relationship is is_selection_of (ie. CDC Glamis AGL).
laceysanderson commented 4 years ago

I did confirm the above and was able to replicate the problem on staging. I did a little debugging and determined the results from load() were not being formatted properly in some cases. The latest commit fixes it.

reynoldtan commented 4 years ago

Screen Shot 2019-11-20 at 1 29 47 PM

Hide/Reveal button to show less or more phenotypes.