+ int sharedVal, sharedABCVal, sharedABDVal, sharedACDVal, sharedBCDVal, sharedABVal, sharedACVal, sharedADVal, sharedBCVal, sharedBDVal, sharedCDVal, numSeqsA, numSeqsB, numSeqsC, numSeqsD;
+
+ if (nseqs) {
+ NSeqs* nseqsCalc = new NSeqs();
+ vector<double> sharedData = nseqsCalc->getValues(lookup);
+
+ vector<SharedRAbundVector*> mysubset; mysubset.push_back(lookup[0]); mysubset.push_back(lookup[1]);
+ vector<double> sharedAB = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[0]); mysubset.push_back(lookup[2]);
+ vector<double> sharedAC = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[0]); mysubset.push_back(lookup[3]);
+ vector<double> sharedAD = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[1]); mysubset.push_back(lookup[2]);
+ vector<double> sharedBC = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[1]); mysubset.push_back(lookup[3]);
+ vector<double> sharedBD = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[2]); mysubset.push_back(lookup[3]);
+ vector<double> sharedCD = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[0]); mysubset.push_back(lookup[1]); mysubset.push_back(lookup[2]);
+ vector<double> sharedABC = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[0]); mysubset.push_back(lookup[1]); mysubset.push_back(lookup[3]);
+ vector<double> sharedABD = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[0]); mysubset.push_back(lookup[2]); mysubset.push_back(lookup[3]);
+ vector<double> sharedACD = nseqsCalc->getValues(mysubset);
+
+ mysubset.clear(); mysubset.push_back(lookup[1]); mysubset.push_back(lookup[2]); mysubset.push_back(lookup[3]);
+ vector<double> sharedBCD = nseqsCalc->getValues(mysubset);
+
+ sharedVal = sharedData[0] + sharedData[1] + sharedData[2] + sharedData[3];
+ sharedABCVal = sharedABC[0] + sharedABC[1] + sharedABC[2];
+ sharedABDVal = sharedABD[0] + sharedABD[1] + sharedABD[2];
+ sharedACDVal = sharedACD[0] + sharedACD[1] + sharedACD[2];
+ sharedBCDVal = sharedBCD[0] + sharedBCD[1] + sharedBCD[2];
+ sharedABVal = sharedAB[0] + sharedAB[1];
+ sharedACVal = sharedAC[0] + sharedAC[1];
+ sharedADVal = sharedAD[0] + sharedAD[1];
+ sharedBCVal = sharedBC[0] + sharedBC[1];
+ sharedBDVal = sharedBD[0] + sharedBD[1];
+ sharedCDVal = sharedCD[0] + sharedCD[1];
+ numSeqsA = sabundA->getNumSeqs();
+ numSeqsB = sabundB->getNumSeqs();
+ numSeqsC = sabundC->getNumSeqs();
+ numSeqsD = sabundD->getNumSeqs();
+
+ delete nseqsCalc;
+ }
+