Beispiel #1
0
 def set_meta(self, dataset, overwrite=True, **kwd):
     i = 0
     for i, line in enumerate(file(dataset.file_name)):
         line = line.rstrip('\r\n')
         if line and not line.startswith('#'):
             elems = line.split('\t')
             if len(elems) == 9:
                 try:
                     int(elems[3])
                     int(elems[4])
                     break
                 except:
                     pass
     Interval.set_meta(self, dataset, overwrite=overwrite, skip=i)
 def set_meta( self, dataset, overwrite = True, **kwd ):
     Interval.set_meta( self, dataset, overwrite = overwrite, **kwd )
     return True
Beispiel #3
0
 def __init__(self, **kwd):
     """Initialize datatype, by adding GBrowse display app"""
     Interval.__init__(self, **kwd)
     self.add_display_app('ucsc', 'display at UCSC', 'as_ucsc_display_file',
                          'ucsc_links')
 def __init__(self, **kwd):
     """
     Initialize datatype, by adding GBrowse display app
     """
     Interval.__init__(self, **kwd)
     self.add_display_app ( 'ucsc', 'display at UCSC', 'as_ucsc_display_file', 'ucsc_links' )