如何使用生物。地理?

2024-06-08 06:00:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用生物地理根据本教程:

from Bio import Geo
handle = open('GSE40603_combined_L1_L2.txt')
records = Geo.parse(handle)
for record in records:
    print record

但我得到一个错误:

^{pr2}$

这是档案的头像:

0   0   63  NC_000913   0   152 NC_000913   0   152 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL  
0   1   81  NC_000913   0   152 NC_000913   153 599 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= thrL  |CDS(+,190,255) gene= thrL  |gene gene= thrA  |CDS(+,337,2799) gene= thrA  note= bifunctional: aspartokinase I (N-terminal); 
0   2   1   NC_000913   0   152 NC_000913   600 698 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= thrA  |CDS[fcd=-312](+,337,2799) gene= thrA  note= bifunctional: aspartokinase I (N-terminal); 
0   3   1   NC_000913   0   152 NC_000913   699 755 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= thrA  |CDS[fcd=-390](+,337,2799) gene= thrA  note= bifunctional: aspartokinase I (N-terminal); 
0   4   1   NC_000913   0   152 NC_000913   756 757 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= thrA  |CDS[fcd=-419](+,337,2799) gene= thrA  note= bifunctional: aspartokinase I (N-terminal); 
0   2620    1   NC_000913   0   152 NC_000913   352429  352483  |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= prpE  |CDS[fcd=-526](+,351930,353816) gene= prpE  note= putative propionyl-CoA synthetase  
0   18818   1   NC_000913   0   152 NC_000913   2560323 2560384 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |misc_feature note= cryptic prophage Eut/CPZ-55  |gene gene= yffO  |CDS[fcd=-220](+,2560133,2560549) gene= yffO  
0   2617    1   NC_000913   0   152 NC_000913   352326  352375  |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= prpE  |CDS[fcd=-420](+,351930,353816) gene= prpE  note= putative propionyl-CoA synthetase  
0   18817   1   NC_000913   0   152 NC_000913   2560275 2560322 |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |misc_feature note= cryptic prophage Eut/CPZ-55  |gene gene= yffO  |CDS[fcd=-165](+,2560133,2560549) gene= yffO  
0   912 1   NC_000913   0   152 NC_000913   113055  113082  |neigh_up NC_000913-start |neigh_down CDS[fcd=114](+,190,255) gene= thrL    |gene gene= coaE  |CDS[fcd=151](-,112599,113219) gene= coaE  note= putative DNA repair protein 

我做错什么了吗?我如何阅读这些文件?在


Tags: startterminalnotedownneighncupgene
1条回答
网友
1楼 · 发布于 2024-06-08 06:00:44

这个文件是来自GEO的所谓“补充文件”。它是由原始提交者提供的,因此用于读取GEO格式的工具将无法使用它。在

在这种情况下,最好的办法是使用标准的python工具简单地解析下载的文件。在

相关问题 更多 >

    热门问题