Hi everyone,
I have been going around a problem lately without success so I am asking for your help.
I have several tomograms reconstructed in EMAN2 (eman 2.31).
tomo1.hdf
tomo2.hdf
tomo3.hdf
tomo4.hdf
tomo5.hdf
with dimensions: 2048 x 2048 x 512
I would like to:
Unstack each of them in 10 section slices in different .hdf files.
For example:
Unstack tomo1.hdf (2048 x 2048 x 512) into 50 stacks (z axis, 512/10=51 stacks). And create 50 .hdf 2D files (these would have the dimensions 2048 x 2048 x 1).
And I would like to do it on the five tomograms on batch.
I have been playing with:
e2proc3d.py stack.hdf indiv.hdf –unstacking
e2proc2d.py --threed2twod
But I could not manage to get the right results.
Thank you in advance.
Best,
Alex Campos
--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2
---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eman2/CAO2cQbtA_820M65YGD%3DYj2MgcUuiJBjh8kxGTF_W7671kX69zA%40mail.gmail.com.
(base) $ for z in 1 ; do e2proc3d.py tomo1.hdf @.hdf --clip=2048,2048,1024,1024,z; done
Traceback (most recent call last):
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/bin/e2proc3d.py", line 890, in <module>
main()
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/bin/e2proc3d.py", line 159, in main
(options, args) = parser.parse_args()
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/optparse.py", line 1387, in parse_args
stop = self._process_args(largs, rargs, values)
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/optparse.py", line 1427, in _process_args
self._process_long_opt(rargs, values)
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/optparse.py", line 1501, in _process_long_opt
option.process(opt, value, values, self)
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/optparse.py", line 785, in process
self.action, self.dest, opt, value, values, parser)
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/optparse.py", line 805, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/site-packages/EMAN2.py", line 617, in intvararg_callback
v = [int(i) for i in value.split(',')]
File "/opt/EMAN2/eman2.9_sphire1.4_sparx/lib/python3.7/site-packages/EMAN2.py", line 617, in <listcomp>
v = [int(i) for i in value.split(',')]
ValueError: invalid literal for int() with base 10: 'z'
In summary, my knowledge on e2proc*.py and my computer/coding skills are not good enough to fully get what you said.. Could you please be more specific so I can follow more what yoou explained?
Thank you in advance, really.
Best,
Alex
To view this discussion on the web visit https://groups.google.com/d/msgid/eman2/2D279739-4084-45A8-BBF8-E9CDE50E6014%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eman2/CAO2cQbs-cymwHKad52eeShZD2E%2B285U3q25gyt8hsV4m1-g67w%40mail.gmail.com.