Skip to content

Add tissue weight normalization to glycogen assay analysis#2

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-glycogen-assay-normalization
Draft

Add tissue weight normalization to glycogen assay analysis#2
Copilot wants to merge 3 commits intomainfrom
copilot/fix-glycogen-assay-normalization

Conversation

Copy link

Copilot AI commented Mar 19, 2026

Glycogen/glucose results were reported as absolute concentrations (µg/µL in undiluted homogenate) with no normalization to tissue weight, making cross-sample comparisons biologically meaningless given the 7–50 mg sample weight range.

Approach

Normalization formula applied to all production assay Rmd files:

normalized = (dilution_factor × measured_conc × homogenate_volume_uL) / tissue_weight_mg
# homogenate_volume_uL = 1000 (750 µL PBS/HCl + 250 µL TRIS, per protocol)
# tissue_weight_mg extracted from plate layout label: "C7-glyc-35-df.50" → 35 mg

Changes (Gen5-20260123 through Gen5-20260218, 8 files)

  • Data chunk: Load 20251210-mgig-ctenidia_weights-glycogen_assay.csv; define homogenate_volume_uL <- 1000
  • Helper function: get_weight_from_label() — extracts weight from embedded plate layout label format <sampleID>-<type>-<weight>-df.<dilution>
  • Summary tables: Added 5th column Normalized glycogen (ug/mg tissue) and Normalized glucose (ug/mg tissue) to existing 4-column matrices (dilution factor, luminescence, calculated conc, total conc)
  • Label fixes: Corrected pre-existing column header bugs in 20260123/20260126/20260130 glucose tables (mislabeled as uM or Calculated Glycogen)
Original prompt

This section details on the original issue you should resolve

<issue_title>How is glycogen assay being normalized?</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI and others added 2 commits March 19, 2026 23:13
…files

- Load tissue weights CSV (20251210-mgig-ctenidia_weights-glycogen_assay.csv)
- Define homogenate_volume_uL = 1000 (750 µL PBS/HCl + 250 µL TRIS)
- Add get_weight_from_label() helper to extract weight from plate layout labels
- Add 'Normalized glycogen (ug/mg tissue)' column to glycogen summary tables
- Add 'Normalized glucose (ug/mg tissue)' column to glucose summary tables
- Formula: (dilution * conc * homogenate_volume_uL) / tissue_weight_mg
- Updated files: Gen5-20260123 through Gen5-20260218 (8 production Rmd files)

Co-authored-by: sr320 <4442039+sr320@users.noreply.github.com>
…3, 20260126, 20260130

Co-authored-by: sr320 <4442039+sr320@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix glycogen assay normalization issue Add tissue weight normalization to glycogen assay analysis Mar 19, 2026
Copilot AI requested a review from sr320 March 19, 2026 23:15
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.

How is glycogen assay being normalized?

2 participants