cargo
Rust package manager (36 subcommands).
Human Connectome Project analysis bridging cortical thickness, transcription factors, and depression biomarkers. Connects zubyul's Nikolova lab neuroscience to geomstats manifold geometry, Vertex AI protein expression, and the propagator lattice.
Full skill instructions
Cortical manifolds as propagator cells in the brain's CellValue lattice
Yuliya Zubak's undergraduate thesis: "Using Human Connectome Project data to study the relationship of cortical thickness to transcription factors for depression." R-based analysis of HCP structural MRI data.
Yuliya Zubak's undergraduate thesis: "Using Human Connectome Project data to study the relationship of cortical thickness to transcription factors for depression." R-based analysis of HCP structural MRI data. Repo: zubyul/Nikolova_lab_data_analysis.
origin/main
Hypersphere / SPDMatrices for covariance analysis<<<<<<< HEAD
=======
origin/main
-- Hierarchical model: cortical thickness ~ transcription + depression
corticalModel :: MonadMeasure m => HCPData -> m Parameters
corticalModel hcp = do
<<<<<<< HEAD
-- Population-level priors
=======
>>>>>>> origin/main
mu_thickness <- normal 2.5 0.5 -- mean cortical thickness (mm)
sigma_region <- halfNormal 0.3 -- between-region variance
beta_transcription <- normal 0 1 -- transcription factor effect
beta_depression <- normal 0 0.5 -- depression effect size
<<<<<<< HEAD
-- Region-level: each Desikan-Killiany parcel
=======
>>>>>>> origin/main
forM_ (regions hcp) $ \region -> do
offset <- normal 0 sigma_region
let predicted = mu_thickness + offset
+ beta_transcription * transcriptionLevel region
+ beta_depression * depressionScore region
factor $ normalDensity predicted 0.2 (observedThickness region)
return (mu_thickness, beta_transcription, beta_depression)
<<<<<<< HEAD
=======
origin/main The CellValue lattice from zig-syrup/propagator.zig maps to brain states:
Nothing = unmeasured cortical region (no MRI data)Value = observed thickness measurementContradiction = conflicting measurements across sessions<<<<<<< HEAD
Each Desikan-Killiany parcel is a Cell; MRI preprocessing steps are
Propagators that merge partial observations via latticeMerge.
AGM belief revision (continuation.zig):
expand = add new parcels from additional MRI acquisitionscontract = remove artifact-contaminated regionsrevise = Levi identity update when depression status changes| Component | Trit | Role |
|---|---|---|
| HCP MRI data | +1 | Generation (observation) |
| geomstats manifold | 0 | Coordination (geometry) |
| monad-bayes posterior | -1 | Validation (inference) |
Conservation: +1 + 0 + (-1) = 0
=======
Each Desikan-Killiany parcel is a Cell; MRI preprocessing steps are Propagators that merge partial observations via latticeMerge.
git clone https://github.com/zubyul/Nikolova_lab_data_analysis.git /Users/alice/v/zubyul-nikolova-lab
s3://hcp-openaccess/HCP_1200/ (use aws s3 ls --no-sign-request)/Users/alice/v/data/hcp/ with subject directories like 100307/T1w/# List available subjects in the open-access HCP 1200 release
aws s3 ls s3://hcp-openaccess/HCP_1200/ --no-sign-request | head -20
# Download a single subject's FreeSurfer output (cortical thickness)
aws s3 cp s3://hcp-openaccess/HCP_1200/100307/T1w/100307/surf/ \
/Users/alice/v/data/hcp/100307/surf/ \
--recursive --no-sign-request
Fit a geodesic regression model on the SPD manifold relating cortical thickness covariances to depression scores:
# pip install geomstats numpy
import numpy as np
import geomstats.backend as gs
from geomstats.geometry.spd_matrices import SPDMatrices
from geomstats.learning.geodesic_regression import GeodesicRegression
gs.random.seed(42)
# SPD(3) manifold — e.g., 3x3 covariance of thickness across 3 ROIs
spd = SPDMatrices(n=3, equip=True)
# Simulated data: N subjects, each with a 3x3 thickness covariance and a depression score
N = 30
depression_scores = np.linspace(0, 1, N).reshape(-1, 1) # predictor (scalar)
# Generate synthetic SPD points along a geodesic + noise
base_point = spd.random_point()
tangent_vec = spd.random_tangent_vec(base_point) * 0.5
y_true = np.array([
spd.metric.exp(t * tangent_vec, base_point)
for t in depression_scores.flatten()
])
# Add small SPD noise
noise = np.array([spd.random_tangent_vec(y) * 0.05 for y in y_true])
y_noisy = np.array([spd.metric.exp(n, y) for n, y in zip(noise, y_true)])
# Fit geodesic regression: thickness_cov ~ depression_score
gr = GeodesicRegression(
spd,
center_X=False,
method="riemannian",
initialization="frechet",
)
gr.fit(depression_scores, y_noisy)
# Predict thickness covariance for a new depression score
new_score = np.array([[0.75]])
predicted_cov = gr.predict(new_score)
print(f"Predicted thickness covariance at depression=0.75:\n{predicted_cov[0]}")
print(f"R² (manifold): {gr.score(depression_scores, y_noisy):.4f}")
Extract Desikan-Killiany parcellation stats from FreeSurfer output:
# After running FreeSurfer recon-all on HCP data
export SUBJECTS_DIR=/Users/alice/v/data/hcp
# Extract cortical thickness per parcel (Desikan-Killiany atlas)
aparcstats2table --subjects 100307 100408 101107 \
--hemi lh \
--meas thickness \
--tablefile /tmp/lh_thickness.tsv
# Quick look at the output
column -t -s $'\t' /tmp/lh_thickness.tsv | head -5
origin/main
Rust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
Topological soliton detection and agency bridge with anyonic fusion algebra for concept composition
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
World C Skill
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience