tzcoolman / FACS-OLD

0 stars 2 forks source link

Need for a central main.c #22

Closed brainstorm closed 11 years ago

brainstorm commented 11 years ago

When including simple_check_1_ge.c, I realized that we're in need for a single entry point, otherwise the compiler gets confused with multiple main() methods spread across .c files:

build/temp.linux-x86_64-2.7/simple_check_1_ge.o: In function `main':
/bubo/home/h5/roman/dev/DRASS/drass/simple_check_1_ge.c:66: multiple definition of `main'

The idea would be to have a main.c file that acts as entry point for all commandline-related interaction:

drass build -o example_filter.bloom -r reference.fasta
drass query "fooo" -r example_filter.bloom

We talked about that, in essence it's just about centralizing the argument parsing a bit more.

tzcoolman commented 11 years ago

I am currently debugging the new functions. One main function, with four sub-main functions: build(), check(), remove(), remove_l(). U can easily build python interface for sub functions. My plan is to push it tomorrow. How does it sound?

brainstorm commented 11 years ago

Awesome :+1: , looking forward to it!

brainstorm commented 11 years ago

Solved in pull request #28:

https://github.com/tzcoolman/DRASS/pull/28

Adopted Heng Li's Makefile strategy, thanks a lot Enze for the refactoring!!