Description Usage Arguments Value References
View source: R/sample_partitions_by_cells.R
Generate Random, Non-Overlapping Two-Set Partition of Cells By Half
1 2 3 4 5 6 7 8 | sample_partitions_by_cells_by_half(
reads,
fraction,
w_tolerance = 0.01,
max_rejections = 100L,
warn = TRUE,
...
)
|
reads |
A data.frame with n reads from C cells. |
fraction |
A numeric of length two in (0,1/2] specifying the size of
each partition relative to |
w_tolerance |
Maximum allowed difference between target weight of
each part (e.g. |
max_rejections |
The maximum number of rejections before giving up. |
warn |
If |
... |
Additional argument passed to sample_partitions_similar_weights_by_half. |
A list of two disjoint random non-overlapping partitions where each element holds indices in {1, 2, ..., n}. The first element holds the 'reference' partition and the second the 'test' partition.
https://github.com/HenrikBengtsson/SegalM_2017-FISH/issues/16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.