# How to set only genotype to ./. based on different conditions

**URL:** <https://discuss.hail.is/t/how-to-set-only-genotype-to-based-on-different-conditions/859>\
**Category:** Hail Query & hailctl\
**Created:** [February 12, 2019, 3:36pm UTC](https://discuss.hail.is/t/how-to-set-only-genotype-to-based-on-different-conditions/859 "2019-02-12T15:36:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monica\_Sudarsanam](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Monica\_Sudarsanam](https://discuss.hail.is/u/Monica_Sudarsanam)\
**Post date:** [February 12, 2019, 3:36pm UTC](https://discuss.hail.is/t/how-to-set-only-genotype-to-based-on-different-conditions/859/1 "2019-02-12T15:36:55Z")

</div>

Dear Hail team,

Based on different conditions i am trying to get my sample genotype information to missing (./.) but i want to keep the rest of the information. for example based on a condition i want my sample genotype to look ./.:40,20:55:… this way rather than just ./.

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [February 12, 2019, 4:53pm UTC](https://discuss.hail.is/t/how-to-set-only-genotype-to-based-on-different-conditions/859/2 "2019-02-12T16:53:34Z")

</div>

In this case, don’t use `filter_entries`, use `annotate_entries` to reassign the GT field:

```python
mt = mt.annotate_entries(GT = hl.null(hl.tcall) ) # or whatever 

```
