@@ -182,12 +182,13 @@ main_guessprotocol(int argc, const char **argv) {
182182
183183 try {
184184
185- static const vector<double > human_base_comp = {0.2 , 0.3 , 0.3 , 0.2 };
185+ static const vector<double > human_base_comp = {0.295 , 0.205 , 0.205 , 0.295 };
186186 static const vector<double > flat_base_comp = {0.25 , 0.25 , 0.25 , 0.25 };
187187
188188 constexpr auto description = " guess bisulfite protocol for a library" ;
189189
190190 bool verbose;
191+ bool use_human;
191192 string outfile;
192193 size_t reads_to_check = 1000000 ;
193194 size_t name_suffix_len = 0 ;
@@ -205,6 +206,8 @@ main_guessprotocol(int argc, const char **argv) {
205206 " to ignore when matching" , false , name_suffix_len);
206207 opt_parse.add_opt (" bisulfite" , ' b' , " bisulfite conversion rate" ,
207208 false , bisulfite_conversion_rate);
209+ opt_parse.add_opt (" human" , ' H' , " assume human genome" ,
210+ false , use_human);
208211 opt_parse.add_opt (" output" , ' o' , " output file name" , false , outfile);
209212 opt_parse.add_opt (" verbose" , ' v' ,
210213 " report available information during the run" ,
@@ -227,7 +230,9 @@ main_guessprotocol(int argc, const char **argv) {
227230 const vector<string> reads_files (leftover_args);
228231 /* ***************** END COMMAND LINE OPTIONS *****************/
229232
230- auto base_comp = human_base_comp;
233+ auto base_comp = flat_base_comp;
234+ if (use_human) base_comp = human_base_comp;
235+
231236 nucleotide_model t_rich_model (base_comp, bisulfite_conversion_rate, true );
232237 nucleotide_model a_rich_model (base_comp, bisulfite_conversion_rate, false );
233238
0 commit comments