def __call__( self, block ):
if not block: return block
if len(block.components) < 2:
return
cpglist = list_cpg( \
string.upper(block.components[0].text), \
string.upper(block.components[1].text) )
self.masked += len( cpglist )
self.total += len( block.components[0].text )
for component in block.components:
component.text = mask_columns( cpglist, component.text, self.mask)
return block
#Mak nonCpG sites
评论列表
文章目录