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

SEQ and QUAL have different lengths #42

Closed
sdwfrost opened this issue Nov 18, 2016 · 3 comments
Closed

SEQ and QUAL have different lengths #42

sdwfrost opened this issue Nov 18, 2016 · 3 comments

Comments

@sdwfrost
Copy link

I can't process the SAM output from ssw_test with samtools as the sequence length and quality score are different lengths:

ssw_test -m 1 -x 2 -o 4 -e 3 -f 14 -r -s -h -c ref.fas query.fastq > query.sam

followed by

samtools view -bS query.sam

gives

[E::sam_parse1] SEQ and QUAL are of different length
[W::sam_read1] parse error at line 3
[bam_flagstat_core] Truncated file? Continue anyway.

The first line of my SAM file is:

@HD	VN:1.4	SO:queryname
@SQ	SN:EU239217.1	LN:3212
NS500125:171:H5WMJAFXX:4:21605:21022:14089	16	EU239217.1	2682	5	104S14=32S	*	0	0	TTGTATTGAAAAACTCACTTAGATTTTATATTTTGTTATATTCTAAAAGTTTTATGGTTTTTCATTTTGCATTTGTGTGTATGATTCATTTTGAGTTCATTTTTGAGAAAGGTATAAAGTCTGTGCCTGGATTAATTTTTTTTTTTTTTT	/E<EE<EEEE/<EE	AS:i:14	NM:i:150	ZS:i:10

The quality string is way shorter than the sequence.

@mengyao
Copy link
Owner

mengyao commented Nov 18, 2016

Dear Simon,

I apologize for the error.

It has been fixed. Please clone and try the latest version.

Please let me know, if you find any other problem.

Many thanks,

Mengyao

On Fri, Nov 18, 2016 at 10:08 AM, Simon Frost notifications@github.com
wrote:

I can't process the SAM output from ssw_test with samtools as the
sequence length and quality score are different lengths:

ssw_test -m 1 -x 2 -o 4 -e 3 -f 14 -r -s -h -c ref.fas query.fastq >
query.sam

followed by

samtools view -bS query.sam

gives

[E::sam_parse1] SEQ and QUAL are of different length
[W::sam_read1] parse error at line 3
[bam_flagstat_core] Truncated file? Continue anyway.

The first line of my SAM file is:

@hd VN:1.4 SO:queryname
@sq SN:EU239217.1 LN:3212
NS500125:171:H5WMJAFXX:4:21605:21022:14089 16 EU239217.1 2682 5 104S14=32S * 0 0 TTGTATTGAAAAACTCACTTAGATTTTATATTTTGTTATATTCTAAAAGTTTTATGGTTTTTCATTTTGCATTTGTGTGTATGATTCATTTTGAGTTCATTTTTGAGAAAGGTATAAAGTCTGTGCCTGGATTAATTTTTTTTTTTTTTT /E<EE<EEEE/<EE AS:i:14 NM:i:150 ZS:i:10

The quality string is way shorter than the sequence.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#42,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAlVdIuVMkbaq8R5l02Dts_VrG9Z8A06ks5q_b9ngaJpZM4K2k6T
.

@sdwfrost
Copy link
Author

Almost! It appears that the quality score is one base shorter than the sequence.

@mengyao
Copy link
Owner

mengyao commented Nov 21, 2016

I just made a update. Please have a check.

Sorry for the error.

On Sat, Nov 19, 2016 at 4:32 AM, Simon Frost notifications@github.com
wrote:

Almost! It appears that the quality score is one base shorter than the
sequence.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#42 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAlVdGjuV1XAL7ccvRryq0vjkU6lkZlzks5q_sJAgaJpZM4K2k6T
.

@mengyao mengyao closed this as completed May 24, 2022
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