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:
2011-06-30 15:12:38 +00:00
parent f53cc6d500
commit ae528e48f4
3 changed files with 16 additions and 9 deletions

View File

@ -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)) &&

View File

@ -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;

View File

@ -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])) )