This commit is contained in:
2007-06-05 14:27:28 +00:00
parent 065f4fe0c6
commit a827cc0cfe

View File

@ -417,8 +417,7 @@ int main(int argc, char **argv)
taxonomy = read_taxonomy(prefix);
seq = ecoseq_iterator(prefix);
checkedSequence = 0;
positiveSequence= 0;
amplifiatCount = 0;
@ -427,13 +426,13 @@ int main(int argc, char **argv)
{
checkedSequence++;
/**
* check if the sequence should be ignored
* check if current sequence should be ignored
**/
if ( (g > 0) && (eco_is_taxid_ignored(excluded_taxid, g, taxonomy->taxons->taxon[seq->taxid].taxid)) )
goto next;
/**
* check the sequence is included
* check current sequence is included
**/
if ( (r > 0) && (!eco_is_taxid_included(taxonomy, restricted_taxid, r, taxonomy->taxons->taxon[seq->taxid].taxid)) )
goto next;
@ -519,6 +518,9 @@ int main(int argc, char **argv)
seq = ecoseq_iterator(NULL);
}
ECOFREE(restricted_taxid, "Error: could not free restricted_taxid\n");
ECOFREE(excluded_taxid, "Error: could not free excluded_taxid\n");
return 0;
}