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
def test_available(): Tools.available()
def test_unavailable_bool(simpleCohort): assert Tools.available(dtype='Cohort',name='ERROR') == False
def test_available_bool(simpleCohort): assert Tools.available(dtype='Cohort',name='TestCohort') == True
def test_unavailable_bool(simpleCohort): assert Tools.available(dtype="Cohort", name="ERROR") == False
def test_available_bool(simpleCohort): assert Tools.available(dtype="Cohort", name="TestCohort") == True
def test_unavailable_bool(simpleCohort): assert Tools.available(dtype='Cohort', name='ERROR') == False
def test_available_bool(simpleCohort): assert Tools.available(dtype='Cohort', name='TestCohort') == True