Changeset 150
- Timestamp:
- 02/18/10 11:54:10 (5 months ago)
- Location:
- current/src
- Files:
-
- 2 modified
-
CMakeLists.txt (modified) (1 diff)
-
ngila.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
current/src/CMakeLists.txt
r134 r150 42 42 SET(PROJ_MACOSX_BUNDLE MACOSX_BUNDLE) 43 43 ENDIF(APPLE_BUNDLE_APP) 44 45 SET(Boost_ADDITIONAL_VERSIONS 1.45 1.44 1.43 1.42 1.41) 44 46 45 47 FIND_PACKAGE(Boost 1.34.0 REQUIRED COMPONENTS program_options) -
current/src/ngila.cpp
r147 r150 24 24 #include <boost/foreach.hpp> 25 25 #include <boost/config.hpp> 26 #include <boost/multi_array.hpp> 26 27 27 28 #include "ngila_app.h" … … 167 168 pair_vec pvec; 168 169 string pairs_keys[] = { string("first"), string("all"), string("each") }; 170 seq_db::size_type table_size = mydb.size(); 169 171 switch(key_switch(arg.pairs, pairs_keys)) 170 172 { 171 173 case 0: 172 174 pvec.push_back(make_pair(0,1)); 175 table_size = 2; 173 176 break; 174 177 case 1: … … 186 189 }; 187 190 188 string format_keys[] = { string("aln"), string("fasta") };191 string format_keys[] = { string("aln"), string("fasta"), string("smat") /*,string("imat")*/ }; 189 192 int out_format = 0; 190 193 if(!arg.output.empty()) { … … 221 224 } 222 225 226 typedef boost::multi_array<float, 2> tabmat; 227 tabmat cost_table(boost::extents[table_size][table_size]); 228 223 229 for(pair_vec::const_iterator cit = pvec.begin(); cit != pvec.end(); ++cit) 224 230 {
