コード例 #1
0
ファイル: PhyloXMLIO.py プロジェクト: gitly110/python_exc
 def events(self, elem):
     return PX.Events(
         type=_get_child_text(elem, 'type'),
         duplications=_get_child_text(elem, 'duplications', int),
         speciations=_get_child_text(elem, 'speciations', int),
         losses=_get_child_text(elem, 'losses', int),
         confidence=_get_child_as(elem, 'confidence', self.confidence))
コード例 #2
0
ファイル: PhyloXMLIO.py プロジェクト: zyha/biopython
 def events(self, elem):
     """Create events object."""
     return PX.Events(
         type=_get_child_text(elem, "type"),
         duplications=_get_child_text(elem, "duplications", int),
         speciations=_get_child_text(elem, "speciations", int),
         losses=_get_child_text(elem, "losses", int),
         confidence=_get_child_as(elem, "confidence", self.confidence))