powered by
Simulate bulk sequencing data by taking a local sample from the tumor and computing the variant allele frequencies of the various mutations.
randomBulkSamples( tumor, nsamples, cube.length = 5, threshold = 0.05, coverage = 0 )
A list which is the output of simulateTumor().
simulateTumor()
The number of bulk samples to take.
The side length of the cube of cells to be sampled.
Only mutations with an allele frequency greater than the threshold will be included in the sample.
If nonzero then deep sequencing with specified coverage is performed.
A data frame with nsamples rows and columns corresponding to the mutations. The entries are the mutation allele frequency.
nsamples
This is the same as bulkSample(), except multiple samples are taken with random center points.
bulkSample()
# NOT RUN { out <- simulateTumor(max_pop = 1000) df <- randomBulkSamples(tumor = out, nsamples = 5, cube.length = 5, threshold = 0.05) # }
Run the code above in your browser using DataLab