Description Usage Arguments Value Author(s) References Examples
Create the event history matrix needed for the event timing algorithm
1 2 |
type |
|
copies |
a vector of length 2, giving the number of copies of the maternal and paternal chromosomes |
totalCopy |
an integer between 2 and 5. totalCopy must be the sum of the numbers given for the argument copies |
onlyIdentifiable |
logical. Only return event matrices corresponding to event histories with identifiable pi[0]? |
The A matrix relates allele frequencies to the event history. The vector A pi gives the probabilities of each allele frequency possible for the specified event.
Elizabeth Purdom
Purdom, E, et al. (submitted). “Timing Chromosomal Abnormalities within Cancer Samples.”
1 2 | makeEventHistory(type="gain",totalCopy=8)
makeEventHistory(type="gain",copies=c(1,4),totalCopy=5,onlyIdentifiable=FALSE)
|
[[1]]
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 1 2 3 4 5 6 8
[2,] 0 0 0 0 0 1 0
[3,] 0 0 0 0 1 0 0
[4,] 0 0 0 1 0 0 0
[5,] 0 0 1 0 0 0 0
[6,] 0 1 0 0 0 0 0
[7,] 1 0 0 0 0 0 0
$`1MLineage x 3`
[,1] [,2] [,3] [,4]
[1,] 1 2 3 5
[2,] 0 0 1 0
[3,] 0 1 0 0
[4,] 1 0 0 0
$`1MLineage x 2,2MLineage`
[,1] [,2] [,3] [,4]
[1,] 1 1 3 5
[2,] 0 2 1 0
[3,] 0 0 0 0
[4,] 1 0 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.