vgteam / sequenceTubeMap

displays multiple genomic sequences in the form of a tube map
MIT License
180 stars 25 forks source link

Add sample name/read group and CIGAR string to read info dialog #294

Closed adamnovak closed 1 year ago

adamnovak commented 1 year ago

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.

[["Name": "ERR3042304234234/2"], ["Sample Name", "Belinda"], ["Score": 100]]

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.