From 1a768aa97ebbd8aae3cbe9ef9c8ac81789860652 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 5 Jun 2007 13:37:41 +0000 Subject: [PATCH] git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/branches/refactoring@32 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- src/ecoisundertaxon.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/ecoisundertaxon.c b/src/ecoisundertaxon.c index f850efc..7a19a7b 100644 --- a/src/ecoisundertaxon.c +++ b/src/ecoisundertaxon.c @@ -26,16 +26,12 @@ int main(int argc, char **argv){ taxonomy = read_taxonomy(argv[optind]); - son = eco_findtaxonbytaxid(taxonomy, taxid_2); - - //printf("# %s\n",son->parent->name); + son = eco_findtaxonbytaxid(taxonomy, taxid_1); - /* - if (eco_isundertaxon(son, tax_id_2)) - printf("tax_id_1 is son of tax_id_2"); + if (eco_isundertaxon(son, taxid_2)) + printf("taxid_1 (%d) is son of taxid_2 (%d)\n",taxid_1, taxid_2); else - printf("tax_id_1 is NOT son of tax_id_2"); - */ + printf("taxid_1 (%d) is NOT son of taxid_2 (%d)\n",taxid_1, taxid_2); return 0; } \ No newline at end of file