# Create random topology with 10 nodes and k = 2
B <- create_B(10, 2)
# Create U matrix with parameter m=4 and "positive" selection
U <- create_U(B = B, m = 4, selection = "positive")
# Then we compute the F matrix for a heterozygous tumor
F <- create_F(U = U, B = B, heterozygous = TRUE)
Run the code above in your browser using DataLab