Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connects to #369. PASS1AC-06 phenotype data analysis (initial phase). #382

Merged
merged 29 commits into from
Dec 19, 2024

Conversation

jimmyzhen
Copy link
Contributor

@jimmyzhen jimmyzhen commented Dec 19, 2024

This pull request introduces several new components and features for the PASS1AC-06 phenotypic data analysis, particularly focusing on summary statistics and correlation analyses. The most important changes include the addition of new components for rendering various plots and sections, as well as the integration of a new library for statistical calculations.

New components for summary statistics and correlation analyses:

  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/categorySummaryStatistics.jsx: Added a new component to render the summary statistics category, including sections for weight distribution, lactate change, and rat work.
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotLactateChange.jsx: Added a new component to render plots for lactate change using Highcharts.
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotRatWork.jsx: Added a new component to render plots for rat work using Highcharts.
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotWeightDistribution.jsx: Added a new component to render plots for weight distribution using Highcharts.
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/correlationAnalyses/plotOverallCorrelationMatrix.jsx: Added a new component to render plots for overall correlation matrix using Highcharts.
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/analysisCategoryNavigation.jsx: Added a new component for navigating between different analysis categories.

Integration of new library:

  • package.json: Added simple-statistics library for statistical calculations.

PASS1AC-06 data freeze release notes:

  • src/MultiOmicsWorkingGroups/dawgPAC.jsx Added JSX markup for data freeze release notes and resources.

…ld components of pass1b and pass1a pheno data analysis
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 8 out of 23 changed files in this pull request and generated 2 comments.

Files not reviewed (15)
  • package.json: Language not supported
  • src/AnalysisPage/Phenotype/pass1ac-animal_pheno.json: Language not supported
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/sharedLib.js: Evaluated as low risk
  • src/AnalysisPage/Phenotype/pass1a06Rats.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/correlationAnalyses/categoryCorrelationAnalyses.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/correlationAnalyses/plotOverallCorrelationMatrix.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/chartWrapper.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/analysisCategoryNavigation.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/correlationAnalyses/sectionOverallCorrelationMatrix.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/pass1b06Rats.jsx: Evaluated as low risk
  • src/AnalysisPage/pass1b06PhenotypeAnimal.jsx: Evaluated as low risk
  • src/AnalysisPage/analysisActions.js: Evaluated as low risk
  • src/AnalysisPage/analysisReducer.js: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/sectionWeightDistribution.jsx: Evaluated as low risk
  • src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotWeightDistribution.jsx: Evaluated as low risk
Comments suppressed due to low confidence (3)

src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotLactateChange.jsx:20

  • [nitpick] The function name getLactateChangeData could be more descriptive. Consider renaming it to extractLactateChangeData.
const getLactateChangeData = (data) => data.map((item) => parseFloat(item.lactate_change));

src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotRatWork.jsx:21

  • Use parseInt with a radix to avoid unexpected results. Change to parseInt(item.weight, 10).
const weight = parseInt(item.weight, 10) / 1000;

src/AnalysisPage/Phenotype/Components/Pass1ac-06/SummaryStatistics/plotRatWork.jsx:22

  • Use parseInt with a radix to avoid unexpected results. Change to parseInt(item.distance, 10).
const distance = parseInt(item.distance, 10);

@jimmyzhen jimmyzhen merged commit 1363adc into dev Dec 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants