← Back to Skills Marketplace
xrayxiaoruiyang-pixel

Afm Secm Correlation Tools 1.0.0

by xrayxiaoruiyang-pixel · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
81
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install afm-secm-correlation-tools-1-0-0
Description
Analyzes and correlates AFM topography and SECM activity data to identify microscale structure–activity relationships in electrocatalysis research.
README (SKILL.md)

afm-secm-correlation-tools-1.0.0

AFM topography + SECM electrochemical activity correlation analyzer for electrocatalysis research.

Overview

Combines atomic force microscopy (AFM) surface morphology data with scanning electrochemical microscopy (SECM) activity maps to reveal structure–activity relationships at the microscale. Identifies whether high electrochemical activity hotspots correspond to topographic features (particles, edges, grain boundaries) or are driven by chemical/electronic factors alone.

Capabilities

1. Data Import

  • AFM: SPI (.spm), JPK (.jpk Force Map), NT-MDT (.md), Asylum MFP-3D (.txt/.csv), Bruker (.ps), generic CSV (X/Y/Height/Z)
  • SECM: CSV grid (X/Y/current), ASCII raster, CH Instruments, BioLogic, JPK, custom formats
  • Auto-detects scan size, resolution, units (nm/μm/Å)

2. Image Preprocessing

  • Leveling (1st/2nd order plane fit), flatten rows/columns
  • Gaussian low-pass filter (remove high-frequency noise)
  • Sharpen (Laplacian kernel) for edge enhancement
  • Remove bow/tilt artifacts

3. Morphology Feature Extraction

  • Roughness parameters: Ra (arithmetic), Rq (RMS), Rz (ten-point height), Rmax
  • Grain segmentation (watershed algorithm), grain size distribution (mean Feret diameter)
  • Particle detection: height threshold → equivalent circle diameter, aspect ratio, circularity
  • Edge/boundary density: detected as high-gradient zones (∇z threshold)
  • Bearing ratio and surface area ratio (complexity factor)

4. SECM Activity Map Processing

  • Background subtraction (median filter), IQR outlier removal
  • Normalization: min-max / z-score / relative to macroelectrode reference
  • Hotspot detection: top 5–10% pixels (configurable threshold)
  • Cross-section profile extraction (horizontal/vertical cuts)

5. AFM–SECM Co-registration & Correlation

  • Spatial overlay: AFM topography heatmap + SECM activity contour, shared colorbar
  • Scatter plot: local roughness (Ra in 8×8 windows) vs local SECM current, Pearson/Spearman r
  • Topographic masking: correlation computed only where AFM height > grain boundary threshold
  • Hotspot mapping: overlay AFM-detected particles with SECM hotspots → particle-activity contingency table
  • Dual-Y time-series: tip position along cross-section vs height and current simultaneously
  • Correlation coefficient classification: r \x3C 0.3 (uncorrelated), 0.3–0.6 (moderate), > 0.6 (strong)

6. Reference Databases

  • Built-in AFM tips: OLTEP (Au 111), PPP- kont AFMSPA (Si), SNL-10 (soft),q
  • Built-in SECM tips: Pt ultramicroelectrode (10 μm), carbon fiber (10 μm), Au nanoelectrode (1 μm)
  • Reaction type references: OER_NiOOH, HER_Pt, ORR_Au, CO2RR_Cu, Fe(CN)6³⁻/⁴⁻
  • AFM roughness thresholds: Ra \x3C 1 nm (ultrasmooth), 1–5 nm (smooth), 5–20 nm (rough), > 20 nm (very rough)

7. Output

  • PNG 6-panel correlation dashboard (AFM / SECM / overlay / scatter / profile / statistics)
  • Topographic feature table: grain size, particle density, edge density, activity
  • Correlation summary CSV: r_Pearson, r_Spearman, p-value, N_windows
  • Markdown full report with figure captions

Usage

# Full analysis with AFM + SECM files
python afm_secm_correlation.py \
  --afm scan_afm.spm \
  --secm secm_map.csv \
  --output output_afm_secm/ \
  --afm-height-unit nm \
  --secm-current-unit nA \
  --secm-tip-diameter 10 \
  --reaction-type OER_NiOOH

# Quick correlation scatter plot only
python afm_secm_correlation.py \
  --afm scan_afm.spm \
  --secm secm_map.csv \
  --mode scatter \
  --output quick_corr/

# Grid correlation (8x8 windows)
python afm_secm_correlation.py \
  --afm scan_afm.spm \
  --secm secm_map.csv \
  --mode grid-corr \
  --window-size 8 \
  --output grid_corr/

