Skip to contents

Haralick Texture Analysis

Usage

haralicktexture(
  data,
  texture_features,
  x_coord,
  y_coord,
  group_var,
  outcome_var,
  analysis_focus = "comprehensive",
  feature_selection = "all",
  correlation_threshold = 0.9,
  normality_testing = TRUE,
  outlier_detection = TRUE,
  outlier_method = "iqr",
  show_distribution_plots = TRUE,
  show_correlation_plot = TRUE,
  show_spatial_plot = FALSE,
  texture_interpretation = "clinical",
  biomarker_context = "general"
)

Arguments

data

the data as a data frame

texture_features

Haralick texture feature measurements (entropy, contrast, correlation, etc.)

x_coord

X spatial coordinate for spatial analysis

y_coord

Y spatial coordinate for spatial analysis

group_var

grouping variable for stratified analysis

outcome_var

clinical outcome for prognostic analysis

analysis_focus

primary focus of texture analysis

feature_selection

method for feature selection/filtering

correlation_threshold

threshold for identifying highly correlated features

normality_testing

perform normality testing for distribution assessment

outlier_detection

identify and flag potential outliers

outlier_method

method for outlier detection

show_distribution_plots

display histograms and distribution plots

show_correlation_plot

display correlation matrix heatmap

show_spatial_plot

display spatial distribution plot (requires coordinates)

texture_interpretation

level of interpretation and guidance provided

biomarker_context

biomarker context for specialized interpretation

Value

A results object containing:

results$summaryCopy-ready summary with key findings and clinical interpretation
results$aboutWhat this analysis does, when to use it, and how to interpret results
results$interpretationa html
results$texturetableDescriptive statistics for each texture feature
results$correlationtableCorrelation between texture features
results$groupcomparisontableStatistical comparison across groups
results$normalitytableShapiro-Wilk and other normality tests
results$outliertableIdentified outliers in texture features
results$distributionplotHistogram and density plots for texture features
results$heatmapplotVisual correlation matrix between features
results$boxplotBoxplots comparing texture features across groups
results$clinicalinterpretationContext-specific clinical interpretation
results$prognosticsummaryPrognostic relevance of texture features
results$missingdataMissing data patterns and impact
results$variabilityCoefficient of variation and reliability

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$texturetable$asDF

as.data.frame(results$texturetable)