Skip to content

Commit d2d33f2

Browse files
committed
Fix comments in doctest style docstring
1 parent 13b6c4b commit d2d33f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Bio/SearchIO/BlastIO/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@
177177
flag). Commented BLAST tabular files may be parsed, indexed, or written using
178178
the keyword argument 'comments' set to True:
179179
180-
# blast-tab defaults to parsing uncommented files
180+
>>> # blast-tab defaults to parsing uncommented files
181181
>>> from Bio import SearchIO
182182
>>> uncommented = 'Blast/tab_2226_tblastn_004.txt'
183183
>>> qresult = SearchIO.read(uncommented, 'blast-tab')
184184
>>> qresult
185185
QueryResult(id='gi|11464971:4-101', 5 hits)
186186
187-
# set the keyword argument to parse commented files
187+
>>> # set the keyword argument to parse commented files
188188
>>> commented = 'Blast/tab_2226_tblastn_008.txt'
189189
>>> qresult = SearchIO.read(commented, 'blast-tab', comments=True)
190190
>>> qresult
@@ -200,14 +200,14 @@
200200
query sequence ID. These names may be passed either as a Python list or as a
201201
space-separated strings.
202202
203-
# pass the custom column names as a Python list
203+
>>> # pass the custom column names as a Python list
204204
>>> fname = 'Blast/tab_2226_tblastn_009.txt'
205205
>>> custom_fields = ['qseqid', 'sseqid']
206206
>>> qresult = next(SearchIO.parse(fname, 'blast-tab', fields=custom_fields))
207207
>>> qresult
208208
QueryResult(id='gi|16080617|ref|NP_391444.1|', 3 hits)
209209
210-
# pass the custom column names as a space-separated string
210+
>>> # pass the custom column names as a space-separated string
211211
>>> fname = 'Blast/tab_2226_tblastn_009.txt'
212212
>>> custom_fields = 'qseqid sseqid'
213213
>>> qresult = next(SearchIO.parse(fname, 'blast-tab', fields=custom_fields))

0 commit comments

Comments
 (0)