Permalink
Browse files

Merge in v.1.38.1

  • Loading branch information...
2 parents 71f272f + fc821b8 commit 56f522b45d1450b55a8ec427ac76d50a6129330d @pschloss pschloss committed Jul 21, 2016
Showing with 1,163 additions and 1,016 deletions.
  1. +2 −2 Makefile
  2. +12 −21 Mothur.xcodeproj/project.pbxproj
  3. +43 −0 TestMothur/testtrimoligos.cpp
  4. +38 −0 TestMothur/testtrimoligos.hpp
  5. +2 −2 makefile-internal
  6. +6 −0 source/classifier/classify.cpp
  7. +1 −1 source/commandfactory.cpp
  8. +1 −1 source/commands/aligncommand.cpp
  9. +8 −0 source/commands/chimerauchimecommand.cpp
  10. +21 −2 source/commands/chimerauchimecommand.h
  11. +34 −15 source/commands/chimeravsearchcommand.cpp
  12. +4 −4 source/commands/classifyotucommand.cpp
  13. +41 −10 source/commands/classifyrfsharedcommand.cpp
  14. +2 −2 source/commands/classifyrfsharedcommand.h
  15. +8 −0 source/commands/clustercommand.cpp
  16. +6 −3 source/commands/clustersplitcommand.cpp
  17. +3 −128 source/commands/countseqscommand.cpp
  18. +2 −3 source/commands/countseqscommand.h
  19. +1 −0 source/commands/getmimarkspackagecommand.cpp
  20. +21 −2 source/commands/lefsecommand.cpp
  21. +2 −2 source/commands/lefsecommand.h
  22. +69 −12 source/commands/makecontigscommand.cpp
  23. +1 −0 source/commands/parsefastaqcommand.cpp
  24. +12 −8 source/commands/pcrseqscommand.cpp
  25. +8 −7 source/commands/pcrseqscommand.h
  26. +1 −0 source/commands/renameseqscommand.cpp
  27. +1 −0 source/commands/seqerrorcommand.cpp
  28. +1 −0 source/commands/sracommand.cpp
  29. +2 −2 source/commands/summarytaxcommand.cpp
  30. +8 −2 source/datastructures/alignmentdb.cpp
  31. +6 −1 source/datastructures/designmap.cpp
  32. +18 −8 source/datastructures/groupmap.cpp
  33. +68 −2 source/datastructures/oligos.cpp
  34. +89 −110 source/mothurout.cpp
  35. +2 −1 source/mothurout.h
  36. +0 −59 source/randomforest/abstractrandomforest.cpp
  37. +0 −67 source/randomforest/abstractrandomforest.hpp
  38. +0 −63 source/randomforest/regularizedrandomforest.cpp
  39. +0 −30 source/randomforest/regularizedrandomforest.h
  40. +617 −444 source/trimoligos.cpp
  41. +2 −2 source/trimoligos.h