File Formats

Instrument AFM Format SECM Format
Asylum MFP-3D .ibw, .txt CSV grid
JPK Instruments .jpk CSV grid
Bruker / Veeco .spm, .000 ASCII
NT-MDT .md, .msr CSV
CH Instruments .jdx
BioLogic .mpt
Generic CSV (X/Y/Z) CSV (X/Y/I)

Dependencies

  • numpy, scipy, matplotlib, pandas, scikit-image, lmfit, opencv-python (cv2)
Usage Guidance
This skill appears to do what it claims: local AFM/SECM correlation analysis with standard scientific Python libs. Before relying on results: (1) verify that your input files were actually parsed (check logs or inspect outputs) because the code will silently generate synthetic test maps if it cannot parse a file; (2) run it on a known test dataset to confirm behavior; (3) install dependencies from trusted sources (pip/conda) and run in a controlled environment (virtualenv/conda) if you are cautious; (4) inspect output files (CSV/figures) and check metadata (e.g., reported scan_size) to ensure units and sizes were interpreted correctly. If you need stronger guarantees, request explicit parsing-error reporting / fail-on-parse-failure behavior from the maintainer or modify the script to raise errors instead of falling back to synthetic data.
Capability Analysis
Type: OpenClaw Skill Name: afm-secm-correlation-tools-1-0-0 Version: 1.0.0 The skill bundle is a legitimate scientific tool for correlating Atomic Force Microscopy (AFM) and Scanning Electrochemical Microscopy (SECM) data. The Python script (afm_secm_correlation.py) implements standard data processing, feature extraction, and statistical analysis using well-known libraries like NumPy, SciPy, and OpenCV, with no evidence of malicious behavior, data exfiltration, or unauthorized execution.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md capabilities, dependency list (numpy, scipy, pandas, scikit-image, opencv, matplotlib) and the included Python file all align with a local data-analysis tool for AFM and SECM data. There are no environment variables, service credentials, or unrelated binaries required.
Instruction Scope
Runtime instructions are limited to running the included Python script on user-supplied AFM/SECM files and writing outputs (figures, CSV, markdown). However, the code silently falls back to generating synthetic AFM/SECM data if parsing fails (read_afm_spm/read_secm_generic), which can produce plausible-looking results without alerting the user; users should be aware and verify that their input files were actually parsed rather than replaced by synthetic data. The instructions do not emphasize this behavior or require explicit validation steps.
Install Mechanism
This is an instruction-only skill with a single Python file; there is no install spec, no network downloads or installers. Dependencies are standard Python scientific packages; installing them is the user's responsibility and is expected for the stated purpose.
Credentials
The skill requests no environment variables, credentials, or config paths. The declared dependencies are appropriate for local numerical/image processing and plotting; there are no requests for unrelated secrets or cloud access.
Persistence & Privilege
Skill has no elevated persistence flags (always:false). It does not modify other skills or system-wide configuration. It reads user-supplied files and writes outputs to a user-specified output directory only.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install afm-secm-correlation-tools-1-0-0
  3. After installation, invoke the skill by name or use /afm-secm-correlation-tools-1-0-0
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of AFM–SECM correlation analysis toolkit. - Imports, preprocesses, and analyzes AFM topography and SECM activity maps from major file formats. - Extracts morphology features (roughness, grains, particles, edges) and SECM electrochemical hotspots. - Performs spatial co-registration and computes correlation between surface features and local electrochemical activity. - Outputs multi-panel dashboards, feature tables, correlation statistics, and full Markdown reports. - Includes built-in tip/reaction references and automated unit handling for streamlined analysis.
Metadata
Slug afm-secm-correlation-tools-1-0-0
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Afm Secm Correlation Tools 1.0.0?

Analyzes and correlates AFM topography and SECM activity data to identify microscale structure–activity relationships in electrocatalysis research. It is an AI Agent Skill for Claude Code / OpenClaw, with 81 downloads so far.

How do I install Afm Secm Correlation Tools 1.0.0?

Run "/install afm-secm-correlation-tools-1-0-0" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Afm Secm Correlation Tools 1.0.0 free?

Yes, Afm Secm Correlation Tools 1.0.0 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Afm Secm Correlation Tools 1.0.0 support?

Afm Secm Correlation Tools 1.0.0 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Afm Secm Correlation Tools 1.0.0?

It is built and maintained by xrayxiaoruiyang-pixel (@xrayxiaoruiyang-pixel); the current version is v1.0.0.

💬 Comments