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

Quality header must start with +: CGGCCTCAGTGAGCGA... at line 1 in fastq #38

Open
dlbowie0 opened this issue Feb 17, 2025 · 5 comments
Open

Comments

@dlbowie0
Copy link

I generated reads using the following command line:
´pbsim --strategy wgs --method qshmm --qshmm ../../../../pbsim/pbsim3/data/QSHMM-ONT-HQ.model --length-min 2050 --length-max 2050 --depth 6000 --difference-ratio 0:0:0 --genome ../file.fa --prefix ssaav --accuracy-mean 1´

However, when I try to run a quality control using FastQC or to convert the FASTQ file top BAM using picard-tools, the same error is generated : " Quality header must start with +: CGGCCTCAGTGAGCGAGCGAGCGCGCAGAGAGGGAGTGGCCAACTCCATCACTAGGGGTTCCTCAGATCAATTCCCGCCT at line 1 in fastq".

I would like to know if this error stems from the parameters I have chosen or maybe the issue is linked to the tool.

@yukiteruono
Copy link
Owner

Thank you for using PBSIM3.
I ran your command with some changes (--depth 6 --genome sample/sample.fasta).
The generated FASTQ file was fine.
Both FastQC and picard-tools ran successfully.
I suspect your FASTQ file was corrupted. If the nucleotide sequence in the FASTQ file is split into two lines, your error message will be output.

@dlbowie0
Copy link
Author

This is what the FASTQ file looks like:

Image

I have re-ran the command line several times and the files are all corrupted. Do you think the issue could be linked to the input FASTA file? I checked the sample FASTA file that you provided and compare it with my FASTA file. The difference is that in yours the bases are all written in capital letters, while mine are in common.

@yukiteruono
Copy link
Owner

PBSIM converts lowercase letters in the genome sequence to uppercase. Non-ATGC letters are randomly changed to ATGC in the reads.
Your FASTQ nucleotide sequences are too short, which is strange. The error may be caused by line break codes in the genome sequence. PBSIM only recognizes LF (\n) as the line break code. If CR (\r) or CRLF (\r\n) is used, change it to LF.

@dlbowie0
Copy link
Author

My FASTA was indeed using CRLF (\r\n) . I changed it and the FastQC analysis was successful. Is this requirement noted in the README? If so, could you point me to where exactly?

@yukiteruono
Copy link
Owner

This is something that needs to be noted, so I've added it to the README.

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