delta bug
git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@309 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
11
src/ecopcr.c
11
src/ecopcr.c
@ -262,6 +262,9 @@ void printRepeat(ecoseq_t *seq,
|
||||
amplifia[i]|=32;
|
||||
for (i=1;i<rdelta;i++)
|
||||
amplifia[delta-i]|=32;
|
||||
|
||||
amplifia[delta]=0;
|
||||
|
||||
}
|
||||
|
||||
if (compute_tm)
|
||||
@ -636,9 +639,9 @@ int main(int argc, char **argv)
|
||||
errj =apatseq->hiterr[1]->val[j];
|
||||
length = 0;
|
||||
if (posj > posi)
|
||||
length=posj - posi - o1->patlen; /* - o2->patlen : suppress by <EC> */
|
||||
length=posj - posi - o1->patlen - o2->patlen;
|
||||
if (posj < posi)
|
||||
length= posj + apatseq->seqlen - posi - o1->patlen;
|
||||
length= posj + apatseq->seqlen - posi - o1->patlen - o2->patlen;
|
||||
if (length &&
|
||||
(!lmin || (length >= lmin)) &&
|
||||
(!lmax || (length <= lmax)))
|
||||
@ -689,9 +692,9 @@ int main(int argc, char **argv)
|
||||
|
||||
length = 0;
|
||||
if (posj > posi)
|
||||
length=posj - posi + 1 - o2->patlen; /* - o1->patlen : suppress by <EC> */
|
||||
length=posj - posi + 1 - o2->patlen - o1->patlen; /* - o1->patlen : suppress by <EC> */
|
||||
if (posj < posi)
|
||||
length= posj + apatseq->seqlen - posi - o1->patlen;
|
||||
length= posj + apatseq->seqlen - posi - o1->patlen - o2->patlen;
|
||||
|
||||
if (length &&
|
||||
(!lmin || (length >= lmin)) &&
|
||||
|
@ -104,6 +104,9 @@ char *ecoComplementSequence(char *nucAcSeq)
|
||||
|
||||
|
||||
char *getSubSequence(char* nucAcSeq,int32_t begin,int32_t end)
|
||||
/*
|
||||
extract subsequence from nucAcSeq [begin,end[
|
||||
*/
|
||||
{
|
||||
static char *buffer = NULL;
|
||||
static int32_t buffSize= 0;
|
||||
|
@ -10,6 +10,7 @@ int eco_is_taxid_included( ecotaxonomy_t *taxonomy,
|
||||
|
||||
taxon = eco_findtaxonbytaxid(taxonomy, taxid);
|
||||
|
||||
if (taxon)
|
||||
for (i=0; i < tab_len; i++)
|
||||
if ( (taxon->taxid == restricted_taxid[i]) ||
|
||||
(eco_isundertaxon(taxon, restricted_taxid[i])) )
|
||||
|
Reference in New Issue
Block a user