Ejemplo n.º 1
0
 def toProtocolElement(self):
     """
     Returns the GA4GH protocol representation of this ReadGroupSet.
     """
     readGroupSet = protocol.ReadGroupSet()
     readGroupSet.id = self._id
     readGroupSet.readGroups = [
         readGroup.toProtocolElement() for readGroup in self._readGroups]
     readGroupSet.name = None
     readGroupSet.datasetId = None
     return readGroupSet
Ejemplo n.º 2
0
 def toProtocolElement(self):
     """
     Returns the GA4GH protocol representation of this ReadGroupSet.
     """
     readGroupSet = protocol.ReadGroupSet()
     readGroupSet.id = self.getId()
     readGroupSet.readGroups = [
         readGroup.toProtocolElement() for readGroup in self._readGroups
     ]
     readGroupSet.name = self.getLocalId()
     readGroupSet.datasetId = self.getParentContainer().getId()
     return readGroupSet
Ejemplo n.º 3
0
 def toProtocolElement(self):
     """
     Returns the GA4GH protocol representation of this ReadGroupSet.
     """
     readGroupSet = protocol.ReadGroupSet()
     readGroupSet.id = self.getId()
     readGroupSet.read_groups.extend(
         [readGroup.toProtocolElement()
          for readGroup in self.getReadGroups()]
     )
     readGroupSet.name = self.getLocalId()
     readGroupSet.dataset_id = self.getParentContainer().getId()
     readGroupSet.stats.CopyFrom(self.getStats())
     return readGroupSet
Ejemplo n.º 4
0
 def toProtocolElement(self):
     """
     Returns the GA4GH protocol representation of this ReadGroupSet.
     """
     readGroupSet = protocol.ReadGroupSet()
     readGroupSet.id = self.getId()
     readGroupSet.readGroups = [
         readGroup.toProtocolElement()
         for readGroup in self.getReadGroups()]
     readGroupSet.name = self.getLocalId()
     readGroupSet.datasetId = self.getParentContainer().getId()
     stats = protocol.ReadStats()
     stats.alignedReadCount = self.getNumAlignedReads()
     stats.unalignedReadCount = self.getNumUnalignedReads()
     readGroupSet.stats = stats
     return readGroupSet