Beispiel #1
0
def main():
	utils.print_logo(version)
	job = False
	# default pipeline
	if argp.job_type == 'default':
		logger.info('Job type: Blast2ref pipeline.')
		job = default()
	# deseq_ex pipeline
	elif argp.job_type == 'deseq_ex':
		logger.info('Job type: Extract DE seqs from fasta.')
		job = deseq_ex()
	# cache2tsv pipeline
	elif argp.job_type == 'cache2tsv':
		logger.info('Job type: Convert cache to tsv file.')
		job = cache2tsv()
	elif argp.job_type == 'run_blast':
		job = run_blast()
	else:
		logger.warning('Unknow job type: '+ argp.job_type)

	if job:
		logger.info('Blast2Ref job was successfully finished.')
Beispiel #2
0
    print('Ingresa 1 Si quieres probar todos los casos de correción')
    print('Ingresa 0 Si quieres salir')

def test():
    print("NUMEROS A BUSCAR: 1, 10, 68, 99")
    a_buscar = [1, 10, 68, 99]
    for i in range(4):
        print('\n\n ########## TEST {} ##########\n\n'.format(i))
        name_file = 't_{}.txt'.format(i+1)
        array = abrir_archivo(name_file)
        print("El contenido del arreglo es: {}".format(array))
        print(' -------- BUSQUEDA LINEAL --------')
        for k in a_buscar:
            print('Cantidad de comparaciones caso k={}: {}'.format(k, BUSCA_LIN(array, k, True)))
            print('Posición del entero caso k={}: {}'.format(k, BUSCA_LIN(array, k, False)))
            print(' ')
        print(' -------- BUSQUEDA BIN --------')
        for k in a_buscar:
            print('Cantidad de comparaciones caso k={}: {}'.format(k, BUSCA_BIN(array, k, True)))
            print('Posición del entero caso k={}: {}'.format(k, BUSCA_BIN(array, k, False)))
            print(' ')
if __name__ == '__main__':
    print_logo()
    while True:
        menu()
        x = input("---> ")
        if x == '1':
            test()
        elif x == '0':
            break
    
Beispiel #3
0
# nm. Converts distances to nm to maintain compatibility with all existing code!
#
#-----------------------------------------------------------------------------------
#

# CAMELOT imports
from configs import CAMELOT_VERSION
from extract_parameters import Simulations
from keyfileParser import KeyfileParser
from optimization import Optimization
from utils import print_logo

# we have to import argparse to use it
import argparse

print_logo(CAMELOT_VERSION)

if __name__ == "__main__":

    parser = argparse.ArgumentParser()
    parser.add_argument("-keyfile", "-k", help="Filename of keyfile")
    args = parser.parse_args()

    if args.keyfile:
        keyfilename = args.keyfile
    else:
        print "No keyfile passed"
        print ""
        print "Please pass a keyfile using"
        print "-k <keyfilename>"
        exit(1)
Beispiel #4
0
def quick():
    print_logo()
    print('quick start')
Beispiel #5
0
def run():
    """run nodes.
    """
    print_logo()
Beispiel #6
0
def config():
    """customize config files.
    """
    print_logo()