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

Phenotypic Data Importer #100

Closed laceysanderson closed 5 years ago

laceysanderson commented 5 years ago

Metadata

Documentation:

Description

This PR creates a Phenotypic Data Importer which uses the TripalImporter class. This was done to

This PR is being made before the loader is complete to meet a loading deadline. See the following:

Known Issues

  1. Does not support photos
  2. Does not support crop ontology term mapping
  3. When validation errors are encountered in step 3 the theme is altered.

None of these issues impact the loading of core phenotypic data with this importer.

Testing?

PREP: Create a project and organism. See here for more including how to insert germplasm for testing and check database results.

  1. Go to Admin > Tripal > Data Loaders > Phenotypic Data Importer
  2. Upload a file, select an existing project and genus.
  3. Clicking next should execute basic validation (file type, column header).
  4. Run the tripal job for step 2 which should do more extensive checking including germplasm existing ahead of time.
  5. Fill out the trait information on step 3 and submit the job.

Example files in analyzedphenotypes/tests/example_files.

laceysanderson commented 5 years ago

Okay, your problems were twofold:

  1. Because you had the crop ontology set it triggered code I hadn't tested. The most recent commit comments out that code and removes the error you recieved.
  2. The import button showed up when it shouldn't have. This was due to this PR being dependent upon https://github.com/tripal/tripal/pull/955. Please switch to this branch for Tripal
carolyncaron commented 5 years ago

Thanks Lacey!

There are a few issues I ran into that don't necessarily impact the functionality (I think), but addressing them would greatly improve the experience for the user.

laceysanderson commented 5 years ago

The suggestions brought up by @carolyncaron and the known issues mentioned in the description have been moved to issue #101. I also removed the old uploader so as not to cause confusion.