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

inconsistent quality strings in error free sam file #225

Open
jazberna1 opened this issue Oct 21, 2019 · 1 comment
Open

inconsistent quality strings in error free sam file #225

jazberna1 opened this issue Oct 21, 2019 · 1 comment

Comments

@jazberna1
Copy link

Hello Yunfei,

This is probably an ART question rather than varsim but I have noticed that if you generate an error free sam by passing --art_options="--errfree" to varsim the generated sam file has inconsistent quality strings with different lengths than the corresponding reads. This causes errors 'samtools fastq' or 'gatk SamToFastq'.

Jorge

@yunfeiguo
Copy link
Contributor

Hi @jazberna1 you are right, I did see inconsistent SEQ and QUAL lengths in ART's errFree.sam file. I think a workaround would be ignore the quality scores and convert to FASTA, e.g.

perl -ane 'if(!/^@/){print ">$F[0]\n$F[9]\n"}' errFree.sam

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