python的列表的用法
>>> for record in SeqIO.parse("F:\\python_test\\G5dddp.txt",'fasta'):
t=(record.id).find("*")
if record.id[0:t] not in L:
print ">"+record.id
print record.seq
另外mothur的 system和set.dir的用法
mothur > system(copy F:\python_test\dp.txt F:\Backup\dp.fasta)
已复制 1 个文件。
这里的提示是中文,说明使用的windows是中文版的,这个copy是mothur环境外的命令,属于windows下的命令。
注意:扩展名要带上,而且可以更改扩展名的
mothur > set.dir(input=F:\python_test)
Mothur's directories:
inputDir=F:\python_test\
mothur > unique.seqs(fasta=dP.txt)
107 92
Output File Names:
F:\python_test\dP.unique.txt
F:\python_test\dP.names
t=(record.id).find("*")
if record.id[0:t] not in L:
print ">"+record.id
print record.seq
![]() |
python列表的使用 |
另外mothur的 system和set.dir的用法
mothur > system(copy F:\python_test\dp.txt F:\Backup\dp.fasta)
已复制 1 个文件。
这里的提示是中文,说明使用的windows是中文版的,这个copy是mothur环境外的命令,属于windows下的命令。
注意:扩展名要带上,而且可以更改扩展名的
mothur > set.dir(input=F:\python_test)
Mothur's directories:
inputDir=F:\python_test\
mothur > unique.seqs(fasta=dP.txt)
107 92
Output File Names:
F:\python_test\dP.unique.txt
F:\python_test\dP.names