本文整理匯總了Python中cadnano.strand.Strand.deleteLater方法的典型用法代碼示例。如果您正苦於以下問題:Python Strand.deleteLater方法的具體用法?Python Strand.deleteLater怎麽用?Python Strand.deleteLater使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類cadnano.strand.Strand
的用法示例。
在下文中一共展示了Strand.deleteLater方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: getOverlappingStrands
# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
def getOverlappingStrands(self, idxLow, idxHigh):
dummy_strand = Strand(self, idxLow, idxHigh)
strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
dummy_strand._strandset = None
dummy_strand.setParent(None)
dummy_strand.deleteLater()
dummy_strand = None
return strand_list
示例2: getStrand
# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
def getStrand(self, base_idx):
"""Returns the strand that overlaps with base_idx."""
dummy_strand = Strand(self, base_idx, base_idx)
strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
dummy_strand._strandset = None
dummy_strand.setParent(None)
dummy_strand.deleteLater()
dummy_strand = None
return strand_list[0] if len(strand_list) > 0 else None
示例3: hasStrandAt
# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
def hasStrandAt(self, idxLow, idxHigh):
"""
"""
dummy_strand = Strand(self, idxLow, idxHigh)
strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
dummy_strand._strandset = None
dummy_strand.setParent(None)
dummy_strand.deleteLater()
dummy_strand = None
return len(strand_list) > 0
示例4: hasNoStrandAtOrNoXover
# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
def hasNoStrandAtOrNoXover(self, idx):
dummy_strand = Strand(self, idx, idx)
strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
dummy_strand._strandset = None
dummy_strand.setParent(None)
dummy_strand.deleteLater()
dummy_strand = None
if len(strand_list) > 0:
return False if strand_list[0].hasXoverAt(idx) else True
else:
return True
示例5: getIndexToInsert
# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
def getIndexToInsert(self, idxLow, idxHigh):
"""
"""
can_insert = True
dummy_strand = Strand(self, idxLow, idxHigh)
if self._couldStrandInsertAtLastIndex(dummy_strand):
return can_insert, self._last_strandset_idx
is_in_set, overlap, idx = self._findIndexOfRangeFor(dummy_strand)
dummy_strand._strandset = None
dummy_strand.setParent(None)
dummy_strand.deleteLater()
dummy_strand = None
if overlap:
can_insert = False
return can_insert, idx