From ce30004e02fc5eb0c7b2877164322d39beeaa13f Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sun, 30 Mar 2025 16:32:38 -0400 Subject: [PATCH] r1235: allow --splice and --frag at the same time This seems to largely work, though the accuracy is reduced and no pairs are proper. More investigation needed for practical uses. --- main.c | 4 ---- minimap.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/main.c b/main.c index 6a9dabc..02b36bf 100644 --- a/main.c +++ b/main.c @@ -319,10 +319,6 @@ int main(int argc, char *argv[]) if (*s == ',') opt.e2 = strtol(s + 1, &s, 10); } } - if ((opt.flag & MM_F_SPLICE) && (opt.flag & MM_F_FRAG_MODE)) { - fprintf(stderr, "[ERROR]\033[1;31m --splice and --frag should not be specified at the same time.\033[0m\n"); - return 1; - } if (!fnw && !(opt.flag&MM_F_CIGAR)) ipt.flag |= MM_I_NO_SEQ; if (mm_check_opt(&ipt, &opt) < 0) diff --git a/minimap.h b/minimap.h index b735980..64dfe33 100644 --- a/minimap.h +++ b/minimap.h @@ -5,7 +5,7 @@ #include #include -#define MM_VERSION "2.28-r1234-dirty" +#define MM_VERSION "2.28-r1235-dirty" #define MM_F_NO_DIAG (0x001LL) // no exact diagonal hit #define MM_F_NO_DUAL (0x002LL) // skip pairs where query name is lexicographically larger than target name