geronimp / graftM

GraftM - Rapid community profiles from metagenomes
http://geronimp.github.io/graftM/
GNU General Public License v3.0
44 stars 16 forks source link

refactoring of Run #199

Open wwood opened 8 years ago

wwood commented 8 years ago

from #195 running graft from create, currently have to run extern.run graftM graft ... I'd prefer to do something along the lines of

Graft().graft(...)

But unfortunately Run is tightly coupled to argparse (args is an instance variable). If we make a new Graft class then we might need to also define a Graft.DEFAULT_PARAMETERS so that defaults can be specified in bin/graftM and in the method definition of Graft.graft without repetition (repetition might mean they become out of sync, which would be bad). ..future work.