Fixed floats in phenotype importer.
Added PrintFunction for debug-printing. Added PhenotypeImportFunction to AffyWorkflow.
This commit is contained in:
@@ -20,13 +20,13 @@ CEL
|
||||
def testFloatData(self):
|
||||
cel_data = """\
|
||||
CEL\tage
|
||||
02-05-33\t8
|
||||
02-05-33\t8.5
|
||||
03-07-38\t9
|
||||
"""
|
||||
dataset = PhenotypeDataset(cel_data)
|
||||
self.assertEquals(['CEL', 'phenotypes'], dataset.get_dim_names())
|
||||
self.assertEquals(['age'], dataset.get_identifiers('phenotypes'))
|
||||
self.assertEquals([[8],
|
||||
self.assertEquals([[8.5],
|
||||
[9]], dataset.asarray().tolist())
|
||||
|
||||
def testCategoryData(self):
|
||||
|
Reference in New Issue
Block a user