print.concensus.rules: Prints concensus rules

Description Usage Arguments Value See Also Examples

View source: R/print_tree_rules.R

Description

Prints in a human readable format a concensus.rules object, usually an output of 'sctree::get_concensus_rules'

Usage

1
2
## S3 method for class 'concensus.rules'
print(x)

Arguments

x

a concensus.rules object output from 'sctree::get_concensus_rules'

Value

returns silently the same object but prints the rules to the console.

See Also

get_concensus_rules

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
    my_tree <- fit_ctree(small_5050_mix, c('CKB', 'ADA', 'ASNS', 'PRDX6', 'MZB1'))
    my_rules <- get_concensus_rules(my_tree)
    print(my_rules)
    
# Cluster-0: 
# 	all elements:
# 		ADA +
# 		ASNS -
# Cluster-1: 
# 	all elements:
# 		ADA -
# 		ASNS +
# 		CKB +

jspaezp/sctree documentation built on April 30, 2020, 10:36 p.m.