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
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
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
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