Code Monkey home page Code Monkey logo

relionreport's Introduction

relionReport

RelionReport is a tool which generates a report and animation from a given relion 3DClass, Refine3D or InitialModel job. RelionReport aims to give more meaningful output from relion jobs to aid in making processing decisions and presenting processing data. This program was built and tested using Relion 3.1 and ChimeraX 1.1. It may work with other versions, but some versions of Relion have different column names in their data tables which causes errors.

Distribution Graph

Installation

To run relionReport, you need a python environment with glob2, pandas and matplotlib installed. These libraries can be installed with pip or conda.

pip install glob2 pandas matplotlib

conda create --name relionReport glob2 pandas matplotlib

If you wish to create movies using relionReport, you need ChimeraX and ffmpeg installed as well. You must also specify where your ChimeraX executable file is located. To do this, open relionReport.py in a text editor, and modify the line

CHIMERA_PATH = "/Applications/ChimeraX-1.1.1.app/Contents/MacOS/ChimeraX"

Use

To generate a report, execute relionReport.py and pass your job folder in as an argument.

python3 relionReport.py Class3D/job022

This will create a report titled job022.pdf in the current working directory.

To also generate a movie of the job in ChimeraX, add the -m flag to your command.

python3 relionReport.py -m Class3D/job022

This will create a folder titled job022Images in the current working directory, which contains individual frames and the final rendered movie.

Parameters

-i

-i opens the graphs in interactive mode, so you can modify them and save particular views

python3 relionReport.py -i Class3D/job022

-style [style]

-style allows you to specify a matplotlib style to be used when creating the report. The default is seaborn-paper.

python3 relionReport.py -style ggplot Class3D/job022

-v [ChimeraX commands]

-v allows you to specify ChimeraX commands to be executed before saving an image. This gives flexible control over visual style in ChimeraX. The command should be enclosed in quotations and separate commands should be separated by semicolons.

python3 relionReport.py -m -v "lighting flat; set silhouetteWidth 2" Class3D/job022

-s [ChimeraX commands]

-s allows you to specify the parameters for ChimeraX image saving. This gives control over the output resolution, transparency and supersample levels. The command should be enclosed in quotations.

python3 relionReport.py -m -s "supersample 8 width 2048 height 2048 transparentBackground true" Class3D/job022

Other Notes

By default, ChimeraX sets the map levels at sdlevel = 6. This might be too high or too low a level depending on your particular project. To change the level, open relionReport.py in a text editor, and modify the line LEVEL = 6 to your desired sdlevel.

relionreport's People

Contributors

stefan-zukin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.