genome-sampler sample-random¶
Randomly sample IDs without replacement. This is useful for evaluation purposes (e.g., to test whether another sampling approach is more useful than random sampling).
Citations¶
Parameters¶
- ids:
Metadata IDs to subsample from.[required]
- n:
Int%Range(1, None) Number of IDs to sample.[required]
- seed:
Int%Range(0, None) Random seed to use to initialize random number generator.[optional]
Outputs¶
- selection:
FeatureData[Selection] The selected IDs.[required]
- Bolyen, E., Dillon, M. R., Bokulich, N. A., Ladner, J. T., Larsen, B. B., Hepp, C. M., Lemmer, D., Sahl, J. W., Sanchez, A., Holdgraf, C., Sewell, C., Choudhury, A. G., Stachurski, J., McKay, M., Engelthaler, D. M., Worobey, M., Keim, P., & Gregory Caporaso, J. (2020). Reproducibly sampling SARS-CoV-2 genomes across time, geography, and viral diversity. F1000 Research, 9(657), 657. 10.12688/f1000research.24751.1