MCPcopy Create free account

hub / github.com/PathologyDataScience/HiPS / functions

Functions112 in github.com/PathologyDataScience/HiPS

↓ 8 callersMethod_keep_and_rename_columns_from_df
(df, colmap)
hips/SlideFeatureExtractor.py:2068
↓ 7 callersMethod_get_nuclei_props_subset_for_superclasses
( self, nuclei_metas, nuclei_props, prefix="", include_substrings=("",
hips/SlideFeatureExtractor.py:1911
↓ 4 callersMethod_get_df_mean_and_std
(df)
hips/SlideFeatureExtractor.py:2058
↓ 3 callersMethod_get_coords_from_tilename
(name: str)
hips/HistomicFeatWSIVisualizer.py:67
↓ 3 callersMethodcalculate_unnormalized
Calculate unnormalized Ripley's K function. Notes ----- [1] Center vs Surround ... other_data is CENTER, self._tr
hips/RipleysK.py:107
↓ 3 callersMethodmaybe_normalize
Maybe normalize K values to Complete Spatial Randomness (CSR), center to zero, and/or make them have a unit variance. If we
hips/RipleysK.py:153
↓ 2 callersMethod_fix_and_move_identifier_columns
(df: DataFrame)
hips/SlideFeatureExtractor.py:1184
↓ 2 callersMethod_get_features_from_roi
(self, roi_meta, nuclei_metas, nuclei_props)
hips/SlideFeatureExtractor.py:1658
↓ 2 callersMethod_read_roi_data
(self, roiname, base_mpp=None)
hips/SlideFeatureExtractor.py:2120
↓ 2 callersMethod_slidename_not_in_df_index
Check if slidename is not in the index of a dataframe.
hips/SlideFeatureExtractor.py:1614
↓ 2 callersMethodextract_nuclear_features
(self, emode: str)
hips/SlideFeatureExtractor.py:2249
↓ 2 callersMethodmaybe_extract_global_nuclei_features
Get summary of features from one ROI.
hips/SlideFeatureExtractor.py:1467
↓ 2 callersMethodmaybe_extract_roi_feature_summaries
(self)
hips/SlideFeatureExtractor.py:1488
↓ 1 callersMethod_adjust_nuclei_metas_coords
(self, nuclei_metas, roi_meta, base_mpp)
hips/SlideFeatureExtractor.py:2158
↓ 1 callersMethod_aggregate_roi_metas
(roi_metas)
hips/SlideFeatureExtractor.py:1540
↓ 1 callersMethod_calculate_collagen_edge_regionprops
(self, collagen_edges: DataFrame)
hips/SlideFeatureExtractor.py:388
↓ 1 callersMethod_calculate_collagen_fibril_entropy
Calculate entropy in collagen fiber length & direction. See: Li H, et al. Collagen fiber orientation disorder from H&E images is
hips/SlideFeatureExtractor.py:296
↓ 1 callersMethod_calculate_collagen_intensity_features
(collagen_grayscale: np.ndarray)
hips/SlideFeatureExtractor.py:418
↓ 1 callersMethod_calculate_features_for_this_roi
( self, rgb: Image.Image, stroma_semantic: np.ndarray, )
hips/SlideFeatureExtractor.py:257
↓ 1 callersMethod_calculate_stromal_cellularity_features
( self, stroma_semantic: np.ndarray, total: int = None, )
hips/SlideFeatureExtractor.py:430
↓ 1 callersMethod_centroids_to_bounds
Convert from x, y centroids to xmin, ymin, xmax, ymax.
hips/RipleysK.py:308
↓ 1 callersMethod_concat_data_from_all_rois
(self)
hips/SlideFeatureExtractor.py:1515
↓ 1 callersMethod_create_directory_structure
(self)
hips/SlideFeatureExtractor.py:2323
↓ 1 callersMethod_extract_collagen_features_for_slide
Run extra feature extraction (eg collagen entropy) for a single slide.
hips/SlideFeatureExtractor.py:2263
↓ 1 callersMethod_extract_features_aware_of_center_or_surround
Extract features aware of center (self) and surrounding neighborhood for all distinct tissue region objects.
hips/SlideFeatureExtractor.py:847
↓ 1 callersMethod_extract_features_aware_of_cs_for_region_object
Extract features aware of center (self) and surrounding neighborhood for a single distinct tissue region object. Parameters
hips/SlideFeatureExtractor.py:871
↓ 1 callersMethod_extract_features_per_region_object
(self)
hips/SlideFeatureExtractor.py:821
↓ 1 callersMethod_extract_morphology_for_region_class
Extract morphology of tissue regions belonging to a class.
hips/SlideFeatureExtractor.py:1135
↓ 1 callersMethod_extract_nuclear_features_for_slide
Run nuclear feature extraction for a single slide.
hips/SlideFeatureExtractor.py:2300
↓ 1 callersMethod_extract_region_features_for_slide
Run nuclear feature extraction for a single slide.
hips/SlideFeatureExtractor.py:2285
↓ 1 callersMethod_extract_region_morphology
Extract morhology of each distinct tissue region in the slide.
hips/SlideFeatureExtractor.py:1123
↓ 1 callersMethod_fetch_roi_rgb
(self, wsi_base_coords: Dict)
hips/SlideFeatureExtractor.py:529
↓ 1 callersMethod_get_besag_correction_terms
Get boundary correction terms for data.
hips/RipleysK.py:242
↓ 1 callersMethod_get_epithelial_atypia
(self, nuclei_metas)
hips/SlideFeatureExtractor.py:1940
↓ 1 callersMethod_get_fibroblast_activation
(self, nuclei_metas)
hips/SlideFeatureExtractor.py:1984
↓ 1 callersMethod_get_kdtree_for_nucleus_superclass
(self, metas, superclass)
hips/SlideFeatureExtractor.py:2089
↓ 1 callersMethod_get_n_neighbors
(self, data, radius)
hips/RipleysK.py:233
↓ 1 callersMethod_get_nuclear_ripleyk_self_vs_other
(self, nuclei_graphs)
hips/SlideFeatureExtractor.py:1846
↓ 1 callersMethod_get_nuclear_ripleyk_self_vs_self
(self, nuclei_graphs)
hips/SlideFeatureExtractor.py:1882
↓ 1 callersMethod_get_nuclei_counts
(self, roi_meta)
hips/SlideFeatureExtractor.py:2022
↓ 1 callersMethod_get_objects_from_binmask
Get cleaned up connected components from a binary mask.
hips/SlideFeatureExtractor.py:1202
↓ 1 callersMethod_get_orientation_entropies
( self, nuclei_metas, orientations, nuclei_graphs )
hips/SlideFeatureExtractor.py:1791
↓ 1 callersMethod_get_region_areas
(self, roi_meta)
hips/SlideFeatureExtractor.py:2033
↓ 1 callersMethod_get_saliency
(self, roi_meta)
hips/SlideFeatureExtractor.py:2047
↓ 1 callersMethod_get_superclass_orientation
( self, nuclei_metas, orientations, nuclei_graphs, superclass )
hips/SlideFeatureExtractor.py:1805
↓ 1 callersMethod_get_tils_activation
(self, nuclei_metas)
hips/SlideFeatureExtractor.py:1956
↓ 1 callersMethod_get_tils_score_variants
(self, roi_meta)
hips/SlideFeatureExtractor.py:2012
↓ 1 callersMethod_isolate_collagen_fibers
(rgb: Image.Image, stromal_matrix: np.ndarray)
hips/SlideFeatureExtractor.py:446
↓ 1 callersMethod_isolate_stromal_components
(self, tile_info: Dict)
hips/SlideFeatureExtractor.py:561
↓ 1 callersMethod_load_or_extract_collagen_features_for_all_rois
(self)
hips/SlideFeatureExtractor.py:132
↓ 1 callersMethod_load_or_extract_roi_feature_summaries
Returns ------- DataFrame Dataframe of features where rows are the roi names and columns are the colu
hips/SlideFeatureExtractor.py:1622
↓ 1 callersMethod_maybe_construct_nuclei_graph
If certain features are reuqested, construct a K-d tree that allows Ripley's K type of calculation like no of nuclei within a certain
hips/SlideFeatureExtractor.py:2075
↓ 1 callersMethod_parse_coords_relative_to_wsi_base
(self, tile_mask_info)
hips/SlideFeatureExtractor.py:548
↓ 1 callersMethod_paste_wsi_mask_tile
( self, tile_info: Dict, tile_mask: List[Image.Image], semantic: List[Image.Im
hips/SlideFeatureExtractor.py:1307
↓ 1 callersMethod_process_wsi_mask_tile
Process the semantic masks for one tile from the semantic WSI mask. The returned list has two elements, the first being the region se
hips/SlideFeatureExtractor.py:1324
↓ 1 callersMethod_save_tile
(self, tidx, tilename, feat_df)
hips/HistomicFeatWSIVisualizer.py:74
↓ 1 callersMethod_slidename_in_df_index
Check if slidename is in the index of a dataframe.
hips/SlideFeatureExtractor.py:248
↓ 1 callersMethod_slidename_not_in_df_index
Check if slidename is not in the index of a dataframe.
hips/SlideFeatureExtractor.py:1221
↓ 1 callersMethod_summarize_collagen_features_for_slide
(self, metrics: DataFrame)
hips/SlideFeatureExtractor.py:195
↓ 1 callersMethod_summarize_features_per_region_class
( self, object_feats: DataFrame, region: str )
hips/SlideFeatureExtractor.py:792
↓ 1 callersMethod_summarize_neighborhood_pixels_per_category
( self, neighborhood_mask: np.ndarray, semantic: csr_matrix, distance: Union[i
hips/SlideFeatureExtractor.py:1100
↓ 1 callersMethod_summarize_nuclear_composition_for_region_object
Summarize nuclei enclosed within region object. Parameters ---------- obj_semantic: np.ndarray semantic segmentat
hips/SlideFeatureExtractor.py:943
↓ 1 callersMethod_summarize_object_neighborhood_for_distance
Summarize the neighborhood of a single object within x pixels. Parameters ---------- objcode: int object
hips/SlideFeatureExtractor.py:1025
↓ 1 callersMethod_summarize_per_fibril_edge_regionprops
summarize per-fibril edge morphometric features
hips/SlideFeatureExtractor.py:361
↓ 1 callersMethod_summarize_region_object_neighborhood
Summarize the neighborhood of a single tissue region object. Parameters ---------- objcode: int object c
hips/SlideFeatureExtractor.py:970
↓ 1 callersMethod_summarize_roi_feature_summaries
(self, metrics: DataFrame)
hips/SlideFeatureExtractor.py:1558
↓ 1 callersMethod_visualize_collagen_detection_for_debugging
( self, rgb, collagen_grayscale, collagen_edges, eprops, orien
hips/SlideFeatureExtractor.py:464
↓ 1 callersMethodextract_collagen_features
(self)
hips/SlideFeatureExtractor.py:2227
↓ 1 callersMethodextract_collagen_features_for_one_roi
( self, tile_mask_info: Dict, tidx: int )
hips/SlideFeatureExtractor.py:171
↓ 1 callersMethodextract_region_features
(self)
hips/SlideFeatureExtractor.py:2238
↓ 1 callersMethodfit
Fit KD tree. Parameters ---------- data : array_like, shape (x, y) The n data points of dimension m to be indexed
hips/RipleysK.py:61
↓ 1 callersMethodget_features_from_one_roi
Get summary of features from one ROI.
hips/SlideFeatureExtractor.py:1501
↓ 1 callersMethodiou_components
Fast, vectorized IOU components. Modified from: https://medium.com/@venuktan/vectorized-intersection-over-union ... -
hips/RipleysK.py:271
↓ 1 callersMethodload_or_extract_features_per_region_object
DataFrame representation of features (one row per tissue region).
hips/SlideFeatureExtractor.py:777
↓ 1 callersMethodrun
(self)
hips/HistomicFeatWSIVisualizer.py:208
↓ 1 callersMethodrun
(self)
hips/SlideFeatureExtractor.py:123
↓ 1 callersMethodrun
(self)
hips/SlideFeatureExtractor.py:741
↓ 1 callersMethodrun
(self)
hips/SlideFeatureExtractor.py:1461
↓ 1 callersMethodrun
(self)
hips/SlideFeatureExtractor.py:2220
↓ 1 callersMethodsave_heatmap_for_feat
(self, all_feats_df)
hips/HistomicFeatWSIVisualizer.py:131
↓ 1 callersMethodsummarize_region_features_for_slide
Summarize slide regions as a single row in the dataset.
hips/SlideFeatureExtractor.py:747
↓ 1 callersMethodvisualize_top_and_bottom_tiles
(self, top_salient_feats_df)
hips/HistomicFeatWSIVisualizer.py:119
Method__init__
Fast implementation of Ripley's K using KD-trees. Parameters ---------- radii: Iterable[int] radii at wh
hips/RipleysK.py:10
Method__init__
( self, perslide_feats_dir: str, wsi_dir: str, featname_list: List[Tuple[str,s
hips/HistomicFeatWSIVisualizer.py:22
Method__init__
This represents the slide as a feature matrix summarizing the collagen with tumor-associated stroma.
hips/SlideFeatureExtractor.py:50
Method__init__
This represents the slide as a feature matrix summarizing its semantic segmantation mask.
hips/SlideFeatureExtractor.py:645
Method__init__
This summarizes the slide as a nuclear feature matrix, as well as some basic region pixel counts.
hips/SlideFeatureExtractor.py:1379
Method__init__
( self, input_dir: str, output_dir: str, *, wsi_dir: str = None,
hips/SlideFeatureExtractor.py:2185
Method_gamma
Event density.
hips/RipleysK.py:356
Method_k_value_stdevs
Standard deviation of Ripley's K at CSR for various radii at CSR. References: ----------- Lagache T, Lang G, Sau
hips/RipleysK.py:314
Method_mask2target_sf
Scale factor from mask MPP to desired mpp
hips/SlideFeatureExtractor.py:624
Method_mask2wsi_sf
(self)
hips/SlideFeatureExtractor.py:611
Method_mask_tile_size
(self)
hips/SlideFeatureExtractor.py:620
Method_mask_tilesource
(self)
hips/SlideFeatureExtractor.py:629
Method_new_tile_size
(self)
hips/SlideFeatureExtractor.py:1359
Method_nucleus_semantic
(self)
hips/SlideFeatureExtractor.py:1246
Method_region_object_masks
Labeled masks for each of the region classes with discrete boundaries. Note that we store the arrays to csr_matrix which is a sparse
hips/SlideFeatureExtractor.py:1230
Method_region_perimeter
Perimeter of the region of interest from which events exist.
hips/RipleysK.py:346
Method_region_semantic
(self)
hips/SlideFeatureExtractor.py:1250
Method_ripleyk_radii
(self)
hips/SlideFeatureExtractor.py:2170
next →1–100 of 112, ranked by callers