I2PC / scipion

Scipion is an image processing framework to obtain 3D models of macromolecular complexes using Electron Microscopy (3DEM)
http://scipion.i2pc.es
Other
76 stars 47 forks source link

particles.star from relion export particles not compatible with pyem #2024

Closed andreanans closed 5 years ago

andreanans commented 5 years ago

Hi,

I noticed that the star file written out by 'relion export particles' is incompatible with the pyem scripts. I have to pass the star file through relion_star_handler to produce a star file in the correct format.

We often run this command: csparc2star.py --copy-micrograph-coordinates particles.star particles_selected.cs final_particles.star

and get the following error:

File "pandas/_libs/parsers.pyx", line 545, in pandas._libs.parsers.TextReader.cinit pandas.errors.EmptyDataError: No columns to parse from file

I think it's something to do with the delimiter but I have no clue how to fix it other than running relion_star_handler and removing a column to reformat the file.

Any ideas?

pconesa commented 5 years ago

Hi @andreanans , if you are running Scipion 2.0, we have released a plugin to send jobs to cryosparc:

2D classification, ab-initio, and refinement (uniform and non-uniform)....

All of them import the particles into cryosparc so you can: 1.- use those methods and stay in scipion for further processing. 2.- If you want other jobs not yet implemented.....you can kick off one of them and you will have a workspace with the particles in cryosparc.

Probably we can add a "export to cs" to export particles, volumes ....as we are already doing now, but this is not done yet.

delarosatrevin commented 5 years ago

Pablo, in any case would be good to take a look a this incompatibility issue.

On Wed, Jul 17, 2019, 12:08 PM Pablo Conesa notifications@github.com wrote:

Hi @andreanans https://github.com/andreanans , if you are running Scipion 2.0, we have released a plugin to send jobs to cryosparc:

2D classification, ab-initio, and refinement (uniform and non-uniform)....

All of them import the particles into cryosparc so you can: 1.- use those methods and stay in scipion fot further processing. 2.- If you want other jobs not yet implemented.....you can kick off one of them and you will have a workspace with the particles in cryosparc.

Probably we can add a "export to cs" to export particles, volumes ....as we are already doing now, but this is not done yet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/I2PC/scipion/issues/2024?email_source=notifications&email_token=ACAM6WHBEP2V2JTMVBX2Y3DP73VSLA5CNFSM4IEOKYPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DWYHY#issuecomment-512191519, or mute the thread https://github.com/notifications/unsubscribe-auth/ACAM6WEN55PCZKHZ42YMP3LP73VSLANCNFSM4IEOKYPA .

andreanans commented 5 years ago

Hi guys,

Thanks very much for the comments. I'll be sure to test the new plugin.

Just to clarify, we're having issues when going back to Scipion from cryosparc. As you probably know, some metadata is not preserved in those .cs files from cryosparc. If we want to generate a star file containing the original micrograph coordinates (for particle re-extraction) we must source our original star file from Scipion using the --copy-micrograph-coordinates flag. For some reason the scripts cannot read this star file unless I run it through relion_star_handler.

Another side note, in previous versions of scipion (1.1 or 1.2?) when you ran a particle extraction job it wrote out a star file automatically. This star file works fine with the script so I wonder if you could compare the two different files and see if the delimiter has changed somehow?

I hope this makes sense!!

pconesa commented 5 years ago

@delarosatrevin sure, I was just trying to give a workaround (if possible), but yes, something to look at.

@andreanans thanks for the tip....

I wish I could transfer this to scipion-em-relion repo.

pconesa commented 5 years ago

Added to relion repo.