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

Analyzing primers for their specificity... IndexError: string index out of range #29

Open
ARVINDEN opened this issue Dec 28, 2021 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@ARVINDEN
Copy link

Hi,
I am trying to read from draft file and trying to make multiplex primer with -blast option but failed in checking for checking non specific region step, I have pasted error message below, please help me resolve this error.

Reading input file...
Total number of input point regions: 5627
Number of unique input point regions: 5627
Reading file with draft primers and checking them for interactions...
Number of primer pairs from draft file: 65535
That do not form secondary structures: 65535
Getting positions that uncovered by draft primers...
Total number of uncovered positions: 0
Analyzing primers for their specificity...
Running BWA...
Processing SAM-file...
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
File "/NGS-PrimerPlex/NGS_primerplex.py", line 3291, in
args.maxNonSpecLen,args.maxPrimerNonspec,False,'',args.blastNum)
File "/NGS-PrimerPlex/NGS_primerplex.py", line 1310, in checkPrimersSpecificity
res=res.get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/NGS-PrimerPlex/NGS_primerplex.py", line 1543, in readBwaFile
regionSeq[-2]==primerSeq[-2]):
IndexError: string index out of range

@aakechin
Copy link
Owner

@ARVINDEN Thank you for the question and sorry for such a delay with an answer. I think the problem may be with the BWA. Possibly it was terminated due to low memory with a "Segmentation fault" error, and this type of error cannot be caught. Could you check your SAM-file with less?

@aakechin aakechin added the question Further information is requested label Jan 20, 2022
@realgoldace
Copy link

Dear Dr.aakechin:
I met the same problem too, and I got '' # Total number of constructed primers: 46355395

Total number of different constructed primers: 502178

Analyzing primers for their specificity...
Running BWA...
Processing SAM-file...
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
0.05%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
1.76%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
2.43%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
[E::fai_retrieve] Failed to retrieve block: unexpected end of file
2.58%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
2.59%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
2.65%[E::fai_retrieve] Failed to retrieve block: unexpected end of file
2.69%Traceback (most recent call last):
File "NGS_primerplex.py", line 3291, in
args.maxNonSpecLen,args.maxPrimerNonspec,False,'',args.blastNum)
File "NGS_primerplex.py", line 1310, in checkPrimersSpecificity
res=res.get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "NGS_primerplex.py", line 1543, in readBwaFile
regionSeq[-2]==primerSeq[-2]):
IndexError: string index out of range", I suspected the Integrity of the sam file, however by running "samtools quickcheck .bwa.sam", I got no output.

@realgoldace
Copy link

When the input bed region was big, and the designed primer number excess 1 million, this error seems to be always occured, could there be any advices? thank you very much!

@aakechin
Copy link
Owner

aakechin commented Jun 5, 2023

@realgoldace Thank you for the question. Did you use the last version of the NGS-PrimerPlex? Some bugs were fixed since 2022. And which NGS-PrimerPlex version (gui or command-line, with or without docker) and with which OS did you use the program? And what was the reference genome?

@aakechin aakechin reopened this Jun 5, 2023
@realgoldace
Copy link

realgoldace commented Jun 5, 2023 via email

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

No branches or pull requests

3 participants