Skip to content

Instantly share code, notes, and snippets.

View m-albert's full-sized avatar

Marvin Albert m-albert

View GitHub Profile
@m-albert
m-albert / LMM.mrc.mdoc
Created April 6, 2023 10:28
Example SerialEM .mdoc (Titan Krios D3692 at Institut Pasteur)
PixelSpacing = 656.139
Voltage = 300
ImageFile = LMM.mrc
ImageSize = 5064 3976
Montage = 1
DataMode = 1
[T = SerialEM: Titan Krios D3692 at Institut Pasteur 25-Mar-21 16:59:53]
[T = Tilt axis angle = -86.7, binning = 1 spot = 7 camera = 1]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.3.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.3.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.3.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<!DOCTYPE html>
<!-- saved from url=(0080)file:///private/var/folders/fb/ccf_crrx195fclngv32r4xcc0000gq/T/tmp6csdtrjn.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style class="bk" type="text/css">.bk-root{position:relative;width:auto;height:auto;box-sizing:border-box;font-family:Helvetica, Arial, sans-serif;font-size:13px;}.bk-root .bk,.bk-root .bk:before,.bk-root .bk:after{box-sizing:inherit;margin:0;border:0;padding:0;background-image:none;font-family:inherit;font-size:100%;line-height:1.42857143;}.bk-root pre.bk{font-family:Courier, monospace;}.bk-root .bk-logo{margin:5px;position:relative;display:block;background-repeat:no-repeat;}.bk-root .bk-logo.bk-grey{filter:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");filter:gray;-webkit-filter:grayscale(100%);}.bk-ro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@m-albert
m-albert / affine_transform_dask.py
Created October 9, 2020 10:59
Affine transformation for dask arrays: Wrapper around `ndimage.affine_transform`
#!/usr/bin/env python
"""
Affine transformation for dask arrays: Wrapper around `ndimage.affine_transform`
"""
__author__ = "Marvin Albert"
__email__ = "marvin.albert@gmail.com"