Exemplo n.º 1
0
def upload_url(project_id):
    mail, key = get_credentials(config_file)
    serv = get_serv(config_file)

    f1 = os.path.join(samples_path, samples[4])
    mess1 = gdv.single_track(mail,
                             key,
                             serv_url=serv,
                             assembly_id=12,
                             url=serv + "/test_files?id=" + str(4),
                             trackname="bed-test-renamed",
                             extension='bed')
    t1 = mess1['track_id']
    log('track_id', t1)
    assert mess1['message'] == u'Processing launched.'

    urls = "%s/test_files?id=%s %s/test_files?id=%s %s/test_files?id=%s" % (
        serv, 1, serv, 2, serv, 8)
    mess2 = gdv.single_track(mail,
                             key,
                             serv_url=serv,
                             extension='sql',
                             project_id=project_id,
                             url=urls)
    assert mess2['message'] == u'Processing launched.'
    return ['']
Exemplo n.º 2
0
def upload_fsys(project_id):
    """
    Upload track on GDV via fsys
    """
    mail, key = get_credentials(config_file)
    serv = get_serv(config_file)

    f1 = os.path.join(samples_path, samples[3])
    mess1 = gdv.single_track(mail, key, serv_url=serv, assembly_id=12, fsys=f1)
    t1 = mess1['track_id']
    log('track_id', t1)
    assert mess1['message'] == u'Processing launched.'

    f2 = os.path.join(samples_path, samples[6])
    mess2 = gdv.single_track(mail,
                             key,
                             serv_url=serv,
                             trackname="gtf-test-renamed",
                             project_id=project_id,
                             fsys=f2)
    t2 = mess2['track_id']
    log('track_id', t2)
    assert mess2['message'] == u'Processing launched.'

    return [t1, t2]
Exemplo n.º 3
0
def upload_url(project_id):
    mail, key = get_credentials(config_file)
    serv = get_serv(config_file)

    f1 = os.path.join(samples_path, samples[4])
    mess1 = gdv.single_track(mail, key, serv_url=serv, assembly_id=12, url=serv+"/test_files?id=" + str(4), trackname="bed-test-renamed", extension='bed')
    t1 = mess1['track_id']
    log('track_id', t1)
    assert mess1['message'] == u'Processing launched.'

    urls = "%s/test_files?id=%s %s/test_files?id=%s %s/test_files?id=%s" % (serv, 1, serv, 2, serv, 8)
    mess2 = gdv.single_track(mail, key, serv_url=serv, extension='sql', project_id=project_id, url=urls)
    assert mess2['message'] == u'Processing launched.'
    return ['']
Exemplo n.º 4
0
def upload_fsys(project_id):
    """
    Upload track on GDV via fsys
    """
    mail, key = get_credentials(config_file)
    serv = get_serv(config_file)

    f1 = os.path.join(samples_path, samples[3])
    mess1 = gdv.single_track(mail, key, serv_url=serv, assembly_id=12, fsys=f1)
    t1 = mess1['track_id']
    log('track_id', t1)
    assert mess1['message'] == u'Processing launched.'

    f2 = os.path.join(samples_path, samples[6])
    mess2 = gdv.single_track(mail, key, serv_url=serv, trackname="gtf-test-renamed", project_id=project_id, fsys=f2)
    t2 = mess2['track_id']
    log('track_id', t2)
    assert mess2['message'] == u'Processing launched.'

    return [t1, t2]