// This file is part of A2Amapper. // Copyright (c) 2005 J. Craig Venter Institute // Author: Brian Walenz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received (LICENSE.txt) a copy of the GNU General Public // License along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #ifndef OVERLAP_ANNOLIST_H #define OVERLAP_ANNOLIST_H #include "overlap.H" // List of the annotation. Used for classifying each piece of the // annotation, e.g., U followed by 1 followed by U means that // somebody really did map something uniquely, where Y followed by 1 // is probably just an extension. // // This only works if assemblyA is the reference! // class annoList { public: char type; uint32 iid1, pos1, len1; // The position on the reference axis uint32 iid2a, pos2a, len2a; // The position on mapping 1 uint32 iid2b, pos2b, len2b; // The position on mapping 2 void add(char type_, uint32 iid1_, uint32 pos1_, uint32 len1_, uint32 match1, atacMatch *m1, uint32 match2, atacMatch *m2) { type = type_; iid1 = iid1_; pos1 = pos1_; len1 = len1_; iid2a = match1; pos2a = 0; len2a = 0; if (m1) { pos2a = m1->pos2; len2a = m1->len2; } iid2b = match2; pos2b = 0; len2b = 0; if (m2) { pos2b = m2->pos2; len2b = m2->len2; } } }; #endif // OVERLAP_ANNOLIST_H