git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@180 60f365c0-8329-0410-b2a4-ec073aeeaa1d
28 lines
691 B
C
28 lines
691 B
C
/*
|
|
* 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;
|
|
}
|