crop_single_object_fast.Rd 2.8 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/auto_crop_fast.R
\name{crop_single_object_fast}
\alias{crop_single_object_fast}
\title{crop_single_object_fast}
\usage{
crop_single_object_fast(
  retained,
  OOI_final,
  counter_final,
  img_orig,
  img_orig_foci,
13
  img_orig_DAPI = "blank",
14
15
  file_dna,
  file_foci,
16
  file_DAPI = "blank",
17
18
19
20
21
22
23
  cell_count,
  mean_pix,
  annotation,
  file_base,
  img_path,
  r_max,
  cx,
24
25
26
27
28
  cy,
  channel3_string,
  channel2_string,
  channel1_string,
  file_ext,
29
  third_channel,
30
31
  path_out,
  img_orig_highres,
32
  resize_l,
33
34
  crowded_cells,
  cropping_factor
35
36
37
)
}
\arguments{
38
39
\item{retained}{Mask of cell candidates which meet size criteria.
After smoothing/smudging and thresholding.}
40

41
42
\item{OOI_final, }{Objects of interest count. Total number of cell
candidates in retained.}
43

44
45
\item{counter_final, }{Counter for single cell we are focussing on. Remove
all other cells where counter_single not equal to counter_final.}
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

\item{img_orig, }{description}

\item{img_orig_foci, }{description}

\item{img_orig_DAPI, }{description}

\item{file_dna, }{filename of dna channel image}

\item{file_foci, }{filename of foci channel image}

\item{file_DAPI, }{filename of DAPI channel image}

\item{cell_count, }{counter for successful crops around cells}

61
62
\item{mean_pix, }{Mean pixel intensity of cell crop (in SYCP3 channel)
for normalisation}
63
64
65

\item{annotation, }{Choice to output pipeline choices (recommended to knit)}

66
67
\item{file_base, }{filename base common to all three channels
i.e. without -MLH3.jpeg etc.}
68
69
70
71
72
73
74
75

\item{img_path, }{path containing image data to analyse}

\item{r_max}{maximum radius of blob for cropping}

\item{cx}{centre of blob x}

\item{cy}{centre of blob y}
76

77
78
79
\item{channel3_string}{Optional. String appended to the files showing the
channel illuminating cell structures. Defaults to DAPI,
if third channel == "on".}
80

81
82
\item{channel2_string}{String appended to the files showing the channel
illuminating synaptonemal complexes. Defaults to SYCP3}
83

84
85
\item{channel1_string}{String appended to the files showing the channel
illuminating foci. Defaults to MLH3}
86
87
88
89

\item{file_ext}{file extension of your images e.g. tif jpeg or png.}

\item{third_channel}{Optional, defaults to "off".}
90
91

\item{path_out, }{user specified output path. Defaults to img_path}
92
93
94
95

\item{img_orig_highres}{the original strand image with original resolution}

\item{resize_l}{length of square to resize original image to.}
96
97
98

\item{crowded_cells}{TRUE or FALSE, defaults to FALSE. Set to TRUE if you
have many cells in a frame that almost touch}
99
100
101
102

\item{cropping_factor}{size of cropping window square, as factor of
characteristic blob radius. Defaults to 1. May need to increase if using
watershed.}
103
104
105
106
107
108
109
}
\value{
Crops around all candidates in both channels
}
\description{
Creates mask for every individual cell candidate in mask
}