code: def subset(self, sel0=None, sel1=None):
          
          return subset_haplotype_array(self, sel0, sel1, cls=type(self), subset=subset)
docs: Make a sub-selection of variants and haplotypes.
  
          Parameters
          ----------
          sel0 : array_like
              Boolean array or array of indices selecting variants.
          sel1 : array_like
              Boolean array or array of indices selecting haplotypes.
  
          Returns
          -------
          out : HaplotypeArray
  
          See Also
          --------
          HaplotypeArray.take, HaplotypeArray.compress