Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use circos images

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to use circos images". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use circos images.

Image this block is one of circos's built-in block, and its configuration file is etc/image.conf in the software installation directory. The content is

The default configuration of image is determined by two files

Image.generic.conf

Background.white.conf

The content of image.generic.conf file is as follows

Contains the following attributes

Dir

Dir specifies the directory of the generated picture,. Represents the current directory

File

File specifies the name of the generated image. The default is circos.png.

Png

Png specifies the format of the generated picture, and yes represents the generated picture in png format.

Svg

Svg specifies the format of the generated picture, and yes represents the generated picture in svg format.

Radius

Radius specifies the radius of the picture. Because circos is a circular layout, the radius of the circle is used to control the size of the picture. The resulting picture is square with a side length of 2 * radius.

Angle_offset

Angle_offset specifies the offset angle of the starting chromosome. The default starting angle is 0 degrees, corresponding to the 3 o'clock position on the dial, angle_offset =-90. The first chromosome is located at 12 o'clock on the dial.

Auto_alpha_colors

Auto_alpha_colors ghostwriter adds transparency to the color, adding an alpha transparency attribute based on the original RGB color

Auto_alpha_step

Auto_alpha_step specifies the transparency, which ranges from 0 to 100. the default value is 5.

The background.white.conf file has only one line of content

Background = white

Specify the background color of the generated picture, you can see that it is white here, so the background color of the generated picture is white by default.

When using it, we usually only call the configuration file of image built into the system, which is written as follows

At this point, the relevant configuration of image is the default configuration of the system. When we want to change one of the default configurations, such as changing the background color to black, we need to use the * operator. The example is as follows

Add * after the parameter you want to modify, and then reassign the value.

For background, there are two points to note

1. The background color can be set to transparent

It is written as follows

Background = transparent

two。 In addition to the color, the background can also be another picture.

It is written as follows:

Background = background.png

It is required that the format of the background picture must be png, and the size must be exactly the same as the size of the output picture.

Finally, let's look at an example of changing the background color.

Thank you for your reading, the above is the content of "how to use circos images", after the study of this article, I believe you have a deeper understanding of how to use circos images, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report