• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

angelolab / cell_classification / 6002459992

28 Aug 2023 04:33PM UTC coverage: 80.919%. Remained the same
6002459992

push

github

web-flow
Update README.md

574 of 738 branches covered (0.0%)

Branch coverage included in aggregate %.

1398 of 1699 relevant lines covered (82.28%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/cell_classification/prepare_data_script_tonic.py
1
import os
×
2

3
from cell_classification.segmentation_data_prep import SegmentationTFRecords
×
4

5
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
×
6

7

8
def naming_convention(fname):
×
9
    return os.path.join(
×
10
        "E:/angelo_lab/data/TONIC/raw/segmentation_data/deepcell_output",
11
        fname + "_feature_0.tif"
12
    )
13

14

15
data_prep = SegmentationTFRecords(
×
16
    data_dir=os.path.normpath(
17
        "E:/angelo_lab/data/TONIC/raw/image_data/samples"
18
    ),
19
    cell_table_path=os.path.normpath(
20
        "E:/angelo_lab/data/TONIC/raw/" +
21
        "combined_cell_table_normalized_cell_labels_updated.csv"
22
    ),
23
    conversion_matrix_path=os.path.normpath(
24
        "E:/angelo_lab/data/TONIC/raw/TONIC_conversion_matrix.csv"
25
    ),
26
    imaging_platform="MIBI",
27
    dataset="TONIC",
28
    tissue_type="TNBC",
29
    nuclei_channels=["H3K27me3", "H3K9ac"],
30
    membrane_channels=["CD45", "ECAD", "CD14", "CD38", "CK17"],
31
    tile_size=[256, 256],
32
    stride=[240, 240],
33
    tf_record_path=os.path.normpath("E:/angelo_lab/data/TONIC"),
34
    # normalization_dict_path=os.path.normpath(
35
    #   "E:/angelo_lab/data/TONIC/normalization_dict.json"
36
    # ),
37
    normalization_quantile=0.999,
38
    cell_type_key="cell_meta_cluster",
39
    sample_key="fov",
40
    segmentation_fname="cell_segmentation",
41
    segmentation_naming_convention=naming_convention,
42
    segment_label_key="label",
43
    exclude_background_tiles=True,
44
)
45

46
data_prep.make_tf_record()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc