- if (shared1->getAbundance(k) != 0) { observed++; }
- else if ((shared1->getAbundance(k) == 0) && (shared2->getAbundance(k) != 0)) { observed++; }
+ if (shared[0]->getAbundance(k) != 0) { observed++; }
+ else if ((shared[0]->getAbundance(k) == 0) && (shared[1]->getAbundance(k) != 0)) { observed++; }