def _calc_shared_phylotypes_pairwise(otu_table, i, j):
 shared_phylos = logical_and(otu_table.data(i, 'sample'), otu_table.data(j, 'sample'))
 return shared_phylos.sum()

def _calc_shared_phylotypes_pairwise ( otu_table , i , j ) : shared_phylos = logical_and ( otu_table . data ( i , 'sample' ) , otu_table . data ( j , 'sample' ) ) return shared_phylos . sum ( )
calculate shared otus between two samples in column i and j .