Generating Numbers of Images with Stored Orientations #73
Replies: 4 comments 5 replies
-
Hi @david-yw-t Sure, if you want to do this you could use something like this:
This will generate 10 images of an apoferritin particle with random orientations. You can just set num_images to 10000 and that will generate more random orientations. You can run this with the following commands:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks for your help!
Kind regards,
David
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: James Parkhurst ***@***.***>
Sent: Wednesday, August 28, 2024 2:07:27 PM
To: rosalindfranklininstitute/parakeet ***@***.***>
Cc: david-yw-t ***@***.***>; Mention ***@***.***>
Subject: Re: [rosalindfranklininstitute/parakeet] Generating Numbers of Images with Stored Orientations (Discussion #73)
Hi. Just to let you know that I have added a new tag v0.5.3 which I think fixes this issue. Let me know if you have any other issues!
—
Reply to this email directly, view it on GitHub<#73 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANPPIK2U3C4Q6SY4BANP3OLZTW4P7AVCNFSM6AAAAABM7YHBI6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBXGQ2TANY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I've been trying to get the generated images at given rotations to match up with my own python code. Strangely, if I set the scan mode to tilt_series, and try rotations around axes (1,0,0),(0,1,0),(0,0,1) I can get everything to match up. But when I switch to single_particle, the rotations don't match up. Is there a way to export rotation vectors directly, so I can debug? |
Beta Was this translation helpful? Give feedback.
-
Hi. Looks like there was a bug. The Euler angles were being generated randomly without reference to the image file. This is why it worked for the tilt series but not single particle scan. I've changed the parakeet.metadata.export command as follows:
This will take the scan from the image metadata directly. Currently I only export a subset of the metadata to the .mrc files due to limitations with that file format so to do this properly requires the .h5 for the moment. I will look at improving the metadata export for mrc though! I've added a new tag v0.5.4 so try using that version. You can get the rotation vectors directory from the h5 files as follows:
Thanks for highlighting the issues you've found! Let me know if you find anything else! |
Beta Was this translation helpful? Give feedback.
-
I’m looking to generate large number (for example 10,000 images) of a PDB file at random orientations and also store the orientations for each image. Could you advise on the most efficient way to achieve this using Parakeet?
Beta Was this translation helpful? Give feedback.
All reactions