# Add Yue and Clayton Distance Metric as an option in QIIME 2?

**URL:** https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072
**Category:** Ideas and Suggestions
**Tags:** pending-development, distance-matrix
**Created:** [November 19, 2018, 2:00pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072 "2018-11-19T14:00:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![smreyes](https://forum.qiime2.org/user_avatar/forum.qiime2.org/smreyes/32/4051_2.png) [@smreyes](https://forum.qiime2.org/u/smreyes)
#### Post date: [November 19, 2018, 2:00pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072/1 "2018-11-19T14:00:37Z")

</div>

I would love to see the Yue and Clayton distance metric available in QIIME 2. Any plans to do so?

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [November 19, 2018, 2:22pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072/2 "2018-11-19T14:22:33Z")

</div>

Hi @smreyes,  
Thanks for the suggestion! I have added an issue [here](https://github.com/qiime2/q2-diversity/issues/225) and we will reply here whenever this is fixed.

Unfortunately, we have a long queue of open issues. Honestly, the quickest way to get this implemented in QIIME 2 would be if you or someone you know would be interested in contributing this method 😉. Please get in touch if you are interested and we can point you in the right direction.

Thank you!

---

<div class="post-metadata">

### Author: ![smreyes](https://forum.qiime2.org/user_avatar/forum.qiime2.org/smreyes/32/4051_2.png) [@smreyes](https://forum.qiime2.org/u/smreyes)
#### Post date: [November 19, 2018, 9:22pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072/3 "2018-11-19T21:22:42Z")

</div>

I've never contributed anything in the past but I do know the formula for this distance metric. I'd be willing to at least learn more about becoming a contributor before I commit to doing it.

---

<div class="post-metadata">

### Author: ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)
#### Post date: [November 19, 2018, 9:29pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072/4 "2018-11-19T21:29:36Z")

</div>

The way to contribute a change like this is to issue a pull request on github, containing your additions to the code.

We have relevant examples of pull requests containing distance metric contributions [here](https://github.com/qiime2/q2-diversity/pull/208/files) and [here](https://github.com/qiime2/q2-diversity/pull/221/files).

Take a look at those and let us know if you feel confident making this type of contribution! If you feel semi-confident but would need some support let us know — the most time-consuming steps (which we'd need your help with!) are putting together the formula and unit tests to make sure it's operating accurately, so if you can at least take care of those parts we can help with other parts of integration.

---

<div class="post-metadata">

### Author: ![smreyes](https://forum.qiime2.org/user_avatar/forum.qiime2.org/smreyes/32/4051_2.png) [@smreyes](https://forum.qiime2.org/u/smreyes)
#### Post date: [November 19, 2018, 9:41pm UTC](https://forum.qiime2.org/t/add-yue-and-clayton-distance-metric-as-an-option-in-qiime-2/7072/5 "2018-11-19T21:41:24Z")

</div>

I'll take a look and let you know how confident I am.

Thanks!
