sampP: To sample clonal frequency

Description Usage Arguments Value Author(s) Examples

Description

To sample clonal frequency matrix P. Used in canopy.sample.

Usage

1
sampP(tree, cell.line)

Arguments

tree

input tree

cell.line

default to be FALSE, TRUE if input sample is cell line (no normal cell contamination)

Value

Newly sampled clonal frequency matrix P.

Author(s)

Yuchao Jiang yuchaoj@wharton.upenn.edu

Examples

1
2

Example output

Loading required package: ape
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps
Loading required package: pheatmap
Loading required package: scatterplot3d
       MCP1833_bone MCP1834_lung MCP2287_bone MDA-MB-231_parental MCP3481_lung
clone1        0.000        0.000        0.000               0.000        0.000
clone2        0.006        0.000        0.399               0.992        0.003
clone3        0.991        0.001        0.600               0.005        0.001
clone4        0.003        0.999        0.001               0.003        0.996

Canopy documentation built on May 1, 2019, 7:59 p.m.