libStatGen Software  1
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 #include "TestFilter.h"
00027 #include "ShiftIndels.h"
00028 #include "TestPileup.h"
00029 #include "TestPosList.h"
00030 #include "TestCigarHelper.h"
00031 #include "TestSamRecordPool.h"
00032 #include "TestSamCoordOutput.h"
00033 #include "TestSamRecordHelper.h"
00034 
00035 int main(int argc, char ** argv)
00036 {
00037     if(argc == 1)
00038     {
00039         testReadSam();
00040 #ifdef __ZLIB_AVAILABLE__
00041         testReadBam();
00042         testReadBam();
00043 #endif
00044         testAddHeaderAndTagToFile("testFiles/testSam.sam",
00045                                   "results/addedTagToSam.bam");
00046         testAddHeaderAndTagToFile("testFiles/testSam.sam",
00047                                   "results/addedTagToSam.sam");
00048 // Can't read bams without zlib
00049 #ifdef __ZLIB_AVAILABLE__
00050         testAddHeaderAndTagToFile("testFiles/testBam.bam",
00051                                   "results/addedTagToBam.sam");
00052         testAddHeaderAndTagToFile("testFiles/testBam.bam",
00053                                   "results/addedTagToBam.bam");
00054 #endif
00055 
00056         testValidateSortedRead();
00057       
00058         testWrite();
00059 
00060         testSamQNAME();
00061         testBamRID();
00062         testEmptyQual();
00063       
00064 // Can't read bams without zlib
00065 #ifdef __ZLIB_AVAILABLE__
00066         testBamIndex();
00067 #endif
00068 
00069         testModifyVar();
00070         testModify();
00071 
00072         testSamFile();
00073 
00074         testSeqEquals();
00075 
00076         testFilter();
00077 
00078         testShiftIndels();
00079 
00080         testPileup();
00081         
00082         testPosList();
00083 
00084         testCigarHelper();
00085         testSamRecordPool();
00086         testSamCoordOutput();
00087         testSamRecordHelper();
00088     }
00089     else
00090     {
00091         modifyFirstBaseLong();
00092     }
00093 }
00094 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends