# Request for comments: how do you subsample your data?

**URL:** <https://nextstrain.discourse.group/t/request-for-comments-how-do-you-subsample-your-data/1436>\
**Category:** General\
**Created:** [September 12, 2023, 5:03pm UTC](https://nextstrain.discourse.group/t/request-for-comments-how-do-you-subsample-your-data/1436 "2023-09-12T17:03:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![james](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/james/32/11_2.png) [@james](https://nextstrain.discourse.group/u/james)\
**Post date:** [September 12, 2023, 5:03pm UTC](https://nextstrain.discourse.group/t/request-for-comments-how-do-you-subsample-your-data/1436/1 "2023-09-12T17:03:07Z")

</div>

One of the first steps in phylogenetics is collecting together the data you want to analyse. This data may come from multiple sources (public repositories, private data, etc), and is often then pruned down into the specific set of data to construct a tree. Selecting the strains to analyse often involves things like de-duplication, filtering data based on quality and downsampling data either randomly or via certain criteria (e.g. genetic proximity, even sampling across time & space).

It would really help us if you could describe the way(s) you do this, or how you wish you could do this! There’s no need to write any code, just summarising the approach you take (or would take) would be great for us to better understand the common approaches people are taking. If there’s multiple different approaches you take (e.g. to answer different questions) then feel free to write multiple answers! Please include the pathogen that the desired subsampling scheme applies to and ideally the scientific / public health question of interest.

Please respond via [this google form](https://docs.google.com/forms/d/e/1FAIpQLSdX6Rp79n6qX5L4RF8iCJG52mqt7dmRpHLTP87fGlU2_0n1yg/viewform?usp=sf_link) (but feel free to respond here if preferred).

---

<div class="post-metadata">

**Author:** ![james](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/james/32/11_2.png) [@james](https://nextstrain.discourse.group/u/james)\
**Post date:** [September 12, 2023, 5:03pm UTC](https://nextstrain.discourse.group/t/request-for-comments-how-do-you-subsample-your-data/1436/2 "2023-09-12T17:03:48Z")

</div>

Pinned on September 12, 2023, 5:03pm UTC



---

<div class="post-metadata">

**Author:** ![corneliusroemer](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/corneliusroemer/32/175_2.png) [@corneliusroemer](https://nextstrain.discourse.group/u/corneliusroemer)\
**Post date:** [October 5, 2023, 6:10pm UTC](https://nextstrain.discourse.group/t/request-for-comments-how-do-you-subsample-your-data/1436/3 "2023-10-05T18:10:03Z")

</div>

Pinned globally on October 5, 2023, 6:10pm UTC


