From bbcabfe342245156904193dd53d496f9109dda71 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Thu, 10 Apr 2014 21:53:52 -0400 Subject: [PATCH] r707: change params for pacbio-to-pacbio --- fastmap.c | 22 ++++++++++++++-------- main.c | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/fastmap.c b/fastmap.c index 9bdacb4..dd652af 100644 --- a/fastmap.c +++ b/fastmap.c @@ -147,7 +147,7 @@ int main_mem(int argc, char *argv[]) fprintf(stderr, " -U INT penalty for an unpaired read pair [%d]\n", opt->pen_unpaired); fprintf(stderr, " -x STR read type. Setting -x changes multiple parameters unless overriden [null]\n"); fprintf(stderr, " pacbio: -k17 -W40 -w200 -c1000 -r10 -A2 -B7 -O2 -E1 -L0\n"); - fprintf(stderr, " pbread: -k13 -W30 -w100 -c1000 -r10 -A2 -B5 -O2 -E1 -N20 -FeaD.01\n"); + fprintf(stderr, " pbread: -k13 -W30 -w100 -c1000 -r10 -A1 -B1 -O0 -E1 -N20 -FeaD.01\n"); fprintf(stderr, "\nInput/output options:\n\n"); fprintf(stderr, " -p first query file consists of interleaved paired-end sequences\n"); fprintf(stderr, " -R STR read group header line such as '@RG\\tID:foo\\tSM:bar' [null]\n"); @@ -170,23 +170,29 @@ int main_mem(int argc, char *argv[]) if (mode) { if (strcmp(mode, "pacbio") == 0 || strcmp(mode, "pbref") == 0 || strcmp(mode, "pbread1") == 0 || strcmp(mode, "pbread") == 0) { - if (!opt0.a) opt->a = 2, opt0.a = 1; - update_a(opt, &opt0); - if (!opt0.o_del) opt->o_del = 2; - if (!opt0.e_del) opt->e_del = 1; - if (!opt0.o_ins) opt->o_ins = 2; - if (!opt0.e_ins) opt->e_ins = 1; if (!opt0.max_occ) opt->max_occ = 1000; if (opt0.split_factor == 0.) opt->split_factor = 10.; if (strcmp(mode, "pbread1") == 0 || strcmp(mode, "pbread") == 0) { + if (!opt0.a) opt->a = 1, opt0.a = 1; + update_a(opt, &opt0); + if (!opt0.o_del) opt->o_del = 0; + if (!opt0.e_del) opt->e_del = 1; + if (!opt0.o_ins) opt->o_ins = 0; + if (!opt0.e_ins) opt->e_ins = 1; opt->flag |= MEM_F_ALL | MEM_F_SELF_OVLP | MEM_F_ALN_REG; - if (!opt0.b) opt->b = 5; + if (!opt0.b) opt->b = 1; if (!opt0.w) opt->w = 100; if (!opt0.min_seed_len) opt->min_seed_len = 13; if (!opt0.min_chain_weight) opt->min_chain_weight = 30; if (!opt0.max_chain_extend) opt->max_chain_extend = 20; if (opt0.drop_ratio == 0.) opt->drop_ratio = .01; } else { + if (!opt0.a) opt->a = 2, opt0.a = 1; + update_a(opt, &opt0); + if (!opt0.o_del) opt->o_del = 2; + if (!opt0.e_del) opt->e_del = 1; + if (!opt0.o_ins) opt->o_ins = 2; + if (!opt0.e_ins) opt->e_ins = 1; if (!opt0.b) opt->b = 7; if (!opt0.w) opt->w = 200; if (!opt0.min_seed_len) opt->min_seed_len = 17; diff --git a/main.c b/main.c index 05764d6..2db22e6 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "utils.h" #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.7.8-r705-dirty" +#define PACKAGE_VERSION "0.7.8-r707-dirty" #endif int bwa_fa2pac(int argc, char *argv[]);