本文整理汇总了Python中tile.Tile.from_file方法的典型用法代码示例。如果您正苦于以下问题:Python Tile.from_file方法的具体用法?Python Tile.from_file怎么用?Python Tile.from_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tile.Tile
的用法示例。
在下文中一共展示了Tile.from_file方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from tile import Tile [as 别名]
# 或者: from tile.Tile import from_file [as 别名]
ae_coordinates = [(x, 0) for x in range(17, -1, -1)] + [(x, 2) for x in range(0, 18)]
as_coordinates = [(0, y) for y in range(-17, 1)] + [(2, y) for y in range(0, -18, -1)]
aw_coordinates = [(x, 0) for x in range(-12, 1)] + [(x, 2) for x in range(0, -13, -1)]
c_side = [(1, y) for y in range(13, 1, -1)] + [(x, 1) for x in range(2, 14)]
c_coordinates = rotate_figure(c_side)
shift_coordinates(an_coordinates, 49, 70)
shift_coordinates(ae_coordinates, 70, 49)
shift_coordinates(as_coordinates, 49, 30)
shift_coordinates(aw_coordinates, 30, 49)
shift_coordinates(c_coordinates, 50, 50)
plot = figure(plot_width=800, plot_height=800, x_range=(0,100), y_range=(0,100))
plot.line(x=get_x_coordinates(an_coordinates), y=get_y_coordinates(an_coordinates), line_width = width_lines, color='#00ff00')
plot.line(x=get_x_coordinates(ae_coordinates), y=get_y_coordinates(ae_coordinates), line_width = width_lines, color='#ff00ff')
plot.line(x=get_x_coordinates(as_coordinates), y=get_y_coordinates(as_coordinates), line_width = width_lines, color='#ffcc00')
plot.line(x=get_x_coordinates(aw_coordinates), y=get_y_coordinates(aw_coordinates), line_width = width_lines, color='#262626')
plot.line(x=get_x_coordinates(c_coordinates), y=get_y_coordinates(c_coordinates), line_width = width_lines, color='#cc0000')
tile = Tile.from_file("..\Examples\TileA2.fasta")
plot.text(x=get_x_coordinates(an_coordinates), y=get_y_coordinates(an_coordinates), text=tile.n, text_font_size=font_size)
plot.text(x=get_x_coordinates(ae_coordinates), y=get_y_coordinates(ae_coordinates), text=tile.e, text_font_size=font_size)
plot.text(x=get_x_coordinates(as_coordinates), y=get_y_coordinates(as_coordinates), text=tile.s, text_font_size=font_size)
plot.text(x=get_x_coordinates(aw_coordinates), y=get_y_coordinates(aw_coordinates), text=tile.w, text_font_size=font_size)
output_file("line.html")
show(plot)