Beispiel #1
0
 def getReadGroup(self, id_):
     """
     Returns the ReadGroup with the specified id if it exists in this
     ReadGroupSet, or raises a ReadGroupNotFoundException otherwise.
     """
     if id_ not in self._readGroupIdMap:
         raise exceptions.ReadGroupNotFoundException(id_)
     return self._readGroupIdMap[id_]
Beispiel #2
0
 def getReadGroupSet(self, id_):
     """
     Returns the ReadGroupSet with the specified name, or raises
     a ReadGroupSetNotFoundException otherwise.
     """
     if id_ not in self._readGroupSetIdMap:
         raise exceptions.ReadGroupNotFoundException(id_)
     return self._readGroupSetIdMap[id_]