Skip to content

Commit fa92de7

Browse files
committed
allow bam2mr to run without specifying output file and fix help info
1 parent 0f85f47 commit fa92de7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bam2mr.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,14 @@ main(int argc, const char **argv) {
229229
try {
230230
string outfile;
231231
string mapper = "general";
232-
size_t MAX_SEGMENT_LENGTH = 5000;
232+
size_t MAX_SEGMENT_LENGTH = 10000;
233233
size_t suffix_len = 0;
234234
bool VERBOSE = false;
235235
size_t MAX_READS_TO_HOLD = 1000000;
236236

237237
/****************** COMMAND LINE OPTIONS ********************/
238238
OptionParser opt_parse(strip_path(argv[0]),
239-
"Convert the SAM/BAM output from "
240-
"mapped read format to sam/bam_file");
239+
"", "bam format mapped read file");
241240
opt_parse.add_opt("output", 'o', "Name of output file",
242241
false, outfile);
243242
opt_parse.add_opt("suff", 's', "read name suffix length (default: 0)",
@@ -251,7 +250,7 @@ main(int argc, const char **argv) {
251250

252251
vector<string> leftover_args;
253252
opt_parse.parse(argc, argv, leftover_args);
254-
if (argc < 3 || opt_parse.help_requested()) {
253+
if (argc < 2 || opt_parse.help_requested()) {
255254
cerr << opt_parse.help_message() << endl
256255
<< opt_parse.about_message() << endl;
257256
return EXIT_SUCCESS;

0 commit comments

Comments
 (0)