GMOD / jbrowse-components

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

Remove all subfeatures from feature details #4396

Open kiprusov opened 3 months ago

kiprusov commented 3 months ago

It would be great if it would be possible to have an option to hide any subfeature level when clicking on the sequence.

It would be great to customize a little bit more the whole popup, eg. adding/removing buttons, removing sliding panels etc.

Screenshot 2024-05-24 at 11 35 56
cmdcolin commented 3 months ago

is the primary request to hide the subfeatures with other requests being kinda secondary?

kiprusov commented 3 months ago

I would say so! Or probably just keep it closed by default.

cmdcolin commented 2 months ago

If you add

"formatDetails": {
        "maxDepth": 0
      },

to your track config, it will hide all the subfeatures

example

{
      "type": "FeatureTrack",
      "trackId": "bigbed_genes",
      "name": "BigBed genes",
      "formatDetails": {
        "maxDepth": 0
      },
      "assemblyNames": ["volvox"],
      "category": ["Miscellaneous"],
      "adapter": {
        "type": "BigBedAdapter",
        "bigBedLocation": {
          "uri": "volvox.bb",
          "locationType": "UriLocation"
        }
      }
    },
cmdcolin commented 2 months ago

hope that helps, i can also consider the collapse by default option also