


PhenoSpectra is an R package designed for processing, analyzing, and visualizing spectral data collected from 3D laser-based scanning systems. This package supports data from various domains, including agriculture, forestry, environmental monitoring, industrial quality control, and biomedical research.
Data Handling:
Bio.Rep).Quality Control:
Feature Selection & Prediction:
Customizable Workflow:
To install the PhenoSpectra package directly from GitHub:
Ensure you have the devtools package installed:
install.packages("devtools")
Install PhenoSpectra:
devtools::install_github("bayer-int/PhenoSpectra")
Below is an overview of the directory structure of the PhenoSpectra package:
reads()
merged_data <- reads(
directory = "Demo",
pattern = "input",
output_path = "Demo/processed_data.xlsx"
)
qaqcs()
result <- qaqcs(
file_path = "Demo/raw_data.xlsx",
output_path = "Demo/cleaned_data.xlsx",
handle_missing = "impute",
handle_outliers = "impute",
group_by_col = "treatment"
)
# Access the cleaned data and summary table
cleaned_data <- result$cleaned_data
summary_table <- result$summary_table
feature_selection()
selected_features <- feature_selection(
file_path = "Demo/cleaned_data.xlsx",
output_path = "Demo/selected_features.xlsx",
fdr_threshold = 0.01
)
# View the selected features
print(selected_features)
predict_SDS()
predicted_sds <- predict_SDS(
cleaned_data = cleaned_data,
sf_test = selected_features,
fixed_effects = c("Scan.date")
)
# View predictions
print(predicted_sds)
This project is licensed under the MIT License. See the LICENSE file for more details.
Dr. Medhat Mahmoud,
Statistical Scientist
Decision Pipeline & Analytics