]> git.donarmstrong.com Git - mothur.git/blobdiff - sequence.hpp
adds group parameter to chimera.uchime so you can check for chimeras with template...
[mothur.git] / sequence.hpp
index 95c3e51839029393798dc2f57848d5e325c6c2df..b4337405a811545d4c3b2f64dc8771d42898d1fc 100644 (file)
@@ -25,6 +25,8 @@ public:
        Sequence(string, string);
        Sequence(ifstream&);
        Sequence(istringstream&);
+       Sequence(const Sequence& se) : name(se.name), unaligned(se.unaligned), aligned(se.aligned), pairwise(se.pairwise), numBases(se.numBases), startPos(se.startPos), endPos(se.endPos),
+                                                                       alignmentLength(se.alignmentLength), isAligned(se.isAligned), longHomoPolymer(se.longHomoPolymer), ambigBases(se.ambigBases) { m = MothurOut::getInstance(); }
        
        //these constructors just set the unaligned string to save space
        Sequence(string, string, string);  
@@ -37,17 +39,22 @@ public:
        void setAligned(string);
        void setLength();
        void reverseComplement();
+       void trim(int);
        
        string convert2ints();
        string getName();
        string getAligned();
        string getPairwise();
        string getUnaligned();
+       string getInlineSeq();
        int getNumBases();
        int getStartPos();
        int getEndPos();
+       void padToPos(int);
+       void padFromPos(int);
        int getAlignLength();
        int getAmbigBases();
+       void removeAmbigBases();
        int getLongHomoPolymer();
        bool getIsAligned();
        void printSequence(ostream&);