And then the dialog can take that and draw a pretty table.
To extract the values for things like read group and sample name, I think we can just look at the per-read objects returned from the server. They can have the fields listed in https://github.com/vgteam/libvgio/blob/1bc5ce5fc9b1c2938ad937b29962f1e4220fdb9b/deps/vg.proto#L111-L151 so if we want the read group we would look at read_group which would be next to name and path and mapping_quality. Not all reads will have all of these set; I'm not sure we have any example data in the repo where the read group or sample name fields are set, for example. I can try to generate some if that would be useful.
I think we want to change from sending a string to the dialog to maybe sending like an array of table rows, each an array with a name and a value.
And then the dialog can take that and draw a pretty table.
To extract the values for things like read group and sample name, I think we can just look at the per-read objects returned from the server. They can have the fields listed in https://github.com/vgteam/libvgio/blob/1bc5ce5fc9b1c2938ad937b29962f1e4220fdb9b/deps/vg.proto#L111-L151 so if we want the read group we would look at
read_group
which would be next toname
andpath
andmapping_quality
. Not all reads will have all of these set; I'm not sure we have any example data in the repo where the read group or sample name fields are set, for example. I can try to generate some if that would be useful.