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