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

count_spacer.py : ValueError: Sequence and quality captions differ #7

Open
geng-lee opened this issue Aug 15, 2021 · 2 comments
Open

Comments

@geng-lee
Copy link

Hi,

I recently wanted to use your count_spacer.py script but ran into and issue:

python count_spacers.py -i lib.csv -f result/merge/lib.fq.gz -no-g -o result/count_spacers/

Traceback (most recent call last):
File "count_spacers.py", line 115, in
count_spacers(args.input_file, args.fastq_file, args.output_file, args.guide_g)
File "count_spacers.py", line 49, in count_spacers
for record in readiter: #contains the seq and Qscore etc.
File "/backup/home/changxing/anaconda3/envs/CRISPR/lib/python2.7/site-packages/Bio/SeqIO/init.py", line 611, in parse
for r in i:
File "/backup/home/changxing/anaconda3/envs/CRISPR/lib/python2.7/site-packages/Bio/SeqIO/QualityIO.py", line 1033, in FastqPhredIterator
for title_line, seq_string, quality_string in FastqGeneralIterator(handle):
File "/backup/home/changxing/anaconda3/envs/CRISPR/lib/python2.7/site-packages/Bio/SeqIO/QualityIO.py", line 923, in FastqGeneralIterator
raise ValueError("Sequence and quality captions differ.")
ValueError: Sequence and quality captions differ.`

Best Wishes

@geng-lee
Copy link
Author

What does library_sequences.csv file content look like, and can you provide a sample file.

@wangjianparis
Copy link

What does library_sequences.csv file content look like, and can you provide a sample file.
Biopython works in py3. Transform this script into py3 and put capitalized guide seq in col1

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