質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,25 +2,27 @@
|
|
2
2
|
|
3
3
|
with open("short.sequ.txt") as f:
|
4
4
|
|
5
|
-
|
5
|
+
for line in f:
|
6
6
|
|
7
|
-
|
7
|
+
if line.startswith(">"):
|
8
8
|
|
9
|
-
|
9
|
+
print(line)
|
10
10
|
|
11
|
-
|
11
|
+
seq = ""
|
12
12
|
|
13
|
-
|
13
|
+
else:
|
14
14
|
|
15
|
-
|
15
|
+
seq += "".join(line.split())
|
16
16
|
|
17
|
-
|
17
|
+
count = [len(seq)]
|
18
18
|
|
19
|
-
|
19
|
+
print(count)
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
+
```
|
24
|
+
|
23
|
-
|
25
|
+
short.sequ.txt
|
24
26
|
|
25
27
|
>YP_009518834.1 putative uncharacterized protein YjiT [Escherichia coli str. K-12 substr. MG1655]
|
26
28
|
|