• 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_decidua.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/decidua/segmentation_data/",
11
        fname + "_segmentation_labels.tiff",
12
    )
13

14

15
data_prep = SegmentationTFRecords(
×
16
    data_dir=os.path.normpath("E:/angelo_lab/data/decidua/image_data"),
17
    cell_table_path=os.path.normpath(
18
        "E:/angelo_lab/data/decidua/"
19
        "Supplementary_table_3_single_cells_updated.csv"
20
    ),
21
    conversion_matrix_path=os.path.normpath(
22
        "E:/angelo_lab/data/decidua/conversion_matrix.csv"
23
    ),
24
    imaging_platform="MIBI",
25
    dataset="decidua_erin",
26
    tissue_type="decidua",
27
    nuclei_channels=["H3"],
28
    membrane_channels=["VIM", "HLAG", "CD3", "CD14", "CD56"],
29
    tile_size=[256, 256],
30
    stride=[240, 240],
31
    tf_record_path=os.path.normpath("E:/angelo_lab/data/decidua"),
32
    normalization_dict_path=os.path.normpath(
33
        "E:/angelo_lab/data/decidua/normalization_dict.json"
34
    ),
35
    selected_markers=[
36
        "CD45", "CD14", "HLADR", "CD11c", "DCSIGN", "CD68", "CD206", "CD163", "CD3", "Ki67", "IDO",
37
        "CD8", "CD4", "CD16", "CD56", "CD57", "SMA", "VIM", "CD31", "CK7", "HLAG", "FoxP3", "PDL1",
38
    ],
39
    normalization_quantile=0.999,
40
    cell_type_key="lineage",
41
    sample_key="Point",
42
    segmentation_naming_convention=naming_convention,
43
    segment_label_key="cell_ID_in_Point",
44
    exclude_background_tiles=True,
45
    img_suffix=".tif",
46
)
47

48
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