jcvi
jcvi copied to clipboard
Cannot change style and font when using jcvi.graphics.synteny
Dear all,
I found no change in my output file after I used the --style
and --font
option:
$ python -m jcvi.graphics.synteny test2.block testn.bed blocks.layout --genelabelsize 6 --font=Arial --style=dark
21:30:04 [base] Load file `testn.bed`
21:30:04 [base] Load file `test2.block`
21:30:04 [base] Load file `blocks.layout`
Column 0: ENSG00000277322 - ENSG00000254585 (chr15:20534262-23647742)
chr15 .. 20 (20) features .. +
Column 1: gene28021 - gene32698 (None:1972516-376270)
None .. 10 (14) features .. -
21:30:05 [base] Figure saved to `test2.pdf` (2400px x 2100px)
The output:
How can I change the style, font, and the color of text?
The input: test2.block
ENSG00000277322 gene28021
ENSG00000230031 gene32698
ENSG00000278522 gene32698
ENSG00000182974 .
ENSG00000279408 .
ENSG00000280709 .
ENSG00000233917 gene32698
ENSG00000274102 .
ENSG00000183706 .
ENSG00000285472 .
ENSG00000277865 gene28021
ENSG00000170113 gene28165
ENSG00000140157 gene28166
ENSG00000273749 gene28167
ENSG00000275835 gene28168
ENSG00000273976 gene28021
ENSG00000261739 gene29342
ENSG00000174450 gene28155
ENSG00000179455 gene28154
ENSG00000254585 gene28153
The testn.bed
chr15 23128792 23136731 ENSG00000273976 0 -
chr15 21651934 21652882 ENSG00000279408 0 +
chr15 23643995 23647742 ENSG00000254585 0 -
chr15 23565782 23567303 ENSG00000179455 0 +
chr15 21408985 21440011 ENSG00000278522 0 -
chr15 22094521 22095469 ENSG00000183706 0 +
chr15 23439747 23447181 ENSG00000174450 0 -
chr15 22996908 23039543 ENSG00000275835 0 -
chr15 21846350 21877246 ENSG00000233917 0 -
chr15 22094521 22095469 ENSG00000285472 0 +
chr15 22459122 22466822 ENSG00000277865 0 +
chr15 20534261 20541709 ENSG00000277322 0 -
chr15 22851731 22866844 ENSG00000140157 0 +
chr15 21638006 21638945 ENSG00000182974 0 +
chr15 21651934 21652882 ENSG00000280709 0 +
chr15 22870030 22947285 ENSG00000273749 0 -
chr15 23354845 23365131 ENSG00000261739 0 +
chr15 22786656 22824236 ENSG00000170113 0 +
chr15 20835393 20866281 ENSG00000230031 0 -
chr15 22080624 22081563 ENSG00000274102 0 +
CM009253.2 1972515 1980189 gene28021 0 -
CM009253.2 6671841 6675618 gene28153 0 +
CM009253.2 6752303 6753824 gene28154 0 -
CM009253.2 6869358 6878278 gene28155 0 +
CM009253.2 7165907 7203907 gene28165 0 +
CM009253.2 7231470 7246602 gene28166 0 +
CM009253.2 7249782 7360321 gene28167 0 -
CM009253.2 7371768 7419175 gene28168 0 -
CM009253.2 80428847 80432170 gene29342 0 -
CM009256.2 345324 376270 gene32698 0 +
The layout:
# x, y, rotation, ha, va, color, ratio, label
0.5, 0.6, 0, left, top, m, 1, Homo_sapiens chr15
0.2, 0.4, 0, left, bottom, #fc8d62, .5, Pan_troglodytes CM009253.2,CM009256.2
# edges
e, 0, 1
I have the same question waiting for a kindly help!
BTW, Merry Xmas Everybody!
@xieduo7 @lifan18
Currently the styles and fonts are not easily customized in such plots.
Since the fonts are plotted via LaTeX, I need to check an alternative way to change the fonts, other than --font
.
Also --style
does not work since it only affects figures with axes.