comparison extract_genomic_dna_utils.py @ 14:1a10864abc1f draft

Uploaded
author greg
date Wed, 02 Mar 2016 09:13:24 -0500
parents 32c6057529a4
children 030691e5cc86
comparison
equal deleted inserted replaced
13:fe88f4eeaddc 14:1a10864abc1f
290 return seq_path 290 return seq_path
291 except Exception, e: 291 except Exception, e:
292 stop_err('Error running faToTwoBit. ' + str(e)) 292 stop_err('Error running faToTwoBit. ' + str(e))
293 293
294 294
295 def get_description_field_delimiter(description_field_delimiter):
296 # Convert a word to an appropriate character.
297 if description_field_delimiter == 'underscore':
298 return '_'
299 if description_field_delimiter == 'semicolon':
300 return ';'
301 if description_field_delimiter == 'comma':
302 return ','
303 if description_field_delimiter == 'tilda':
304 return '~'
305 if description_field_delimiter == 'vetical_bar':
306 return '|'
307 # Set the default to underscore.
308 return '_'
309
310
295 def get_lines(feature): 311 def get_lines(feature):
296 # Get feature's line(s). 312 # Get feature's line(s).
297 if isinstance(feature, GFFFeature): 313 if isinstance(feature, GFFFeature):
298 return feature.lines() 314 return feature.lines()
299 else: 315 else: