This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xml.etree.ElementTree as ET | |
| from tifffile import TiffFile | |
| import os | |
| def extract_qptiff_biomarkers(file_path): | |
| """ | |
| Extract biomarker names from a QPTIFF file. | |
| Parameters: | |
| ----------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import zlib | |
| import socket | |
| def d(x): | |
| return bytes.fromhex(x) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import matplotlib.pyplot as plt | |
| from matplotlib.animation import FuncAnimation | |
| from IPython.display import display, HTML | |
| import base64 | |
| def gif_animator(interval=200, repeat=True, figsize=(5, 5), dpi=100): | |
| """ | |
| A generalized decorator that converts ANY plotting function into an | |
| in-line, perfectly-cropped Jupyter GIF animation. |
OlderNewer