# Renaming sequences

**URL:** <https://forum.mothur.org/t/renaming-sequences/22088>\
**Category:** Feature requests granted\
**Created:** [March 5, 2024, 9:36am UTC](https://forum.mothur.org/t/renaming-sequences/22088 "2024-03-05T09:36:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsnr](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@gsnr](https://forum.mothur.org/u/gsnr)\
**Post date:** [March 5, 2024, 9:36am UTC](https://forum.mothur.org/t/renaming-sequences/22088/1 "2024-03-05T09:36:08Z")

</div>

My sequences were named xyz123 and I want to change all them to GSN1, GSN2, GSN3 and so on… Can some suggest a command in mothur.

---

<div class="post-metadata">

**Author:** ![pschloss](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/pschloss/32/4_2.png) [@pschloss](https://forum.mothur.org/u/pschloss)\
**Post date:** [March 7, 2024, 1:48pm UTC](https://forum.mothur.org/t/renaming-sequences/22088/2 "2024-03-07T13:48:50Z")

</div>

Hi there,

Maybe [`rename.seqs`](https://mothur.org/wiki/rename.seqs/) does what you want? Otherwise, I’d suggest renaming them with `sed` in bash.

Pat

---

<div class="post-metadata">

**Author:** ![gsnr](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@gsnr](https://forum.mothur.org/u/gsnr)\
**Post date:** [March 8, 2024, 3:04am UTC](https://forum.mothur.org/t/renaming-sequences/22088/3 "2024-03-08T03:04:20Z")

</div>

Thanks Pat for reply. I used the command rename.seqs but it gives 1 to … so on. But I want to rename by giving a code of my choice. Please help me.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.mothur.org/system/32/2_2.png) [@system](https://forum.mothur.org/u/system)\
**Post date:** [March 18, 2024, 3:04am UTC](https://forum.mothur.org/t/renaming-sequences/22088/4 "2024-03-18T03:04:44Z")

</div>

Closed on March 18, 2024, 3:04am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
