code: def parse_star_fusion(infile):
      
      reader = csv.reader(infile, delimiter='\t')
      header = reader.next()
      header = {key: index for index, key in enumerate(header)}
  
      features = ['LeftGene', 'LeftLocalBreakpoint', 'LeftBreakpoint',
                  'RightGene', 'RightLocalBreakpoint', 'RightBreakpoint',
                  'LargeAnchorSupport', 'JunctionReadCount', 'SpanningFragCount']
  
      for line in reader:
          yield Expando(dict((feature, line[header[feature]]) for feature in features))
docs: Parses STAR-Fusion format and returns an Expando object with basic features
  
      :param str infile: path to STAR-Fusion prediction file
      :return: Fusion prediction attributes
      :rtype: bd2k.util.expando.Expando