View
@@ -15,8 +15,8 @@ USEBOOST ?= yes
BOOST_LIBRARY_DIR="\"Enter_your_boost_library_path_here\""
BOOST_INCLUDE_DIR="\"Enter_your_boost_include_path_here\""
MOTHUR_FILES="\"Enter_your_default_path_here\""
-RELEASE_DATE = "\"6/20/2016\""
-VERSION = "\"1.37.6\""
+RELEASE_DATE = "\"7/20/2016\""
+VERSION = "\"1.38.0\""
ifeq ($(strip $(64BIT_VERSION)),yes)
CXXFLAGS += -DBIT_VERSION
@@ -322,12 +322,10 @@
481FB6671AC1B8450076CFF3 /* randomnumber.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77B7186173D4041002163C2 /* randomnumber.cpp */; };
481FB6681AC1B8450076CFF3 /* rarecalc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A512D37EC400DA6239 /* rarecalc.cpp */; };
481FB6691AC1B8520076CFF3 /* abstractdecisiontree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7386C241619E52200651424 /* abstractdecisiontree.cpp */; };
- 481FB66A1AC1B8520076CFF3 /* abstractrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */; };
481FB66B1AC1B8520076CFF3 /* decisiontree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7386C28161A110700651424 /* decisiontree.cpp */; };
481FB66C1AC1B8520076CFF3 /* randomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77E1937161B201E00DB1A2A /* randomforest.cpp */; };
481FB66D1AC1B8520076CFF3 /* rftreenode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A77E193A161B289600DB1A2A /* rftreenode.cpp */; };
481FB66E1AC1B8520076CFF3 /* forest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83F25B0A163B031200ABE73D /* forest.cpp */; };
- 481FB66F1AC1B8520076CFF3 /* regularizedrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */; };
481FB6701AC1B8820076CFF3 /* raredisplay.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A712D37EC400DA6239 /* raredisplay.cpp */; };
481FB6711AC1B8820076CFF3 /* rarefact.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A7E9B7A912D37EC400DA6239 /* rarefact.cpp */; };
481FB6721AC1B8820076CFF3 /* refchimeratest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */; };
@@ -371,11 +369,11 @@
48576EA21D05DBCD00BBC9C0 /* vsearchfileparser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 489B55701BCD7F0100FB7DC8 /* vsearchfileparser.cpp */; };
48576EA51D05E8F600BBC9C0 /* testoptimatrix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48576EA31D05E8F600BBC9C0 /* testoptimatrix.cpp */; };
48576EA81D05F59300BBC9C0 /* distpdataset.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48576EA61D05F59300BBC9C0 /* distpdataset.cpp */; };
+ 4846AD8A1D3810DD00DE9913 /* testtrimoligos.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */; };
48705AC419BE32C50075E977 /* getmimarkspackagecommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABB19BE32C50075E977 /* getmimarkspackagecommand.cpp */; };
48705AC519BE32C50075E977 /* oligos.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABD19BE32C50075E977 /* oligos.cpp */; };
48705AC619BE32C50075E977 /* mergesfffilecommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705ABF19BE32C50075E977 /* mergesfffilecommand.cpp */; };
48705AC719BE32C50075E977 /* sharedrjsd.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC119BE32C50075E977 /* sharedrjsd.cpp */; };
- 48705AC819BE32C50075E977 /* abstractrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */; };
487C5A871AB88B93002AF48A /* mimarksattributescommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 487C5A851AB88B93002AF48A /* mimarksattributescommand.cpp */; };
487D09EC1CB2CEFE007039BF /* averagelinkage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2114A7671C654D7400D3D8D9 /* averagelinkage.cpp */; };
488841611CC515A000C5E972 /* (null) in Sources */ = {isa = PBXBuildFile; };
@@ -410,7 +408,6 @@
48EDB76C1D1320DD00F76E93 /* chimeravsearchcommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48EDB76A1D1320DD00F76E93 /* chimeravsearchcommand.cpp */; };
48F98E4D1A9CFD670005E81B /* completelinkage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 48F98E4C1A9CFD670005E81B /* completelinkage.cpp */; };
7E6BE10A12F710D8007ADDBE /* refchimeratest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */; };
- 834D9D581656D7C400E7FAB9 /* regularizedrandomforest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */; };
835FE03D19F00640005AA754 /* classifysvmsharedcommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B2181FE17AD777B00286E6A /* classifysvmsharedcommand.cpp */; };
835FE03E19F00A4D005AA754 /* svm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7B21820117AD77BD00286E6A /* svm.cpp */; };
83F25B0C163B031200ABE73D /* forest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83F25B0A163B031200ABE73D /* forest.cpp */; };
@@ -815,6 +812,8 @@
4827A4DB1CB3ED2100345170 /* fastqdataset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fastqdataset.h; sourceTree = "<group>"; };
4829D9651B8387D0002EEED4 /* testbiominfocommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = testbiominfocommand.cpp; sourceTree = "<group>"; };
4829D9661B8387D0002EEED4 /* testbiominfocommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = testbiominfocommand.h; sourceTree = "<group>"; };
+ 4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = testtrimoligos.cpp; sourceTree = "<group>"; };
+ 4846AD891D3810DD00DE9913 /* testtrimoligos.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = testtrimoligos.hpp; sourceTree = "<group>"; };
484F21691BA1C5F8001C1B5F /* makefile-internal */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "makefile-internal"; sourceTree = SOURCE_ROOT; };
48576EA31D05E8F600BBC9C0 /* testoptimatrix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = testoptimatrix.cpp; path = testcontainers/testoptimatrix.cpp; sourceTree = "<group>"; };
48576EA41D05E8F600BBC9C0 /* testoptimatrix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = testoptimatrix.h; path = testcontainers/testoptimatrix.h; sourceTree = "<group>"; };
@@ -829,7 +828,6 @@
48705AC019BE32C50075E977 /* mergesfffilecommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mergesfffilecommand.h; path = source/commands/mergesfffilecommand.h; sourceTree = SOURCE_ROOT; };
48705AC119BE32C50075E977 /* sharedrjsd.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = sharedrjsd.cpp; path = source/calculators/sharedrjsd.cpp; sourceTree = SOURCE_ROOT; };
48705AC219BE32C50075E977 /* sharedrjsd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sharedrjsd.h; path = source/calculators/sharedrjsd.h; sourceTree = SOURCE_ROOT; };
- 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = abstractrandomforest.cpp; path = source/randomforest/abstractrandomforest.cpp; sourceTree = SOURCE_ROOT; };
487C5A851AB88B93002AF48A /* mimarksattributescommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = mimarksattributescommand.cpp; path = source/commands/mimarksattributescommand.cpp; sourceTree = SOURCE_ROOT; };
487C5A861AB88B93002AF48A /* mimarksattributescommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mimarksattributescommand.h; path = source/commands/mimarksattributescommand.h; sourceTree = SOURCE_ROOT; };
48844B261AA74AF9006EF2B8 /* compare.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = compare.h; path = source/datastructures/compare.h; sourceTree = SOURCE_ROOT; };
@@ -879,8 +877,6 @@
7E6BE10812F710D8007ADDBE /* refchimeratest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = refchimeratest.h; path = source/refchimeratest.h; sourceTree = "<group>"; };
7E6BE10912F710D8007ADDBE /* refchimeratest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = refchimeratest.cpp; path = source/refchimeratest.cpp; sourceTree = "<group>"; };
7E78911B135F3E8600E725D2 /* eachgapdistignorens.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = eachgapdistignorens.h; path = source/calculators/eachgapdistignorens.h; sourceTree = SOURCE_ROOT; };
- 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = regularizedrandomforest.cpp; path = source/randomforest/regularizedrandomforest.cpp; sourceTree = SOURCE_ROOT; };
- 834D9D571656D7C400E7FAB9 /* regularizedrandomforest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = regularizedrandomforest.h; path = source/randomforest/regularizedrandomforest.h; sourceTree = SOURCE_ROOT; };
83F25B0A163B031200ABE73D /* forest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = forest.cpp; path = source/randomforest/forest.cpp; sourceTree = SOURCE_ROOT; };
83F25B0B163B031200ABE73D /* forest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = forest.h; path = source/randomforest/forest.h; sourceTree = SOURCE_ROOT; };
8DD76FB20486AB0100D96B5E /* mothur */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = mothur; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1750,6 +1746,8 @@
4827A4DB1CB3ED2100345170 /* fastqdataset.h */,
48C1DDC41D25C1BC00B5BA9D /* testopticluster.cpp */,
48C1DDC51D25C1BC00B5BA9D /* testopticluster.h */,
+ 4846AD881D3810DD00DE9913 /* testtrimoligos.cpp */,
+ 4846AD891D3810DD00DE9913 /* testtrimoligos.hpp */,
48D6E9661CA42389008DF76B /* testvsearchfileparser.cpp */,
48D6E9671CA42389008DF76B /* testvsearchfileparser.h */,
481FB5221AC0AA010076CFF3 /* testcontainers */,
@@ -1806,8 +1804,6 @@
children = (
A7386C1B1619CACB00651424 /* abstractdecisiontree.hpp */,
A7386C241619E52200651424 /* abstractdecisiontree.cpp */,
- 48705ABA19BE32C50075E977 /* abstractrandomforest.hpp */,
- 48705AC319BE32C50075E977 /* abstractrandomforest.cpp */,
A7386C1D1619CACB00651424 /* decisiontree.hpp */,
A7386C28161A110700651424 /* decisiontree.cpp */,
A7386C1E1619CACB00651424 /* macros.h */,
@@ -1817,8 +1813,6 @@
A77E193A161B289600DB1A2A /* rftreenode.cpp */,
83F25B0A163B031200ABE73D /* forest.cpp */,
83F25B0B163B031200ABE73D /* forest.h */,
- 834D9D561656D7C400E7FAB9 /* regularizedrandomforest.cpp */,
- 834D9D571656D7C400E7FAB9 /* regularizedrandomforest.h */,
);
name = randomforest;
path = /Users/sarahwestcott/Desktop/mothur;
@@ -2770,6 +2764,7 @@
481FB5E61AC1B77E0076CFF3 /* normalizesharedcommand.cpp in Sources */,
481FB5E71AC1B77E0076CFF3 /* nmdscommand.cpp in Sources */,
481FB52B1AC1B09F0076CFF3 /* setseedcommand.cpp in Sources */,
+ 4846AD8A1D3810DD00DE9913 /* testtrimoligos.cpp in Sources */,
481FB5261AC0ADA00076CFF3 /* sequence.cpp in Sources */,
481FB5C61AC1B74F0076CFF3 /* getrelabundcommand.cpp in Sources */,
481FB6571AC1B8100076CFF3 /* inputdata.cpp in Sources */,
@@ -2790,7 +2785,6 @@
481FB5DD1AC1B77E0076CFF3 /* matrixoutputcommand.cpp in Sources */,
481FB5771AC1B6EA0076CFF3 /* spearman.cpp in Sources */,
481FB6031AC1B7970076CFF3 /* secondarystructurecommand.cpp in Sources */,
- 481FB66F1AC1B8520076CFF3 /* regularizedrandomforest.cpp in Sources */,
481FB5361AC1B5DC0076CFF3 /* getopt_long.cpp in Sources */,
481FB5A41AC1B7300076CFF3 /* clustercommand.cpp in Sources */,
481FB5671AC1B6AD0076CFF3 /* sharedmorisitahorn.cpp in Sources */,
@@ -2836,7 +2830,6 @@
481FB5831AC1B6FF0076CFF3 /* ccode.cpp in Sources */,
481FB5681AC1B6B20076CFF3 /* sharedochiai.cpp in Sources */,
481FB66E1AC1B8520076CFF3 /* forest.cpp in Sources */,
- 481FB66A1AC1B8520076CFF3 /* abstractrandomforest.cpp in Sources */,
481FB56A1AC1B6B80076CFF3 /* sharedsobs.cpp in Sources */,
481FB6671AC1B8450076CFF3 /* randomnumber.cpp in Sources */,
481FB5DB1AC1B75C0076CFF3 /* makelefsecommand.cpp in Sources */,
@@ -3207,7 +3200,6 @@
A7E9B95D12D37EC400DA6239 /* sharedsorclass.cpp in Sources */,
A7E9B95E12D37EC400DA6239 /* sharedsorest.cpp in Sources */,
A7E9B95F12D37EC400DA6239 /* sharedthetan.cpp in Sources */,
- 48705AC819BE32C50075E977 /* abstractrandomforest.cpp in Sources */,
A7E9B96012D37EC400DA6239 /* sharedthetayc.cpp in Sources */,
A7E9B96112D37EC400DA6239 /* sharedutilities.cpp in Sources */,
A7E9B96212D37EC400DA6239 /* shen.cpp in Sources */,
@@ -3324,7 +3316,6 @@
A721AB72161C572A009860A1 /* kmertree.cpp in Sources */,
A721AB77161C573B009860A1 /* taxonomynode.cpp in Sources */,
83F25B0C163B031200ABE73D /* forest.cpp in Sources */,
- 834D9D581656D7C400E7FAB9 /* regularizedrandomforest.cpp in Sources */,
A7496D2E167B531B00CC7D7C /* kruskalwalliscommand.cpp in Sources */,
A79EEF8616971D4A0006DEC1 /* filtersharedcommand.cpp in Sources */,
A74C06E916A9C0A9008390A3 /* primerdesigncommand.cpp in Sources */,
@@ -3372,7 +3363,7 @@
"DYLIB_CURRENT_VERSION[sdk=*]" = "";
GCC_DYNAMIC_NO_PIC = NO;
GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 3;
+ GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.1\\\"\"",
"RELEASE_DATE=\"\\\"04/11/2016\\\"\"",
@@ -3407,7 +3398,7 @@
DEPLOYMENT_LOCATION = YES;
DSTROOT = TARGET_BUILD_DIR;
GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 3;
+ GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.1\\\"\"",
"RELEASE_DATE=\"\\\"04/11/2016\\\"\"",
@@ -3437,11 +3428,11 @@
CLANG_CXX_LIBRARY = "libstdc++";
CLANG_WARN_UNREACHABLE_CODE = YES;
DEPLOYMENT_LOCATION = NO;
- GCC_C_LANGUAGE_STANDARD = "compiler-default";
+ GCC_C_LANGUAGE_STANDARD = c11;
GCC_ENABLE_SSE3_EXTENSIONS = NO;
GCC_ENABLE_SSE41_EXTENSIONS = NO;
GCC_ENABLE_SSE42_EXTENSIONS = NO;
- GCC_OPTIMIZATION_LEVEL = 3;
+ GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"MOTHUR_FILES=\"\\\"/Users/sarahwestcott/desktop/release\\\"\"",
"VERSION=\"\\\"1.36.0\\\"\"",
@@ -3488,10 +3479,10 @@
CLANG_CXX_LIBRARY = "libstdc++";
CLANG_WARN_UNREACHABLE_CODE = YES;
DEPLOYMENT_LOCATION = NO;
- GCC_C_LANGUAGE_STANDARD = "compiler-default";
+ GCC_C_LANGUAGE_STANDARD = c11;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = "";
- GCC_OPTIMIZATION_LEVEL = 3;
+ GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"VERSION=\"\\\"1.37.6\\\"\"",
"RELEASE_DATE=\"\\\"06/20/2016\\\"\"",
@@ -0,0 +1,43 @@
+//
+// testtrimoligos.cpp
+// Mothur
+//
+// Created by Sarah Westcott on 7/14/16.
+// Copyright © 2016 Schloss Lab. All rights reserved.
+//
+
+#include "catch.hpp"
+#include "testtrimoligos.hpp"
+
+/**************************************************************************************************/
+TestTrimOligos::TestTrimOligos() { //setup
+ m = MothurOut::getInstance();
+
+ //set up barcodes, primers, pairedBarcodes and pairedPrimers
+
+ //Set up vector of seqs with barcodes and primers
+
+ //Set up vector of seqs with pairedbarcodes and pairedprimers
+
+}
+/**************************************************************************************************/
+TestTrimOligos::~TestTrimOligos() {
+
+}
+/**************************************************************************************************/
+
+TEST_CASE("Testing TrimOligos Class") {
+ TestTrimOligos testTrim;
+
+
+ //Create trimoligos classes with various constructors
+
+
+ //run all public strip functions
+
+
+ //run private functions
+
+
+}
+/**************************************************************************************************/
@@ -0,0 +1,38 @@
+//
+// testtrimoligos.hpp
+// Mothur
+//
+// Created by Sarah Westcott on 7/14/16.
+// Copyright © 2016 Schloss Lab. All rights reserved.
+//
+
+#ifndef testtrimoligos_hpp
+#define testtrimoligos_hpp
+
+#include "trimoligos.h"
+#include "sequence.hpp"
+
+class TestTrimOligos : public TrimOligos {
+
+
+public:
+
+ TestTrimOligos();
+ ~TestTrimOligos();
+
+ MothurOut* m;
+ vector<Sequence> seqs;
+ vector<Sequence> pairedSeqs;
+
+ map<string, int> barcodes;
+ map<string, int> primers;
+ map<int, oligosPair> pairedPrimers;
+ map<int, oligosPair> pairedBarcodes;
+
+ using TrimOligos::compareDNASeq(string, string);
+ using TrimOligos::countDiffs(string, string);
+
+};
+
+
+#endif /* testtrimoligos_hpp */
View
@@ -1,8 +1,8 @@
64BIT_VERSION ?= yes
USEREADLINE ?= yes
USEBOOST ?= yes
-RELEASE_DATE = "\"5/11/2016\""
-VERSION = "\"1.37.4\""
+RELEASE_DATE = "\"7/20/2016\""
+VERSION = "\"1.38.0\""
# Optimize to level 3:
CXXFLAGS += -O3
@@ -45,6 +45,12 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
ifstream kmerFileTest(kmerDBName.c_str());
if(kmerFileTest){
bool GoodFile = m->checkReleaseVersion(kmerFileTest, m->getVersion());
+ int shortcutTimeStamp = m->getTimeStamp(kmerDBName);
+ int referenceTimeStamp = m->getTimeStamp(tempFile);
+
+ //if the shortcut file is older then the reference file, remake shortcut file
+ if (shortcutTimeStamp < referenceTimeStamp) { GoodFile = false; }
+
if (GoodFile) { needToGenerate = false; }
}
}
@@ -305,7 +305,7 @@ CommandFactory::CommandFactory(){
commands["make.table"] = "make.table";
commands["sff.multiple"] = "sff.multiple";
commands["quit"] = "quit";
- commands["classify.rf"] = "classify.rf";
+ //commands["classify.rf"] = "classify.rf";
commands["classify.svm"] = "classify.svm";
commands["filter.shared"] = "filter.shared";
commands["primer.design"] = "primer.design";
@@ -347,7 +347,7 @@ int AlignCommand::execute(){
//delete accnos file if its blank else report to user
if (m->isBlank(accnosFileName)) { m->mothurRemove(accnosFileName); hasAccnos = false; }
else {
- m->mothurOut("Some of your sequences generated alignments that eliminated too many bases, a list is provided in " + accnosFileName + ".");
+ m->mothurOut("[WARNING]: Some of your sequences generated alignments that eliminated too many bases, a list is provided in " + accnosFileName + ".");
if (!flip) {
m->mothurOut(" If you set the flip parameter to true mothur will try aligning the reverse compliment as well.");
}else{ m->mothurOut(" If the reverse compliment proved to be better it was reported."); }
Oops, something went wrong.

0 comments on commit 56f522b

Please sign in to comment.