# How to delete rows with the same number in the bed file in usegalaxy

**URL:** <https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986>\
**Category:** Uncategorized\
**Tags:** bed, troubleshooting, usinggalaxy\
**Created:** [December 8, 2020, 8:44pm UTC](https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986 "2020-12-08T20:44:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agrieng3](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/agrieng3/32/378_2.png) [@agrieng3](https://help.galaxyproject.org/u/agrieng3)\
**Post date:** [December 8, 2020, 8:44pm UTC](https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986/1 "2020-12-08T20:44:20Z")

</div>

```auto
 How to delete rows with the same number in the bed file in usegalaxy
 (If the number of the second column is equal to the number of the third column, delete that row)
 which tool could be useful?
input:
chr1 10 20 
chr1 10 10 
chr1 15 20 
chr1 15 30 
chr1 30 30

output:
chr1 10 20 
chr1 15 20 
chr1 15 30

```

---

<div class="post-metadata">

**Author:** ![gallardoalba](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/gallardoalba/32/1903_2.png) [@gallardoalba](https://help.galaxyproject.org/u/gallardoalba)\
**Post date:** [December 10, 2020, 9:18am UTC](https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986/2 "2020-12-10T09:18:20Z")

</div>

HI @agrieng3,  
you can use the **Filter data on any column using simple expression** tool, with the condition c2 != c3.

---

<div class="post-metadata">

**Author:** ![agrieng3](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/agrieng3/32/378_2.png) [@agrieng3](https://help.galaxyproject.org/u/agrieng3)\
**Post date:** [December 11, 2020, 1:17pm UTC](https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986/3 "2020-12-11T13:17:47Z")

</div>

Thank you, very Good 👍

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [March 17, 2026, 6:14am UTC](https://help.galaxyproject.org/t/how-to-delete-rows-with-the-same-number-in-the-bed-file-in-usegalaxy/4986/4 "2026-03-17T06:14:58Z")

</div>


