Jump to content

Functional coverage tree: Difference between revisions

m
Line 379:
titles = init $ tokenize delimiter (head indentedLines)
in T.unlines
[ titleLinetabulation (titles ++ ["SHARE OF RESIDUE"])
, indentedLinesFromTree " " showCoverage $
withResidueShares 1.0 $
Line 466:
showCoverage :: T.Text -> Coverage -> T.Text
showCoverage indent x =
tabulation
T.intercalate
([T.justifyLeftappend 9indent '(name 'x), (T.pack (showN 0 (weight x)))] :++
"| "
((T.justifyLeftpack 31. 'showN '4) <$> (T.append[coverage, indentshare] (name<*> [x]))) :
T.justifyLeft 9 ' ' (T.pack (showN 0 (weight x))) :
((T.justifyLeft 9 ' ' . T.pack . showN 4) <$> ([coverage, share] <*> [x])))
 
titleLinetabulation :: [T.Text] -> T.Text
titleLinetabulation = T.intercalate "| " . zipWith (`T.justifyLeft` ' ') [31, 9, 9, 9]
 
justifyRight :: Int -> a -> [a] -> [a]
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.