select_loci_if function

The select_if verb for loci