-
Notifications
You must be signed in to change notification settings - Fork 15
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
"xmipp_transform_mask" & "xmipp_transform_filter" save wrong wedge mask #225
Comments
thanks for reporting this issue. Thanks |
Hi @DStrelak , |
Hi @DStrelak |
Dear MohamadHarastani, Thanks for getting in touch with us. The right command is the second one, it means: xmipp_transform_filter -i volume.vol -o filtered.vol --fourier wedge -60 60 --save filter.vol The --fourier wedge -60 60 means that the information or data are between the tilt angles -60 to 60 degrees. So the missing wedged is a cone of angle 60º or 30 if you measure the angle between the axis and the generatrix. This command present two outputs: 1) The filtered map -o filtered.vol, provides the output filtered map as you pointed out. 2) The applied filter. The missing wedge is applied in Fourier space, and because of the Hermitic symmetry, the half of this space can be removed, because the information is redundant (complex conjugate values). For that reason the filter has the half dimensions than your original map. I checked the command with a map, and the filter looks correct in Fourier space. Do you need the filtered for any reason? Anything else, please let me know Kind regards Vilas |
Dear @Vilax |
Dear @MohamadHarastani , If you want to apply a missing wedge to many maps, I recommend you to write a shell script with the command xmipp_transform_filter -i volume.vol -o filtered.vol --fourier wedge -60 60 Xmipp (please someone correct me if I'm wrong) does not allow to take a binary file as input and directly applied in Fourier space as a mask. In other words, all mask you can applied in command line only work in real space. The solution I give you, it means, write an script that launches the command for all volumes, is perhaps not the most efficient, but I'm sure you can do it is short computational times. Anything you need, do not hesitate to ask Kind regards Vilas |
Thank you, Vilas, for jumping on this. Your description is accurate. |
Dear @Vilax and @cossorzano In summary, things are more clear, but there are two issues that need attention: I sincerely appreciate all your time and efforts |
Dear @MohamadHarastani note that the mask in xmipp_volume_align is meant to be a real space mask which is not what you want. To align two volumes using a wedge mask in Fourier, we only have the Fourier based algorithm that was published in Y. Chen, S. Pfeffer, J.J. Fernandez, C.O.S. Sorzano, F. Foerster. Autofocused 3D Classification of cryo-electron subtomograms. Structure, 22: 1528-1537 (2014). The way to call it is rather involved and you can see an example in https://github.com/I2PC/xmipp/blob/devel/src/xmipp/libraries/parallel/mpi_classify_CLTomo_prog.cpp. This algorithm performs a global search of the alignment parameters, which in a context of normal modes I am not sure that is what you need. You may rather use xmipp_transform_filter as in xmipp_transform_filter -i myvolume.vol -o myFilteredVolume.vol --fourier wedge -60 60 I have just checked that it works and seems to produce the appropriate filter. |
Dear @cossorzano |
Hello,
I need to generate a missing wedge filter (I need the filter itself). I tried these functions "xmipp_transform_mask" and "xmipp_transform_filter". Both are giving strange results for the mask. Here are the commands I used:
xmipp_transform_mask -i volume.vol -o mask.vol --mask wedge -60 60
xmipp_transform_filter -i volume.vol -o filtered.vol --fourier wedge -60 60 --save filter.vol
The first command gives a box in the same size as the input but is not a wedge filter.
The second command gives a volume of different size of the input (my input is of size 64 64 64, and it gives a mask of size 33 64 64). The generated volume has two separate triangular prisms, that does not correspond to a -60 to 60 wedge, although the filtered volume (applying the wedge) seems to be correct somehow.
Any idea? if not, is there another function to generate a correct missing wedge?
Thanks
The text was updated successfully, but these errors were encountered: