hewm2008 / NGenomeSyn

Any Way to Show Multi genomic Synteny
MIT License
150 stars 17 forks source link

change angle of font above contigs #5

Open svedwards opened 1 year ago

svedwards commented 1 year ago

Hello -

Great program! I am enjoying using it. Would it be possible to put in an option that allows you to change the angle of the text above each contig? As you can see from the attached example, it is hard to determine the names of the contigs at the top. if I could change the angle to 90 degrees, it would be easy to read them. Thanks for considering this update.

Scott

AI_1603_79174_hap1_core_scaffs_to_AW_REF_ch3_rev4

hewm2008 commented 1 year ago

Yes,This function already had.

We have provided relevant parameters that can be modified this. first available at SetParaFor = GenomeX following : ChrNameShow ChrNameShiftX ChrNameShiftY ChrNameSizeRatio ChrNameColor ChrNameRotate

SetParaFor = Genome1
ChrNameRotate =-90     # angle to 90 degrees
ChrNameShiftY=-10
ChrNameSizeRatio=0.95

Second, in the chr.len file, you can To move different positions for different chr, use the following two parameters:

chr1  1  100000     ChrNameShiftX=10   ChrNameShiftY=-10
chr2  1  150000     ChrNameShiftX=5   ChrNameShiftY=-20
...
webbchen commented 4 months ago

Can the names of features (genes, etc.) supplied in bed or gff files be modified in the same manner? What are the parameters for this?

hewm2008 commented 4 months ago

It seems that this function is not yet available in bed. We will update this function in the next version. I suggest you use ai adobe illustrator software to modify it first. best wishes