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

list out of range #1

Open
zottig-x opened this issue Oct 4, 2022 · 1 comment
Open

list out of range #1

zottig-x opened this issue Oct 4, 2022 · 1 comment

Comments

@zottig-x
Copy link

zottig-x commented Oct 4, 2022

Hi,

I have been trying to convert my warp files using reliontomotools and I keep having the following error:

Traceback` (most recent call last):
File "/groups/zottigx/.conda/envs/reliontomotools/bin/warptomo2relion", line 8, in
sys.exit(warpTomo2RelionProgram())
File "/groups/zottigx/.conda/envs/reliontomotools/lib/python3.9/site-packages/reliontomotools/warptomo2relion.py", line 527, in warpTomo2RelionProgram
xmlNums = np.array([int(re.findall(f'{tnTmpl}\d+', name)[0][p:])
File "/groups/zottigx/.conda/envs/reliontomotools/lib/python3.9/site-packages/reliontomotools/warptomo2relion.py", line 527, in
xmlNums = np.array([int(re.findall(f'{tnTmpl}\d+', name)[0][p:])
IndexError: list index out of range

*It seems that there is some empty list
*I have tried different inputs and syntax but I can't figure out what is wrong

The command line I am using is

warptomo2relion -i 'frames/TS.mrc.xml' -s 'frames/imod/TS.mrc/TS.mrc.st' -d 1800 -o warp_converted

Should the -i point to the stack or the frames .xml file? I have tried both none worked.

Can the -o be un mrc.st file? Again I have tried both (.mrc and .mrc.st) none worked.

Thank you!

@jacob-r-anderson
Copy link

jacob-r-anderson commented Nov 6, 2022

If you run warptomo2relion --help, I think it helps quite a bit. I was able to get it to work by changing --tn to a string matching my data.

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