Skip to content

Commit

Permalink
Version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snail123815 authored Feb 18, 2021
1 parent 10bfbcb commit 2b3f3a2
Show file tree
Hide file tree
Showing 10 changed files with 1,340 additions and 0 deletions.
428 changes: 428 additions & 0 deletions extractPicAndMeasure.py

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions extractPicture_PositionsAndInfo.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
CornerSize x y size
TL 128 920 201
TR 1380 808 201
ML 1040 1856 201
MR 1860 1588 201
BL 680 2964 201
BR 1600 2828 201

CentreSize x y size

WidthHeight x1 y1 Width Height

# Include 'removePadding' if you need to remove certain padding
# Only valid under 'WidthHeight' or 'TwoPositions'
removePadding 52 376 2396 3068

TwoPositions x1 y1 x2 y2

# Polygon accepts recorded marco string from imageJ (FIJI) (eg 'makePolygon(852,588,660,1184,1288,1216);')
# 'Plugins' -> 'Marcos' -> 'Record...'
Polygon makePolygon();

END_POSITION # Location parse will stop here. DO NOT DELETE THIS LINE

# measure in ['centreDisk', 'square', 'polygon']
# colour will be default if empty
# Order will be kept in plotting
# You can add any column you like, but keep 'measure' and 'colour'
sampleInfo strain measure colour
TL A_c centreDisk firebrick
BR A_x centreDisk tomato
TR A_y centreDisk lightsalmon
BL B_c centreDisk darkblue
MR B_x centreDisk royalblue
ML B_y centreDisk lightsteelblue

END_INFO # DO NOT DELETE THIS LINE
6 changes: 6 additions & 0 deletions funcs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .parseMetadata import getInfo, getPositions, getPosToCrop
from .changeName import changeFileName, getScanTime, determinePrefixExtension, determineExtension
from .misc import createFolders
from .measureImages import measureImgs
from .plotting import plotMeasured
from .crop import crop
Loading

0 comments on commit 2b3f3a2

Please sign in to comment.