Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-connectome-genetic-environmental-architecturegit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-connectome-genetic-environmental-architecture/SKILL.md---
name: connectome-genetic-environmental-architecture
description: Methodology for decomposing functional connectome variance into genetic and environmental components using extended ACE/ADE twin models with explicit measurement error modeling. Reveals hierarchical community structure in genetic and environmental influences.
category: neuroscience
---
# Connectome Genetic-Environmental Architecture
## Overview
This methodology decomposes the **human functional connectome** into genetic and environmental variance components using **extended classical twin models** (ACE/ADE) with explicit measurement error modeling. Reveals that genetic and environmental influences are structured into coherent, multiscale brain networks.
**Paper**: "The Genetic and Environmental Architecture of the Human Functional Connectome" (arXiv:2604.24614, April 2026)
## Trigger Words
- connectome genetic architecture, ACE ADE twin model fMRI
- heritability functional connectivity, environmental brain networks
- twin model measurement error, multilayer community detection connectome
## Core Methodology
### 1. Extended ACE/ADE Twin Models
Classical twin models partition phenotypic variance into:
- **A**dditive genetic effects
- **C**ommon/shared environmental effects
- **E**xclusive/non-shared environmental effects (+ measurement error)
- **D**ominant genetic effects (in ADE model)
#### Key Extension: Explicit Measurement Error
- Classical models confound non-shared environment with measurement error
- This methodology uses **repeated fMRI sessions** to estimate measurement error separately
- Error term derived from scan-retest reliability
### 2. Model Applicability Conditions
Model applicability depends on:
- **Scan length**: Longer scans → more reliable estimates
- **Parcellation granularity**: Coarser parcellations more amenable to twin modeling
- **Substantial fraction of couplings don't meet twin-model assumptions**
### 3. Cross-Condition Integration
- Genetic and environmental variance estimated for **all functional couplings**
- Across both **resting-state** and **task conditions**
- Integrated using **minimum-error criterion** across conditions
### 4. Multilayer Community Detection
- Functional couplings segregated into distinct categories:
- Shared environmental influences
- Additive genetic influences
- Dominant genetic influences
- Epistatic influences
- **Hierarchical community structure** revealed across resolution scales
- Genetic and environmental components form coherent brain networks
## Implementation Guide
### Step 1: Data Preparation
```python
# Monozygotic (MZ) and Dizygotic (DZ) twin pairs
# Multiple fMRI sessions per subject (for error estimation)
mz_pairs = load_twin_data(zygosity='MZ')
dz_pairs = load_twin_data(zygosity='DZ')
# Functional connectivity matrices
fc_mz = compute_fc(mz_pairs)
fc_dz = compute_fc(dz_pairs)
```
### Step 2: Measurement Error Estimation
```python
# From repeated scans
error_variance = compute_scan_retest_variance(
session_1=fc_session1,
session_2=fc_session2
)
```
### Step 3: ACE/ADE Model Fitting
```python
# Extended model with error term
# V_P = A + C + E + ε (ACE)
# V_P = A + D + E + ε (ADE)
for each_fc_edge in all_edges:
model = fit_ace_model(
mz_correlation=r_mz,
dz_correlation=r_dz,
measurement_error=error_variance[edge]
)
variance_components[edge] = model.decompose()
```
### Step 4: Cross-Condition Integration
```python
# Minimum-error criterion across conditions
integrated_components = integrate_across_conditions(
conditions=['rest', 'task1', 'task2', ...],
criterion='minimum_error'
)
```
### Step 5: Community Detection
```python
# Multilayer community detection at multiple resolution scales
communities = multilayer_community_detection(
adjacency=variance_components_matrix,
resolutions=[0.1, 0.5, 1.0, 2.0, ...]
)
```
## Key Findings
1. **Measurement error matters**: Explicitly modeling error improves interpretability
2. **Not all edges fit twin models**: Substantial fraction of functional couplings don't meet assumptions
3. **Hierarchical structure**: Genetic and environmental influences organized into coherent communities
4. **Multiscale organization**: Community structure observable across resolution scales
5. **Differentiated modules**: Genetic vs. environmental effects map to distinct functional modules
## Pitfalls
1. **Scan length dependency**: Short scans produce unreliable estimates. Minimum ~10-15 min recommended.
2. **Parcellation sensitivity**: Too fine parcellations may violate twin model assumptions.
3. **Model selection**: ACE vs ADE — need statistical criteria (AIC/BIC) to choose.
4. **Cross-condition comparability**: Different tasks may have different signal-to-noise ratios.
## Related Skills
- genetic-environmental-connectome: Related genetic architecture of connectome
- brain-foundation-biomarker-validation: Biomarker robustness validation
- hermes-brain-connectivity: Brain connectivity analysis toolbox