# Does kneaddata 0.7.4 still require the /1 and /2 in the read ids?

**URL:** <https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577>\
**Category:** KneadData\
**Created:** [January 20, 2021, 1:44pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577 "2021-01-20T13:44:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![smb2020](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@smb2020](https://forum.biobakery.org/u/smb2020)\
**Post date:** [January 20, 2021, 1:44pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/1 "2021-01-20T13:44:10Z")

</div>

My question is how do we tell whether the kneaddata version requires the /1 and /2? Also, is there a way to download the data from the SRA to be compatible with kneaddata?

---

<div class="post-metadata">

**Author:** ![smb2020](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@smb2020](https://forum.biobakery.org/u/smb2020)\
**Post date:** [January 21, 2021, 6:31pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/2 "2021-01-21T18:31:17Z")

</div>

Would greatly appreciate your guidance.

---

<div class="post-metadata">

**Author:** ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)\
**Post date:** [January 21, 2021, 11:53pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/3 "2021-01-21T23:53:06Z")

</div>

Hello, Yes, the latest Kneaddata version still requires the pair identifiers in the read headers. It accepts both the original and new illumina formats.

Original format example: `@HWUSI-EAS100R:6:73:941:1973#0/1`  
New format example: `@EAS139:136:FC706VJ:2:2104:15343:197393 1:N:18:1`

In the upcoming Kneaddata release we will allow for files without the pair identifier by specifying the read1 and read2 files on the command line.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![drelo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/drelo/32/566_2.png) [@drelo](https://forum.biobakery.org/u/drelo)\
**Post date:** [February 21, 2021, 4:46pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/4 "2021-02-21T16:46:23Z")

</div>

Hi @lauren.j.mciver just a brief question about kneaddata I downloaded paired-end files from SRA too but they look like this with `head` :

```auto
@SRR6000869.1 1/1
CTATGACACACGCGTCATGGCCATGCAGAAGCAAGCTGCCGATCGTGAAGTGCCAACAGACC
+
A/AAA/EEAAEEAEEAEAEEEAAEAAEE/EEEEEEAEEEEA/AAEAEAEEEE/EE/E/E/EA
@SRR6000869.2 2/1
TATTCCCTGGAAAGGTAACTACTCCAGTTGGCTGGAACAGAAGACCAAGCGCATGGAGCAAGAGGAAAAGACCGCCAGCAAGCGCCGCAAGACGCTGGAACGCGAGCTGGAGTGGGTGCGCATGGCTCCCAAGGCCCGTCAGGCAAAGGG
+
AAAAAEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE6EEEEEEAEEAEEEEAEEEEAEEEEEEEEEEEEE/EEEAAEEEEAEEEEEEEEEEEEEEE<EE/EEEEAEEEEEAAEEEEEEE<AEEEEEEEEAE/EA<AAEEEAEEEEEEEEE
@SRR6000869.3 3/1
AAAAACGGCTTAGAATAGCTTTTCTTTCCACAGTTTCATTTATATTCTTACAGAAGAGTTGAAGTATTATTGCCTCGCGTACAGTTAACATCTTTTTTTCTTCAGTTTCATCATTATACAGTGTGGCATGTTTGGCATCCAGTGTGAAACG

```

I tried doing a simple sed replacement and the headers look like this  
**@SRR6000869.1#1/1** but that doesn’t seem to be working. Can I fix this doing a new replacement over the original file? Or should I use trimmomatic outside of _kneaddata_ and use _kneaddata_ only for removing human reads? I am afraid this workaround maybe will be harder to implement than doing both steps in a single line. I have to use this version anyway since it is in a cluster environment so I would prefer to fix this with sed before feeding it to _kneaddata_. Thanks for your help!  
Sorry I replied with this question at the HUMANN thread I just deleted that duplicate.

---

<div class="post-metadata">

**Author:** ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)\
**Post date:** [February 22, 2021, 10:37pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/5 "2021-02-22T22:37:48Z")

</div>

Hi, You should be able to make this change to the original file with sed; Just add the `-i` option to edit the file in place. It should hopefully work to allow kneaddata to be able to track the paired reads. If it does not seem to be working if you would post the details on what is going wrong here that would be great.

Thank you,  
Lauren

---

<div class="post-metadata">

**Author:** ![drelo](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/drelo/32/566_2.png) [@drelo](https://forum.biobakery.org/u/drelo)\
**Post date:** [February 24, 2021, 11:14am UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/6 "2021-02-24T11:14:20Z")

</div>

Thanks @lauren.j.mciver! It seems the replacement worked fine, I was expecting to run ‘as fast as the run with the _incorrect_ headers’ -although it didn’t make sense- and I thought there was something wrong after 2 hours. I rerun everything and it seems with these samples take close to 3 hours to clean them (while yesterday, in other cases/samples I run it in less than an hour). It was a mix of my bad choice of a ‘demo’ pair of reads and launching it with _few_ threads Thanks again, now it is working fine.

---

<div class="post-metadata">

**Author:** ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)\
**Post date:** [February 24, 2021, 9:46pm UTC](https://forum.biobakery.org/t/does-kneaddata-0-7-4-still-require-the-1-and-2-in-the-read-ids/1577/7 "2021-02-24T21:46:21Z")

</div>

Thank you for the follow up! I am glad to hear it is now working okay.

Thank you,  
Lauren
