cell-data-loader 0.0.6__tar.gz → 0.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cell_data_loader
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: Converts general images of cells into formats and labels for deep learning pipelines
5
5
  Project-URL: Homepage, https://github.com/mleming/CellDataLoader
6
6
  Author-email: Matt Leming <mleming@mgh.harvard.edu>
@@ -86,6 +86,20 @@ for label,image in dataloader:
86
86
  ...
87
87
  ~~~
88
88
 
89
+ Boxes
90
+ -----
91
+
92
+ In cases where you need to cut out individual cells from an image and have the coordinates file, cell_data_loader.py accepts an argument, cell_box_filelist, which is a list of files corresponding to the inputs that mark out the coordinates of labels on the cells. The format of the csv is as follows:
93
+
94
+ | X | Y | W | H | Label |
95
+ | - | - | - | - | ----- |
96
+ | 14 | 13 | 5 | 6 | 0 |
97
+ | 20 | 25 | 15 | 5 | 1 |
98
+
99
+
100
+ ~~~python
101
+ dataloader = CellDataloader('/path/to/file.svs',cell_box_filelist=['/path/to/boxfile.csv'])
102
+ ~~~
89
103
 
90
104
  Arguments
91
105
  ---------
@@ -66,6 +66,20 @@ for label,image in dataloader:
66
66
  ...
67
67
  ~~~
68
68
 
69
+ Boxes
70
+ -----
71
+
72
+ In cases where you need to cut out individual cells from an image and have the coordinates file, cell_data_loader.py accepts an argument, cell_box_filelist, which is a list of files corresponding to the inputs that mark out the coordinates of labels on the cells. The format of the csv is as follows:
73
+
74
+ | X | Y | W | H | Label |
75
+ | - | - | - | - | ----- |
76
+ | 14 | 13 | 5 | 6 | 0 |
77
+ | 20 | 25 | 15 | 5 | 1 |
78
+
79
+
80
+ ~~~python
81
+ dataloader = CellDataloader('/path/to/file.svs',cell_box_filelist=['/path/to/boxfile.csv'])
82
+ ~~~
69
83
 
70
84
  Arguments
71
85
  ---------
@@ -2,7 +2,7 @@
2
2
 
3
3
  name = "cell_data_loader"
4
4
 
5
- version = "0.0.6"
5
+ version = "0.0.7"
6
6
 
7
7
  dependencies = [
8
8
  "numpy",
@@ -307,12 +307,6 @@ class CellDataloader():#BaseDataset):
307
307
  self.label_input_format = "Cell_Box_Regex"
308
308
  elif self.cell_box_filelist is not None:
309
309
  assert(len(all_filename_lists) == 1)
310
- if self.image_folders is not None:
311
- raise Exception(" To input cell boxes, files must be "+\
312
- "input individually as a list and not as a folder, "+\
313
- "to ensure one-to-one correspondence between the "+\
314
- "box file and the image. Use the filelists parameter "+\
315
- "instead of the image_folders parameter")
316
310
  if isinstance(self.cell_box_filelist,str): # One image
317
311
  self.cell_box_filelist = [[self.cell_box_filelist]]
318
312
  elif isinstance(self.cell_box_filelist,list):