New version based on sort them merge algorithm

git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@180 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
2009-03-04 22:32:55 +00:00
parent 6d8bb449d5
commit 64838c1cdf
59 changed files with 5196 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/*
* goodtaxon.c
*
* Created on: 7 nov. 2008
* Author: coissac
*/
#include "ecoprimer.h"
int isGoodTaxon(ecotaxonomy_t *taxonomy,int32_t taxon,poptions_t options)
{
int result;
result=( (options->r == 0) || (eco_is_taxid_included(taxonomy,
options->restricted_taxid,
options->r,
taxonomy->taxons->taxon[taxon].taxid)
)) &&
((options->g == 0) || !(eco_is_taxid_included(taxonomy,
options->ignored_taxid,
options->g,
taxonomy->taxons->taxon[taxon].taxid)
));
return result;
}