Пример #1
0
def testRefGen():
    # We have to build it
    if m80tools.available('RefLoci', 'Zm5bFGS'):
        x = RefLoci('Zm5bFGS')
    else:
        m80tools.delete('RefLoci', 'Zm5bFGS', force=True)
        gff = os.path.expanduser(os.path.join('raw', 'ZmB73_5b_FGS.gff.gz'))
        x = RefLoci('Zm5bFGS')
        if len(x) == 0:
            x.import_gff(gff)
    x.set_primary_feature_type('gene')
    return x
Пример #2
0
def test_available():
    Tools.available()
Пример #3
0
def test_unavailable_bool(simpleCohort):
    assert Tools.available(dtype='Cohort',name='ERROR') == False
Пример #4
0
def test_available_bool(simpleCohort):
    assert Tools.available(dtype='Cohort',name='TestCohort') == True
Пример #5
0
def test_unavailable_bool(simpleCohort):
    assert Tools.available(dtype="Cohort", name="ERROR") == False
Пример #6
0
def test_available_bool(simpleCohort):
    assert Tools.available(dtype="Cohort", name="TestCohort") == True
Пример #7
0
def test_available():
    Tools.available()
Пример #8
0
def test_unavailable_bool(simpleCohort):
    assert Tools.available(dtype='Cohort', name='ERROR') == False
Пример #9
0
def test_available_bool(simpleCohort):
    assert Tools.available(dtype='Cohort', name='TestCohort') == True