as.garnett.Rd
Converts a fitted ctree object to the classifier format supported by garnett for more information on the specification please visit: https://cole-trapnell-lab.github.io/garnett/docs/#submitting-a-classifier
as.garnett(tree, digits = 3, rules_keep = ".*") # S3 method for garnett.list print(x)
tree | a fitted constparty/party object |
---|---|
digits | an integer stating how many decimal places should be conserved |
rules_keep | a regular expression stating which rules should be kept, defaults to all rules (".*") |
a complex list that prints as a garnett file
print
: Print a garnett classifier
#> > 0_node_2 (n = 52) #> expressed below: S100A8 2.523 #> #> > 0_node_4 (n = 7) #> expressed above: S100A8 2.523 #> expressed below: S100A9 0 #> #> > 1 (n = 21) #> expressed above: S100A8 2.523, S100A9 0# > 0_node_2 (n = 52) # expressed below: S100A8 2.523 # # > 0_node_4 (n = 7) # expressed above: S100A8 2.523 # expressed below: S100A9 0 # # > 1 (n = 21) # expressed above: S100A8 2.523, S100A9 0