摘要: 参考:https://www.rosettacommons.org/demos/latest/tutorials/scoring/scoring 介绍 Rosetta有一个被称为ref2015(默认打分函数)的优化能量函数或打分函数,用于计算由L-氨基酸组成的球状蛋白质中所有原子相互作用的能量。还有 阅读全文
posted @ 2023-03-11 21:01 yayagogogo 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 介绍 open()函数的语法格式: file = open(filename, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None) file: 创建的文件对象 fil 阅读全文
posted @ 2023-02-28 22:49 yayagogogo 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 参考:https://pandas.pydata.org/ Input/output相关函数 pandas.read_excel—将Excel文件读入pandas数据框 支持读取xls, xlsx, xlsm, xlsb, odf, ods和odt文件扩展名,支持单个sheet或sheet列表 语法 阅读全文
posted @ 2023-02-13 22:34 yayagogogo 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 介绍 参考:https://www.rosettacommons.org/docs/latest/rosetta_basics/file_types/resfiles resfile包含输入到PackerTask并控制Packer的信息。简单来说,就是指定了程序运行时对特定氨基酸进行特定设计。 AL 阅读全文
posted @ 2023-02-06 23:02 yayagogogo 阅读(119) 评论(0) 推荐(0) 编辑
摘要: len() len()函数用于返回对象(字符串、元组、列表和字典等)的长度或元素个数 len()函数的语法: len(s) 代码示例 print(len(range(10))) print(len(["1", "2", "3"])) print(len("string")) 输出结果 10 3 6 阅读全文
posted @ 2023-02-05 12:23 yayagogogo 阅读(155) 评论(1) 推荐(0) 编辑
摘要: range()函数 介绍 range()函数实际上表示一个不可变的数字序列类型,通常用于在for循环中指定特定的次数。 range()的格式: range(stop) range(start, stop[, step]) 所有参数必须为整数。 start默认起始值为0。 step步长默认为1。如果设 阅读全文
posted @ 2023-02-05 12:23 yayagogogo 阅读(49) 评论(0) 推荐(0) 编辑
摘要: map()函数 介绍 map()是python的一个内置函数,其作用是返回一个迭代器,该迭代器将function函数应用于可迭代对象的每个项,并产生结果。 map函数的语法: map(function, iterable, *iterables) function:函数 iterable:一个或多个 阅读全文
posted @ 2023-02-02 23:30 yayagogogo 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #if-elif-else alien_color="green" if alien_color == "yellow": #检查是否相等 print("this palyer is 5") elif alien_color == "green": print("this palyer is 10" 阅读全文
posted @ 2023-01-24 23:21 yayagogogo 阅读(17) 评论(0) 推荐(0) 编辑
摘要: os (operating system)是python标准库中的操作系统接口,提供了很多与操作系统进行交互的函数,可快速对目录、文件进行操作。 下面我将在C:\Users\Administrator\try这一路径下执行test.py来详细说明os的常见功能。 C:\Users\Administr 阅读全文
posted @ 2023-01-18 16:25 yayagogogo 阅读(39) 评论(0) 推荐(0) 编辑
摘要: paste函数和paste0()函数 连接字符 > paste("a", 1:3) #默认空格符连接,即sep=" " [1] "a 1" "a 2" "a 3" > paste("a",1:3, sep = "") #a自动与每个元素连接 [1] "a1" "a2" "a3" > paste("a 阅读全文
posted @ 2023-01-17 23:21 yayagogogo 阅读(59) 评论(0) 推荐(0) 编辑