Exemple #1
0
import sys, os
import argparse

from rhombus.scripts.run import main as rhombus_main, set_config
from rhombus.lib.utils import cout, cerr, cexit

from genaf_base.models.handler import DBHandler


def greet():
    cerr('command line utility for genaf-base')


def usage():
    cerr('genaf_base-run - command line utility for genaf-base')
    cerr('usage:')
    cerr('\t%s scriptname [options]' % sys.argv[0])
    sys.exit(0)


set_config(environ='RHOMBUS_CONFIG',
           paths=['genaf_base.scripts.'],
           greet=greet,
           usage=usage,
           dbhandler_class=DBHandler)

main = rhombus_main
Exemple #2
0
import sys, os
import argparse

from rhombus.scripts.run import main as rhombus_main, set_config
from rhombus.lib.utils import cout, cerr, cexit

from genaf.models.handler import DBHandler

def greet():
    cerr('genaf-run')

def usage():
    cerr('genaf-run usage')


print("genaf run.py")
set_config( environ='GENAF_CONFIG',
            paths = [ 'fatools.scripts.', 'genaf.scripts.' ],
            greet = greet,
            usage = usage,
            dbhandler_class = DBHandler
)

main = rhombus_main
Exemple #3
0
import sys, os
import argparse

from rhombus.scripts.run import main as rhombus_main, set_config
from rhombus.lib.utils import cout, cerr, cexit

from cmsfix.models.handler import DBHandler


def greet():
    cerr('cmsfix-run - command line utility for CMSFix/rhombus')


def usage():
    cerr('cmsfix-run - command line utility for CMSFix/rhombus')
    cerr('usage:')
    cerr('\t%s scriptname [options]' % sys.argv[0])
    sys.exit(0)


set_config( environ='CMSFIX_CONFIG',
            paths = ['cmsfix.scripts.'],
            greet = greet,
            usage = usage,
            dbhandler_class = DBHandler
)

main = rhombus_main


Exemple #4
0
import sys, os
import argparse

from rhombus.scripts.run import main as rhombus_main, set_config
from rhombus.lib.utils import cout, cerr, cexit

from genaf_snp.models.handler import DBHandler


def greet():
    cerr('command line utility for genaf-snp')


def usage():
    cerr('genaf_snp-run - command line utility for genaf-snp')
    cerr('usage:')
    cerr('\t%s scriptname [options]' % sys.argv[0])
    sys.exit(0)


set_config(environ='GENAF_CONFIG',
           paths=['spatools.scripts.', 'genaf_snp.scripts.'],
           greet=greet,
           usage=usage,
           dbhandler_class=DBHandler,
           includes=['genaf.includes'])

main = rhombus_main