質問編集履歴

1

追記

2018/12/02 06:18

投稿

22Go
22Go

スコア55

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
- ....for line in f:
5
+ for line in f:
6
6
 
7
- ........if line.startswith(">"):
7
+ if line.startswith(">"):
8
8
 
9
- ...........print(line)
9
+ print(line)
10
10
 
11
- ...........seq = ""
11
+ seq = ""
12
12
 
13
- ........else:
13
+ else:
14
14
 
15
- ...........seq += "".join(line.split())
15
+ seq += "".join(line.split())
16
16
 
17
- ...........count = [len(seq)]
17
+ count = [len(seq)]
18
18
 
19
- ...........print(count)
19
+ print(count)
20
20
 
21
21
  ```
22
22
 
23
+ ```
24
+
23
- ```short.sequ.txt
25
+ short.sequ.txt
24
26
 
25
27
  >YP_009518834.1 putative uncharacterized protein YjiT [Escherichia coli str. K-12 substr. MG1655]
26
28