Differences between revisions 1 and 18 (spanning 17 versions)
Revision 1 as of 2013-05-22 14:50:06
Size: 758
Editor: SteveLudtke
Comment:
Revision 18 as of 2013-08-11 21:15:44
Size: 3885
Editor: SteveLudtke
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Metadata Stored in the ''info'' Folder == == Metadata Stored in JSON files ==
Line 3: Line 3:
The ''info'' folder is a replacement for the BDB-based ''EMAN2DB'' folder in the project directory. All information is stored in human-readable and editable JSON files with a ''.js'' extension. === JSON files in the info folder ===
JSON files are human-readable and editable text files, which are also software-friendly. This is rapidly becoming one of the most common formats used in the web-development community. They have a '.json' extension, and can be opened in any text-editor.
Line 5: Line 6:
==== quality.js ====
This file stores user-assigned quality values per-micrograph. The key is the 'basename' of the image file, so the value can propegate through all stages of processing. That is, a file named ''micrographs/jj1234.mrc'' would use the key ''jj1234''. Quality values run from 0-9 and may be used in any way the user prefers. They have no absolute meaning to any of the processing software, though there are places where higher will be assumed to indicate ''better'' images by whatever standard.
For more information on these files and accessing them in EMAN2, see [[Eman2JSStorage]].

While these files are human-readable, using the "Info" button in the EMAN2 file browser will give a much more convenient way to look at the contents of these files.

If you have a micrograph called, for example, ''micrographs/DC19873.hdf'', and have processed it with EMAN2, you will end up with other derived image files, such as ''particles/DC19873_ptcls.hdf'' and ''particles/DC19873__ctf_flip.hdf'', etc. Any information which needs to be stored about the micrograph as a whole, will be stored in ''info/DC19873_info.json''. If you wish to copy micrographs from one project to another, all you need to do is copy the image file(s) and this JSON file to the info/ folder in the new project.

==== project.json ====
This file contains overall project parameters, such as A/pix, voltage, mass, etc.

||Parameter||Description||
||global.apix||A/pixel value for this project. Generally speaking, if you want to downsample/rescale your data, you should do this in a separate project.||
||global.microscope_voltage||Default microscope voltage in kV when running CTF fitting and micrograph evaluation programs. While it is technically possible to combine data from multiple micrographs in a single project, it is not usually a good idea. If you are thinking about doing this you may wish to ask us about it first.||
||global.microscope_cs||Default Cs value in mm when running CTF fitting and micrograph evaluation programs.||
||global.particle_mass||The default mass of the particle being reconstructed in kDa. Clearly in some cases (assemblies in various stages of assembly, etc.) there will not be a single value for this. This value is primarily used as a default, and is really only used for setting reasonable isosurfaces in any case, so such situations should not really be a problem||
||project_icon||Used by the GUI||
||project_name||For recordkeeping purposes||

==== notebook.json ====
This is where the projectmanager stores the text entered in the 'lab notebook'.

==== <micrograph>_info.json ====
Per micorgraph information is stored in one file for each micrograph. This allows easy copying of micrographs with their metadata between projects. While there is, of course, metadata in the image headers, THIS metadata is not stored in the header because the information, such as CTF information, is associated with multiple image files, including the micrograph itself, as well as particle stacks, etc.

||Parameter||Description||
||boxes||The list of particle locations in the micrograph from e2boxer.py||
||boxes_tilted||The list of particle locations in the micrograph from e2boxer.py||
||boxes_untilted||The list of particle locations in the micrograph from e2boxer.py||
||ctf||A list of CTF related objects: [EMAN2CTF instance,signal 1D,background 1D,signal 2D, background 2D] computed from particles, not the overall frame ||
||ctf_frame||A list of CTF related objects associated with the whole frame: [box size,EMAN2CTF instance,box coord,set of excluded boxnums]||
||quality||A single integer from 0-9. No predefined meaning, though 5 is the default value, and larger should be interpreted as better. This is to permit qualitative assessement by the user at various stages of analysis.||
||sets||A dicitionary containing lists of integers keyed by set name||
|| || ''bad_particles'' - Particle numbers which have been determined to be 'bad'. The 'bad' particles may optionally be excluded when building sets||

Metadata Stored in JSON files

JSON files in the info folder

JSON files are human-readable and editable text files, which are also software-friendly. This is rapidly becoming one of the most common formats used in the web-development community. They have a '.json' extension, and can be opened in any text-editor.

For more information on these files and accessing them in EMAN2, see Eman2JSStorage.

While these files are human-readable, using the "Info" button in the EMAN2 file browser will give a much more convenient way to look at the contents of these files.

If you have a micrograph called, for example, micrographs/DC19873.hdf, and have processed it with EMAN2, you will end up with other derived image files, such as particles/DC19873_ptcls.hdf and particles/DC19873ctf_flip.hdf, etc. Any information which needs to be stored about the micrograph as a whole, will be stored in info/DC19873_info.json. If you wish to copy micrographs from one project to another, all you need to do is copy the image file(s) and this JSON file to the info/ folder in the new project.

project.json

This file contains overall project parameters, such as A/pix, voltage, mass, etc.

Parameter

Description

global.apix

A/pixel value for this project. Generally speaking, if you want to downsample/rescale your data, you should do this in a separate project.

global.microscope_voltage

Default microscope voltage in kV when running CTF fitting and micrograph evaluation programs. While it is technically possible to combine data from multiple micrographs in a single project, it is not usually a good idea. If you are thinking about doing this you may wish to ask us about it first.

global.microscope_cs

Default Cs value in mm when running CTF fitting and micrograph evaluation programs.

global.particle_mass

The default mass of the particle being reconstructed in kDa. Clearly in some cases (assemblies in various stages of assembly, etc.) there will not be a single value for this. This value is primarily used as a default, and is really only used for setting reasonable isosurfaces in any case, so such situations should not really be a problem

project_icon

Used by the GUI

project_name

For recordkeeping purposes

notebook.json

This is where the projectmanager stores the text entered in the 'lab notebook'.

<micrograph>_info.json

Per micorgraph information is stored in one file for each micrograph. This allows easy copying of micrographs with their metadata between projects. While there is, of course, metadata in the image headers, THIS metadata is not stored in the header because the information, such as CTF information, is associated with multiple image files, including the micrograph itself, as well as particle stacks, etc.

Parameter

Description

boxes

The list of particle locations in the micrograph from e2boxer.py

boxes_tilted

The list of particle locations in the micrograph from e2boxer.py

boxes_untilted

The list of particle locations in the micrograph from e2boxer.py

ctf

A list of CTF related objects: [EMAN2CTF instance,signal 1D,background 1D,signal 2D, background 2D] computed from particles, not the overall frame

ctf_frame

A list of CTF related objects associated with the whole frame: [box size,EMAN2CTF instance,box coord,set of excluded boxnums]

quality

A single integer from 0-9. No predefined meaning, though 5 is the default value, and larger should be interpreted as better. This is to permit qualitative assessement by the user at various stages of analysis.

sets

A dicitionary containing lists of integers keyed by set name

bad_particles - Particle numbers which have been determined to be 'bad'. The 'bad' particles may optionally be excluded when building sets

Eman2InfoMetadata (last edited 2019-07-31 22:17:45 by MuyuanChen)