]> git.donarmstrong.com Git - mothur.git/blobdiff - decalc.cpp
paralellized phylo.diversity
[mothur.git] / decalc.cpp
index 2e214bffe969181c9f83061edc69a491610fe8a8..a5a0ec0ed7e35c49440b3ce0ffa0abef91ee951a 100644 (file)
@@ -290,10 +290,12 @@ vector<float> DeCalculator::calcFreq(vector<Sequence*> seqs, string filename) {
        try {
 
                vector<float> prob;
-               string freqfile = getRootName(filename) + "freq";
+               string freqfile = m->getRootName(filename) + "freq";
                ofstream outFreq;
                
-               openOutputFile(freqfile, outFreq);
+               m->openOutputFile(freqfile, outFreq);
+               
+               outFreq << "#" << m->getVersion() << endl;
                
                string length = toString(seqs.size());  //if there are 5000 seqs in the template then set precision to 3
                int precision = length.length() - 1;