Skip to content

Integrate metadata (like provenance) #67

Description

@joehagmann

I started a beginner's integration of metadata from a json file for now, and for now present only the provenance as a toggle. This is just to let you know, in case someone started already, or wants to follow up.

I'd suggest following things to do in that order:

  • store metadata in a dict and represent this structure in mobx, so that we can access metadata keyed by PathName
  • include the selected metadata in the tooltips
  • either fix the toggle (gets only refreshed when I hover over links), or:
  • present a datalist of all available metadata and color by any
  • adapt to the #PublicSequenceResource's metadata file (requires likely reading in another format than json, and design of a mobx-state-tree mdel)
  • (sort rows by selected metadata)

image

tiny mock-up metadata file for the B1phi1 dataset (should be placed into public/test_data/run1.B1phi1.i1.seqwish.w100/metadata.json):

[
 {
   "Accession": "1630",
   "Release_Date": "2020-01-13T00:00:00Z",
   "Species": "Severe acute respiratory syndrome-related coronavirus",
   "Length": 29903,
   "Geo_Location": "China",
   "Host": "Homo sapiens",
   "Isolation_Source": "",
   "Collection_Date": "2019-12",
   "GenBank_Title": "Severe acute respiratory syndrome coronavirus 2 isolate Wuhan-Hu-1, complete genome"
 }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions