higlass / higlass-transcripts

Gene transcripts track for HiGlass
MIT License
6 stars 2 forks source link

SVG/PNG export #3

Closed alexpreynolds closed 3 years ago

alexpreynolds commented 3 years ago

I ran into some cosmetic issues exporting SVG/PNG from a horizontal-transcripts track, where the appearance of the background and label in the SVG output did not match the rendered HiGlass track.

For example, here is a view that shows the transcripts track in the browser (roughly):

epilogos hg19 15 S1 all chr3_69756986-chr3_79492374 (23)

When exported to SVG or PNG, the output would have the following appearance, which is somewhat different from the browser view:

epilogos hg19 15 S1 all chr3_69756986-chr3_79492374-(1g)

I added some code to fix this, as well as some additional track options to give more strand-specific control over the label appearance (e.g., to color forward- and reverse-stranded annotation label text and parent elements differently). Default color options are set so as to mimic to the current track appearance (within the browser). I updated the README to reflect these additions.