-
Download and unzip FIJI, move the
FiJji.app
folder toC:\Users\Public\Downloads\
-
Install BaSiC by following the instructions under the Install via the Fiji Updater section on this page
-
Save the
imagej_basic_ashlar.py
toC:\Users\Public\Downloads\Fiji.app\plugins\
-
Launch command prompt
This file contains 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 os | |
from datetime import datetime | |
dirPath = 'D:\i074_40b_132a' | |
outputFileName = 'i074_40b_132a' | |
fileExt = 'rcpnl' | |
os.chdir(dirPath) | |
files = os.listdir(dirPath) |
This file contains 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 re | |
share_link = 'https://omero.hms.harvard.edu/webgateway/img_detail/559116/?c=-1|3000:45000$0000FF,-2|3000:30000$00FF00,-3|3000:30000$FFFFFF,-4|3000:30000$FF0000,-5|0:65535$0000FF,-6|2000:12000$00FF00,-7|3000:30000$FFFFFF,-8|3000:45000$FF0000,-9|3000:50000$0000FF,-10|2500:10000$00FF00,-11|500:9000$FFFFFF,-12|1500:8000$FF0000,-13|4500:45000$0000FF,-14|1500:10000$00FF00,-15|1000:4500$FFFFFF,-16|2000:10000$FF0000,17|0:65535$0000FF,18|2000:10000$00FF00,19|1500:20000$FFFFFF,20|1500:4500$FF0000,21|0:65535$0000FF,22|1500:30000$00FF00,23|3000:45000$FFFFFF,24|3000:45000$FF0000,-25|4500:55000$0000FF,-26|3000:50000$00FF00,-27|1500:45000$FFFFFF,-28|2500:25000$FF0000,-29|5000:50000$0000FF,-30|1500:4500$00FF00,-31|1000:3000$FFFFFF,-32|1500:9000$FF0000,-33|0:65535$0000FF,-34|3000:30000$00FF00,-35|2000:25000$FFFFFF,-36|3000:25000$FF0000&m=c&p=normal&ia=0&q=0.9&t=1&z=1&zm=3.1291772997934135&x=8244.978640776699&y=5880.1398058252435&maps=[{"inverted":{"enabled":false}},{"inverted":{"enabled":false}},{"inverted":{"enabl |
This file contains 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 numpy as np | |
from matplotlib import colors | |
from matplotlib import pyplot as plt | |
from PIL import Image | |
def composite_channel(target, image, color, range_min, range_max): | |
''' Render _image_ in pseudocolor and composite into _target_ | |
Args: | |
target: Numpy float32 array containing composition target image |
This file contains 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
// Save color hyperstack into individual tiff(4ch) & Montage with Flat-field | |
// 20161210 Jerry Lin | |
myDIR2 = getDirectory("Please enter directory"); | |
myname = getString("Please enter image name","Tonsil1"); | |
cs = getNumber("Enter start cycle:",0); | |
ce = getNumber("Enter end cycle:",12); | |
This file contains 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
from __future__ import division, print_function | |
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt | |
from skimage.feature import match_template | |
import skimage.io | |
def getMatchedSubImg(partialImg, fullImg, debug=False): |
This file contains 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
# @File(label="Select a slide to process") filename | |
# @File(label="Select the output location", style="directory") output_dir | |
# @String(label="Experiment name (base name for output files)") experiment_name | |
# @Integer(label="Rows", value=10) rows | |
# @Integer(label="Columns", value=10) cols | |
# Takes a slide (or other multi-series BioFormats-compatible file set) and | |
# generates flat- and dark-field correction profile images with BaSiC. The | |
# output format is two multi-series TIFF files (one for flat and one for dark) | |
# which is the input format used by Ashlar. |
This file contains 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
from __future__ import print_function | |
import csv | |
from subprocess import call | |
try: | |
import pathlib | |
except ImportError: | |
import pathlib2 as pathlib | |
import argparse | |
import os | |
from ashlar import find_cycle_offset |
-
convert
.rcpnl
file to.ome.tif
using
bfconvert sample.rcpnl sample.ome.tif
-
extract XML from converted
.ome.tif
file using
tiffcomment sample.ome.tif > output_metadata.xml
-
edit
output_metadata.xml
using text editor
This file contains 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
from __future__ import print_function | |
import csv | |
from subprocess import call | |
try: | |
import pathlib | |
except ImportError: | |
import pathlib2 as pathlib | |
import argparse | |
import os | |
from ashlar import reg, thumbnail |
OlderNewer