Bob Harris avatar Bob Harris committed 5196de0

changed score to number (instead of string)

Comments (0)

Files changed (1)

lib/bx/align/maf_tests.py

     assert reader.attributes["scoring"] == "humor.v4" 
 
     a = reader.next()
-    assert a.score == "0.128"
+    assert a.score == 0.128
     assert len( a.components ) == 3
     check_component( a.components[0], "human_hoxa", 100, 8,  "+", 100257, "ACA-TTACT" )
     check_component( a.components[1], "horse_hoxa", 120, 9, "-",  98892, "ACAATTGCT" )
     check_component( a.components[2], "fugu_hoxa",    88, 7,  "+",  90788, "ACA--TGCT" )
     
     a = reader.next()
-    assert a.score == "0.071"
+    assert a.score == 0.071
     assert len( a.components ) == 3
     check_component( a.components[0], "human_unc", 9077, 8, "+", 10998, "ACAGTATT" )
     check_component( a.components[1], "horse_unc", 4555, 6, "-",  5099, "ACA--ATT" )
     writer = maf.Writer( val, { 'scoring':'foobar' } )
     
     a = align.Alignment()
-    a.score = "7009"
+    a.score = 7009
 
     a.components.append( align.Component( src="human_hoxa", start=100, size=9,  strand="+", src_size=1000257, text="ACA-TTACT" ) )
     a.components.append( align.Component( src="horse_hoxa", start=120, size=10, strand="-",   src_size=98892, text="ACAATTGCT" ) )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.