circos- Session 1 Lesson 3 Changing ideogram scale

scale adjustment is defined in the circos.conf  using the chromosomes_scale parameter.  The syntax of the value for this parameter is :   chromosomes_scale = chr1 = 0,2 , chr2 =2 , chr3 = 10 .  which would display chr1 at 0.2x magnification (5x reduction), chr2 at 2x magnification and chr 3 at 10x magnification, respectively.   

the original circos.conf content:


karyotype = ../data/karyotype.5chr.txt

chromosomes_units           = 1000000
chromosomes_display_default = yes

#chromosomes_scale = chr1=0.5

# ABSOLUTE SCALE
#
# Multiply the apparent size of an ideogram by a fixed factor.
#
##########################################################
#
# chr1 is magnified 0.5x
# chr2 is magnified   2x
# chr2 is magnified  10x
#chromosomes_scale = chr1=0.5,chr2=2,chr3=10

# RELATIVE SCALE
#
# Scale an ideogram to a fraction of the figure.
#
##########################################################
#
# chr1 occupies 50% of figure
#chromosomes_scale = chr1=0.5r

# chr5 occupies 25% of figure
# chr4 occupies 25% of figure
#chromosomes_scale = chr5=0.25r,chr4=0.25r

# NORMALIZED RELATIVE SCALE
#
Type  :quit<Enter>  to exit Vim                                                                                                    8,0-1         Top

figure output: 

 

uncomment chromosomes_scale = chr1 = 0.5


karyotype = ../data/karyotype.5chr.txt

chromosomes_units           = 1000000
chromosomes_display_default = yes

chromosomes_scale = chr1=0.5

# ABSOLUTE SCALE
#
# Multiply the apparent size of an ideogram by a fixed factor.
#
##########################################################
#
# chr1 is magnified 0.5x
# chr2 is magnified   2x
# chr2 is magnified  10x
#chromosomes_scale = chr1=0.5,chr2=2,chr3=10

# RELATIVE SCALE
#
# Scale an ideogram to a fraction of the figure.
#
##########################################################
#
# chr1 occupies 50% of figure
#chromosomes_scale = chr1=0.5r

# chr5 occupies 25% of figure
# chr4 occupies 25% of figure
#chromosomes_scale = chr5=0.25r,chr4=0.25r

# NORMALIZED RELATIVE SCALE
#
"circos.conf" 62L, 1553C                                                                                                           7,1           Top

figure 8  output :

:

 

chr1 0.5x  ,   chr2 2x ,  chr3  10 x

karyotype = ../data/karyotype.5chr.txt

chromosomes_units           = 1000000
chromosomes_display_default = yes

#chromosomes_scale = chr1=0.5

# ABSOLUTE SCALE
#
# Multiply the apparent size of an ideogram by a fixed factor.
#
##########################################################
#
# chr1 is magnified 0.5x
# chr2 is magnified   2x
# chr2 is magnified  10x
chromosomes_scale = chr1=0.5,chr2=2,chr3=10

# RELATIVE SCALE
#
# Scale an ideogram to a fraction of the figure.
#
##########################################################
#
# chr1 occupies 50% of figure
#chromosomes_scale = chr1=0.5r

# chr5 occupies 25% of figure
# chr4 occupies 25% of figure
#chromosomes_scale = chr5=0.25r,chr4=0.25r

# NORMALIZED RELATIVE SCALE
#
# Distributes the size of several ideograms equally
"etc/circos.conf" 62L, 1553C                                                                                                       35,1           3%

figure 9 output

 

chr1  occupies 50% of figure

karyotype = ../data/karyotype.5chr.txt

chromosomes_units           = 1000000
chromosomes_display_default = yes

#chromosomes_scale = chr1=0.5

# ABSOLUTE SCALE
#
# Multiply the apparent size of an ideogram by a fixed factor.
#
##########################################################
#
# chr1 is magnified 0.5x
# chr2 is magnified   2x
# chr2 is magnified  10x
#chromosomes_scale = chr1=0.5,chr2=2,chr3=10

