GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
199 stars 60 forks source link

Simplified config editing system #3424

Open cmdcolin opened 1 year ago

cmdcolin commented 1 year ago

This is not a fully fleshed out idea, but I think it would be nice to have a simpler way of accessing renderer config slots in the config json

There could possibly be snapshot preprocessors or something to help pass these values along

Example of idea: a "renderer" config slot with a "color" key. This would make it easier for people to change color. More examples would be valuable perhaps, but I think the color example is useful to think about, just making it easier for someone to modify their track color

{
      "type": "VariantTrack",
      "trackId": "variant_colors",
      "name": "variant colors",
      "category": ["VCF"],
      "assemblyNames": ["volvox"],
      "adapter": {
        "type": "VcfTabixAdapter",
        "vcfGzLocation": {
          "uri": "volvox.filtered.vcf.gz"
        },
        "index": {
          "location": {
            "uri": "volvox.filtered.vcf.gz.tbi"
          }
        }
      },
      "renderer": { "color":"purple"}
    }

from pairing with @rbuels

Averstic commented 1 year ago

+1, This would be very useful to have!

cmdcolin commented 1 year ago

@Averstic thanks for adding interest...will try to keep this in mind

carolinebridge commented 1 year ago

As per discussion in meeting:

could do:

...possibly more benefit to simplifying the config we already have with some pre-processing

carolinebridge commented 1 year ago

"auto-zod" for error handling / validating snapshots