Skip to content
This repository
Browse code

Blank lines before doctests (for consistency and makes epydoc happier…

… IIRC)

Tell TravisCI to skip testing this commit, [ci skip]
  • Loading branch information...
commit 9df479194c4c6e77d1cd4bf6d168782ce46fb483 1 parent d68faa0
Peter Cock authored

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  Bio/SeqUtils/__init__.py
9  Bio/SeqUtils/__init__.py
@@ -231,21 +231,25 @@ def seq3(seq, custom_map={'*': 'Ter'}, undef_code='Xaa'):
231 231
     'Xaa'.
232 232
 
233 233
     e.g.
  234
+
234 235
     >>> from Bio.SeqUtils import seq3
235 236
     >>> seq3("MAIVMGRWKGAR*")
236 237
     'MetAlaIleValMetGlyArgTrpLysGlyAlaArgTer'
237 238
 
238 239
     You can set a custom translation of the codon termination code using the
239 240
     "custom_map" argument, e.g.
  241
+
240 242
     >>> seq3("MAIVMGRWKGAR*", custom_map={"*": "***"})
241 243
     'MetAlaIleValMetGlyArgTrpLysGlyAlaArg***'
242 244
 
243 245
     You can also set a custom translation for non-amino acid characters, such
244 246
     as '-', using the "undef_code" argument, e.g.
  247
+
245 248
     >>> seq3("MAIVMGRWKGA--R*", undef_code='---')
246 249
     'MetAlaIleValMetGlyArgTrpLysGlyAla------ArgTer'
247 250
 
248 251
     If not given, "undef_code" defaults to "Xaa", e.g.
  252
+
249 253
     >>> seq3("MAIVMGRWKGA--R*")
250 254
     'MetAlaIleValMetGlyArgTrpLysGlyAlaXaaXaaArgTer'
251 255
 
@@ -273,26 +277,31 @@ def seq1(seq, custom_map={'Ter': '*'}, undef_code='X'):
273 277
     '-'.
274 278
 
275 279
     e.g.
  280
+
276 281
     >>> from Bio.SeqUtils import seq3
277 282
     >>> seq1("MetAlaIleValMetGlyArgTrpLysGlyAlaArgTer")
278 283
     'MAIVMGRWKGAR*'
279 284
 
280 285
     The input is case insensitive, e.g.
  286
+
281 287
     >>> from Bio.SeqUtils import seq3
282 288
     >>> seq1("METalaIlEValMetGLYArgtRplysGlyAlaARGTer")
283 289
     'MAIVMGRWKGAR*'
284 290
 
285 291
     You can set a custom translation of the codon termination code using the
286 292
     "custom_map" argument, e.g.
  293
+
287 294
     >>> seq1("MetAlaIleValMetGlyArgTrpLysGlyAlaArg***", custom_map={"***": "*"})
288 295
     'MAIVMGRWKGAR*'
289 296
 
290 297
     You can also set a custom translation for non-amino acid characters, such
291 298
     as '-', using the "undef_code" argument, e.g.
  299
+
292 300
     >>> seq1("MetAlaIleValMetGlyArgTrpLysGlyAla------ArgTer", undef_code='?')
293 301
     'MAIVMGRWKGA??R*'
294 302
 
295 303
     If not given, "undef_code" defaults to "X", e.g.
  304
+
296 305
     >>> seq1("MetAlaIleValMetGlyArgTrpLysGlyAla------ArgTer")
297 306
     'MAIVMGRWKGAXXR*'
298 307
 

0 notes on commit 9df4791

Please sign in to comment.
Something went wrong with that request. Please try again.