# RELATIVE SCALE
#
# Scale an ideogram to a fraction of the figure.
#
##########################################################
#
# chr1 occupies 50% of figure
chromosomes_scale = chr1=0.5r

# chr5 occupies 25% of figure
# chr4 occupies 25% of figure
#chromosomes_scale = chr5=0.25r,chr4=0.25r

# NORMALIZED RELATIVE SCALE
#
# Distributes the size of several ideograms equally
-- INSERT --                                                                                                                       27,1           3%

figure 10 

 

chr4=0,25r  ,   chr5 = 0.25r   


karyotype = ../data/karyotype.5chr.txt

chromosomes_units           = 1000000
chromosomes_display_default = yes

#chromosomes_scale = chr1=0.5

# ABSOLUTE SCALE
#
# Multiply the apparent size of an ideogram by a fixed factor.
#
##########################################################
#
# chr1 is magnified 0.5x
# chr2 is magnified   2x
# chr2 is magnified  10x
#chromosomes_scale = chr1=0.5,chr2=2,chr3=10

# RELATIVE SCALE
#
# Scale an ideogram to a fraction of the figure.
#
##########################################################
#
# chr1 occupies 50% of figure
#chromosomes_scale = chr1=0.5r

# chr5 occupies 25% of figure
# chr4 occupies 25% of figure
chromosomes_scale = chr5=0.25r,chr4=0.25r

# NORMALIZED RELATIVE SCALE
#
-- INSERT --                                                                                                                       31,1          Top

figure 11

 normalized  relative scale :

# NORMALIZED RELATIVE SCALE
#
# Distributes the size of several ideograms equally
# within a fraction of the image. Use a regular expression
# to specify the ideograms. Ideograms matching RX will
# be divided into fraction X of the figure
#
# /RX/=Xrn
#
# e.g. if RX matches 5 ideograms and X is 0.5, then each
# ideogram will occupy 0.5/5 = 0.1 of the figure.
#
##########################################################
#
# chr1 chr2 chr3 together occupy 50% of figure, and within
# this region they are equally sized
#
# equivalent to chr1=0.0833r,chr2=0.0833r,chr3=0.0833r
chromosomes_scale = /chr[123]/=0.5rn

# all chromosomes equally sized
#chromosomes_scale = /./=1rn

<<include ideogram.conf>>

-- INSERT --                                                                                                                       51,1          82%

:figure 12

chromosomes_scale = /. / = 1rn  equals with chromosomes_scale = /. / = 0.2 r    for we have five chromosomes defined in the karyotype file.  

# NORMALIZED RELATIVE SCALE
#
# Distributes the size of several ideograms equally
# within a fraction of the image. Use a regular expression
# to specify the ideograms. Ideograms matching RX will
# be divided into fraction X of the figure
#
# /RX/=Xrn
#
# e.g. if RX matches 5 ideograms and X is 0.5, then each
# ideogram will occupy 0.5/5 = 0.1 of the figure.
#
##########################################################
#
# chr1 chr2 chr3 together occupy 50% of figure, and within
# this region they are equally sized
#
# equivalent to chr1=0.0833r,chr2=0.0833r,chr3=0.0833r
#chromosomes_scale = /chr[123]/=0.5rn

# all chromosomes equally sized
chromosomes_scale = /./=1rn

<<include ideogram.conf>>

<<include ../etc/ticks.conf>>

<<include ../../etc/image.conf>>
<<include etc/colors_fonts_patterns.conf>>
<<include etc/housekeeping.conf>>

figure 13

test :   chromosomes_scale = /./ = 0.2r  


# NORMALIZED RELATIVE SCALE
#
# Distributes the size of several ideograms equally
# within a fraction of the image. Use a regular expression
# to specify the ideograms. Ideograms matching RX will
# be divided into fraction X of the figure
#
# /RX/=Xrn
#
# e.g. if RX matches 5 ideograms and X is 0.5, then each
# ideogram will occupy 0.5/5 = 0.1 of the figure.
#
##########################################################
#
# chr1 chr2 chr3 together occupy 50% of figure, and within
# this region they are equally sized
#
# equivalent to chr1=0.0833r,chr2=0.0833r,chr3=0.0833r
#chromosomes_scale = /chr[123]/=0.5rn

