>>> stdout, stderr = cline()
>>>
>>> print stdout
CLUSTAL 2.1 Multiple Sequence Alignments
Sequence format is Pearson
Sequence 1: CDS 1574 bp
Sequence 2: EST 723 bp
Start of Pairwise alignments
Aligning...
Sequences (1:2) Aligned. Score: 9
Guide tree file created: [opuntia1.dnd]
There are 1 groups
Start of Multiple Alignment
Aligning...
Group 1: Delayed
Alignment Score 490
CLUSTAL-Alignment file created [opuntia1.aln]
>>> print stderr
By default ClustalW will generate an alignment and guide tree file with names based on the input FASTA file, in this case opuntia.aln and opuntia.dnd, but you can override this or make it explicit
您不需要手动转换任何内容,例如,如果您遵循以下代码:
导入
^{pr2}$ClustalwCommandline
后,您可以指定对齐文件的名称,cline
是一个命令,正在下面的行中构造:现在,当您编写下一行时,cline()运行上面构造的命令,并分别将输出和错误消息返回给}变量。如果您打印
stdout
和{stdout
和stderr
,您将发现stdout正在打印与对齐相关的内容,并且由于上面的命令没有错误,stderr
如果打印该命令,stderr
将不显示任何内容。同时,在名为opuntia1.aln
的输出文件中,文件现在包含对齐方式。打开这个aln文件;您应该可以看到对齐方式。在对于.dnd文件,不需要指定输出文件,运行代码后的默认文件将从fasta文件创建一个dnd文件。以下是直接引述:
By default ClustalW will generate an alignment and guide tree file with names based on the input FASTA file, in this case opuntia.aln and opuntia.dnd, but you can override this or make it explicit
来源:http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec89
希望有帮助,干杯!在
相关问题 更多 >
编程相关推荐