Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seqtk sample adding ">" to some read IDs #110

Closed
mclaugsf opened this issue Mar 22, 2018 · 3 comments
Closed

seqtk sample adding ">" to some read IDs #110

mclaugsf opened this issue Mar 22, 2018 · 3 comments

Comments

@mclaugsf
Copy link

When I run seqtk sample some of the read IDs are getting the "@" character swapped out for a ">".

ubuntu@ip-10-0-0-200:/efs/Inputs/human-datasets/ASV_0009$ gunzip -c ASV_0009.Tumor.RNA.CeGat.R1.fastq.gz | grep ">HISEQ" | wc -l
0

There are no reads which match ">HISEQ" in the input. But they come out like this w/seqtk:

ubuntu@ip-10-0-0-200:/efs/Inputs/human-datasets/ASV_0009$ seqtk sample ASV_0009.Tumor.RNA.CeGat.R1.fastq.gz 0.01 | grep ">HISEQ" | head
>HISEQ:103:H3KNHBCXX:1:1101:15244:7826 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1101:1383:12560 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1101:16556:20181 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1101:20083:32828 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1102:6971:11043 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1102:14390:13964 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1102:16661:48303 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1102:20756:86659 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1103:5772:25970 1:N:0:GTGCTT
>HISEQ:103:H3KNHBCXX:1:1103:20723:75978 1:N:0:GTGCTT

And if I take the first one out of the input file it doesn't have the leading ">" character:

ubuntu@ip-10-0-0-200:/efs/Inputs/human-datasets/ASV_0009$ gunzip -c ASV_0009.Tumor.RNA.CeGat.R1.fastq.gz | grep HISEQ:103:H3KNHBCXX:1:1101:15244:7826
@HISEQ:103:H3KNHBCXX:1:1101:15244:7826 1:N:0:GTGCTT

Happening in version 1.2-r94 and I also tried 1.2-r102-dirty

@mclaugsf
Copy link
Author

mclaugsf commented Mar 22, 2018

I see that all the read IDs it does this to don't have sequence or quality scores i.e.:

ubuntu@ip-10-0-0-200:/efs/Inputs/human-datasets/ASV_0009$ gunzip -c ASV_0009.Tumor.RNA.CeGat.R1.fastq.gz | grep HISEQ:103:H3KNHBCXX:1:1101:15244:7826 -A4
@HISEQ:103:H3KNHBCXX:1:1101:15244:7826 1:N:0:GTGCTT

+

@HISEQ:103:H3KNHBCXX:1:1101:15148:7833 1:N:0:GTGCTT

seqtk sample turns this into:

ubuntu@ip-10-0-0-200:/efs/Inputs/human-datasets/ASV_0009$ grep "HISEQ:103:H3KNHBCXX:1:1101:15244:7826" blah1.fastq.gz  -A4
>HISEQ:103:H3KNHBCXX:1:1101:15244:7826 1:N:0:GTGCTT

@HISEQ:103:H3KNHBCXX:1:1101:2877:8014 1:N:0:GTGCTT
TTTTTCTTTCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
+

Is the FASTQ spec being broken by having a read ID for a read that doesn't exist in the original input?

@shenwei356
Copy link

shenwei356 commented Mar 22, 2018

Same problem occured a few days ago: #109 , but it' hard to change in near future. You may use seqkit (>=v0.8.0) for now, which just fix this.

@mclaugsf
Copy link
Author

Thanks! I thought it was a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants