joton / reliontomotools

Complementary tools for Relion tomo
MIT License
9 stars 1 forks source link

list out of range #1

Open zottig-x opened 2 years ago

zottig-x commented 2 years ago

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 commented 2 years ago

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.