# Typo in impute\_sex() description

**URL:** https://discuss.hail.is/t/typo-in-impute-sex-description/942
**Category:** Meta
**Created:** [April 22, 2019, 3:09pm UTC](https://discuss.hail.is/t/typo-in-impute-sex-description/942 "2019-04-22T15:09:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lindsayvm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/lindsayvm/32/261_2.png) [@lindsayvm](https://discuss.hail.is/u/lindsayvm)
#### Post date: [April 22, 2019, 3:09pm UTC](https://discuss.hail.is/t/typo-in-impute-sex-description/942/1 "2019-04-22T15:09:19Z")

</div>

Hi!

Just a small note on a typo in the description of the impute\_sex():  
[https://hail.is/docs/0.2/methods/genetics.html?highlight=impute\_sex#hail.methods.impute\_sex](https://hail.is/docs/0.2/methods/genetics.html?highlight=impute_sex#hail.methods.impute_sex)

" Remove samples where imputed sex does not equal reported sex: "

```python
imputed_sex = hl.impute_sex(dataset.GT)
dataset_result = dataset.filter_cols(imputed_sex[dataset.s].is_female != dataset.pheno.is_female) 

```

Using this function you would remove the samples where imputed sex equals reported sex. I suppose it should be “ == “ instead of “ != “ in order to remove those samples where imputed sex does not match reported sex?

---

<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: [April 22, 2019, 3:56pm UTC](https://discuss.hail.is/t/typo-in-impute-sex-description/942/2 "2019-04-22T15:56:52Z")

</div>

yes, good catch!

---

<div class="post-metadata">

### Author: ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)
#### Post date: [April 24, 2019, 2:09pm UTC](https://discuss.hail.is/t/typo-in-impute-sex-description/942/3 "2019-04-24T14:09:04Z")

</div>

And the fix is now merged! [https://github.com/hail-is/hail/pull/5931](https://github.com/hail-is/hail/pull/5931)
