r467: added : (equal length) and ^ (intron) ops

This commit is contained in:
Heng Li
2017-10-04 21:55:37 -04:00
parent 7d50e646dd
commit 9aba11769c
3 changed files with 19 additions and 8 deletions
+2
View File
@@ -39,6 +39,7 @@ static struct option long_options[] = {
{ "sr", no_argument, 0, 0 },
{ "multi", optional_argument, 0, 0 },
{ "print-2nd", optional_argument, 0, 0 },
{ "cs-no-equal", no_argument, 0, 0 },
{ "help", no_argument, 0, 'h' },
{ "max-intron-len", required_argument, 0, 'G' },
{ "version", no_argument, 0, 'V' },
@@ -129,6 +130,7 @@ int main(int argc, char *argv[])
else if (c == 0 && long_idx ==11) opt.noncan = atoi(optarg); // --cost-non-gt-ag
else if (c == 0 && long_idx ==12) opt.flag |= MM_F_NO_LJOIN; // --no-long-join
else if (c == 0 && long_idx ==13) opt.flag |= MM_F_SR; // --sr
else if (c == 0 && long_idx ==16) opt.flag |= MM_F_CS_NO_EQUAL | MM_F_OUT_CS | MM_F_CIGAR; // --cs-no-equal
else if (c == 0 && long_idx ==14) { // --multi
if (optarg == 0 || strcmp(optarg, "yes") == 0 || strcmp(optarg, "y") == 0)
opt.flag |= MM_F_MULTI_SEG;