Main.cpp

00001 /*
00002  *  Copyright (C) 2010  Regents of the University of Michigan
00003  *
00004  *   This program is free software: you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation, either version 3 of the License, or
00007  *   (at your option) any later version.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License
00015  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #include "ReadFiles.h"
00019 #include "WriteFiles.h"
00020 #include "ValidationTest.h"
00021 #include "BamIndexTest.h"
00022 #include "ModifyVar.h"
00023 #include "Modify.h"
00024 #include "SamFileTest.h"
00025 #include "TestEquals.h"
00026 
00027 int main(int argc, char ** argv)
00028 {
00029     if(argc == 1)
00030     {
00031         testReadSam();
00032         testReadBam();
00033         testReadBam();
00034         testAddHeaderAndTagToFile("testFiles/testSam.sam",
00035                                   "results/addedTagToSam.bam");
00036         testAddHeaderAndTagToFile("testFiles/testSam.sam",
00037                                   "results/addedTagToSam.sam");
00038         testAddHeaderAndTagToFile("testFiles/testBam.bam",
00039                                   "results/addedTagToBam.sam");
00040         testAddHeaderAndTagToFile("testFiles/testBam.bam",
00041                                   "results/addedTagToBam.bam");
00042       
00043         testValidateSortedRead();
00044       
00045       
00046         testWrite();
00047 
00048         testSamQNAME();
00049         testBamRID();
00050         testEmptyQual();
00051       
00052 
00053         testBamIndex();
00054 
00055         testModifyVar();
00056         testModify();
00057 
00058         testSamFile();
00059 
00060         testSeqEquals();
00061     }
00062     else
00063     {
00064         modifyFirstBaseLong();
00065     }
00066 }
00067 
Generated on Thu Dec 9 12:22:12 2010 for StatGen Software by  doxygen 1.6.3