From 494791d1333bdffdfec49dbc540af32ef6b30474 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 28 Jul 2009 21:07:27 +0000 Subject: [PATCH] Reintroduce -3 options to allow strict match at 3' end git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@230 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- src/ecoprimer.c | 12 ++++++------ src/libecoprimer/aproxpattern.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ecoprimer.c b/src/ecoprimer.c index 45d2227..998a248 100644 --- a/src/ecoprimer.c +++ b/src/ecoprimer.c @@ -566,12 +566,12 @@ int main(int argc, char **argv) sscanf(optarg,"%d",&(options.error_max)); break; -// -// /* ------------------------ */ -// case '3': /* three prime strict match */ -// /* ------------------------ */ -// sscanf(optarg,"%d",&(options.strict_three_prime)); -// break; + + /* ------------------------ */ + case '3': /* three prime strict match */ + /* ------------------------ */ + sscanf(optarg,"%d",&(options.strict_three_prime)); + break; /* -------------------- */ case 'q': /* strict matching quorum */ diff --git a/src/libecoprimer/aproxpattern.c b/src/libecoprimer/aproxpattern.c index 0cf349e..620bc80 100644 --- a/src/libecoprimer/aproxpattern.c +++ b/src/libecoprimer/aproxpattern.c @@ -97,8 +97,8 @@ pprimercount_t lookforAproxPrimer(pecodnadb_t database, uint32_t seqdbsize,uint3 params.circular = options->circular; params.maxerr = options->error_max; -// params.omask = (1 << options->strict_three_prime) -1; - params.omask = 0; + params.omask = (1 << options->strict_three_prime) -1; +// params.omask = 0; params.patlen = options->primer_length; positions.val=NULL;