Offline manual filtering of cryosparc particle stacks: how to export and re-import post-filtering

Hi all
I want to try a manual filtering idea I have for a particle stack that leverages the alignment information. I have written a script that allows me to take a .cs file and filter out particles using my filter; i can then re-compile the .cs file. What i am unsure about is how to import this information back into cryosparc so that i can use just these particles? I have not been able to figure out the correct way to export this information, and as importantly, to re-import it in a useable format.

I was thinking i could:
-export the particle group from a refinement,
-apply my filter to the .cs file and re-compile it as .cs.
-amend the .csg file to reflect the eqvuialent number of particles post filter
-run the import particles job, point to the source exposures, point to the extraction data path, and the updated metadata file (im guessing .cs?).

I figure this would then import only particles corresponding to the post-filtered list as a stack?
Surely there is a way to do this as this kind of thing is fairly common and simple in relion. Worst case i could always shift to that platform!

Has anyone done this?

@jimhbean Have you considered implementing the particle filter in cryosparc-tools? At the link, you will also find some examples related to particle curation, like this one.

I have not seen this before, but it looks like what i need! ill give it a thorough investigation tomorrow thanks so much for the reply :slight_smile: