BGI-shenzhen / LDBlockShow

LDBlockShow: a fast and convenient tool for visualizing linkage disequilibrium and haplotype blocks based on VCF files
MIT License
136 stars 40 forks source link

SVG size can not be adjusted, I got a partial SVG #9

Closed huw143 closed 3 years ago

huw143 commented 3 years ago

Hi He,

I found one question that the SVG size could not be adjusted by -ResizeH function, I used the command line in the attachment and got a partial plot (please see the bottom of the plot). Please check the attachment for details, thanks a lot for your continuous helps.

Best regards,

Hu size out

hewm2008 commented 3 years ago

you can add para -adjHeatmap -0.1 to solve your problem.

A you can use the para -adjHeatmap to make the LDheatmap move up and down.
-adjHeatmap : The ratio[-0.250,0.25] to Up[-0.25,0] or Down[0,0.25] the HeatMap in canvas [0] try to use this : perl ShowLDSVG -MoreHelp -0.1 ... you can change the -0.01 -0.05 -0.08 ...

B: the program is designed like this: The ResizeH parameter is to limit the maximum possible height of the canvas. so you height=385 < 4096 , will take the 385 as the final height.

Other infomation: B.1: when the SNP small , The svg file size is small, you can edit it directly (as :Adobe Illustrator ). Enlarge the picture proportionally B.2:Convert it manually by one of the following command :

         # B.2.1 : 
             convert    -resize   4096  xxx.svg xxx.png
         # B.2.2 
               perl    LDBlockShow-*/bin/svg_kit/svg2xxx.pl   xxx.svg     -t png   --height   40.96
hewm2008 commented 3 years ago

@huw143
you can use the para -adjHeatmap to make the LDheatmap move up and down.
-adjHeatmap : The ratio[-0.250,0.25] to Up[-0.25,0] or Down[0,0.25] the HeatMap in canvas [0] try to use this : perl ShowLDSVG -MoreHelp -0.1 ...

huw143 commented 3 years ago

@hewm2008 Thanks a lot for your help, it solved by your helpful suggestions.

Best regards,

Hu