# all chromosomes equally sized
#chromosomes_scale = /./=1rn
chromosomes_scale = /./ = 0.2r
<<include ideogram.conf>>

<<include ../etc/ticks.conf>>

<<include ../../etc/image.conf>>
<<include etc/colors_fonts_patterns.conf>>
<<include etc/housekeeping.conf>>
                                                                                                                                   50,1          Bot

figure

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
SQLAlchemy 是一个 SQL 工具包和对象关系映射(ORM)库,用于 Python 编程语言。它提供了一个高级的 SQL 工具和对象关系映射工具,允许开发者以 Python 类和对象的形式操作数据库,而无需编写大量的 SQL 语句。SQLAlchemy 建立在 DBAPI 之上,支持多种数据库后端,如 SQLite, MySQL, PostgreSQL 等。 SQLAlchemy 的核心功能: 对象关系映射(ORM): SQLAlchemy 允许开发者使用 Python 类来表示数据库表,使用类的实例表示表中的行。 开发者可以定义类之间的关系(如一对多、多对多),SQLAlchemy 会自动处理这些关系在数据库中的映射。 通过 ORM,开发者可以像操作 Python 对象一样操作数据库,这大大简化了数据库操作的复杂性。 表达式语言: SQLAlchemy 提供了一个丰富的 SQL 表达式语言,允许开发者以 Python 表达式的方式编写复杂的 SQL 查询。 表达式语言提供了对 SQL 语句的灵活控制,同时保持了代码的可读性和可维护性。 数据库引擎和连接池: SQLAlchemy 支持多种数据库后端,并且为每种后端提供了对应的数据库引擎。 它还提供了连接池管理功能,以优化数据库连接的创建、使用和释放。 会话管理: SQLAlchemy 使用会话(Session)来管理对象的持久化状态。 会话提供了一个工作单元(unit of work)和身份映射(identity map)的概念,使得对象的状态管理和查询更加高效。 事件系统: SQLAlchemy 提供了一个事件系统,允许开发者在 ORM 的各个生命周期阶段插入自定义的钩子函数。 这使得开发者可以在对象加载、修改、删除等操作时执行额外的逻辑。
SQLAlchemy 是一个 SQL 工具包和对象关系映射(ORM)库,用于 Python 编程语言。它提供了一个高级的 SQL 工具和对象关系映射工具,允许开发者以 Python 类和对象的形式操作数据库,而无需编写大量的 SQL 语句。SQLAlchemy 建立在 DBAPI 之上,支持多种数据库后端,如 SQLite, MySQL, PostgreSQL 等。 SQLAlchemy 的核心功能: 对象关系映射(ORM): SQLAlchemy 允许开发者使用 Python 类来表示数据库表,使用类的实例表示表中的行。 开发者可以定义类之间的关系(如一对多、多对多),SQLAlchemy 会自动处理这些关系在数据库中的映射。 通过 ORM,开发者可以像操作 Python 对象一样操作数据库,这大大简化了数据库操作的复杂性。 表达式语言: SQLAlchemy 提供了一个丰富的 SQL 表达式语言,允许开发者以 Python 表达式的方式编写复杂的 SQL 查询。 表达式语言提供了对 SQL 语句的灵活控制,同时保持了代码的可读性和可维护性。 数据库引擎和连接池: SQLAlchemy 支持多种数据库后端,并且为每种后端提供了对应的数据库引擎。 它还提供了连接池管理功能,以优化数据库连接的创建、使用和释放。 会话管理: SQLAlchemy 使用会话(Session)来管理对象的持久化状态。 会话提供了一个工作单元(unit of work)和身份映射(identity map)的概念,使得对象的状态管理和查询更加高效。 事件系统: SQLAlchemy 提供了一个事件系统,允许开发者在 ORM 的各个生命周期阶段插入自定义的钩子函数。 这使得开发者可以在对象加载、修改、删除等操作时执行额外的逻辑。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值