sciagent-skill-creator
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md…
Out-of-core DataFrame for billion-row data via lazy evaluation and memory-mapped files. Use when data exceeds RAM (10 GB–TB) for fast aggregation, filtering, virtual columns, and visualization without loading. Supports HDF5, Arrow, Parquet, CSV with cloud (S3, GCS, Azure).
Claude Code
$ npx -y skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes --agent claude-code
Codex
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a codex -y
Cursor
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a cursor -y
Gemini CLI
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a gemini-cli -y
GitHub Copilot
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a github-copilot -y
OpenCode
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a opencode -y
Windsurf
$ npx skills add jaechang-hits/SciAgent-Skills --skill vaex-dataframes -a windsurf -y
name: vaex-dataframes description: >- Out-of-core DataFrame for billion-row data via lazy evaluation and memory-mapped files. Use when data exceeds RAM (10 GB–TB) for fast aggregation, filtering, virtual columns, and visualization without loading. Supports HDF5, Arrow, Parquet, CSV with cloud (S3, GCS, Azure). Built-in ML transformers (scaling, PCA, K-means). In-memory: polars; distributed: dask. license: MIT
Vaex is a high-performance Python library for lazy, out-of-core DataFrame operations on datasets too large to fit in RAM. It processes over a billion rows per second using memory-mapped files and lazy evaluation, enabling interactive exploration and analysis without loading data into memory.
pip install vaex # Optional extras: pip install vaex-hdf5 # HDF5 support (recommended) pip install vaex-arrow # Apache Arrow support pip install vaex-ml # Machine learning transformers pip install vaex-viz # Visualization support pip install vaex-jupyter # Jupyter widget support pip install s3fs gcsfs adlfs # Cloud storage (S3, GCS, Azure)
Requires Python 3.7+. HDF5 and Arrow formats provide instant memory-mapped loading; CSV requires conversion for optimal performance.
import vaex
import numpy as np
df = vaex.from_arrays(
x=np.random.normal(0, 1, 1_000_000),
y=np.random.normal(0, 1, 1_000_000),
category=np.random.choice(['A', 'B', 'C'], 1_000_000),
)
df['radius'] = (df.x**2 + df.y**2).sqrt() # Virtual column, zero memory
df_inner = df[df.radius < 1.0] # Filtered view
print(df_inner.radius.mean()) # ~0.48
result = df.groupby('category').agg({'radius': 'mean'})
print(result) # shape: (3, 2)
df.export_hdf5('/tmp/sample.hdf5') # Export to efficient format
df2 = vaex.open('/tmp/sample.hdf5') # Future loads are instant
print(f"Loaded {len(df2):,} rows instantly")Create DataFrames from files, arrays, pandas, or Arrow tables. HDF5 and Arrow files are memory-mapped for instant loading.
import vaex
import numpy as np
# From files (HDF5/Arrow are instant via memory mapping)
df = vaex.open('data.hdf5') # Recommended: instant, memory-mapped
df = vaex.open('data.arrow') # Also instant, memory-mapped
df = vaex.open('data.parquet') # Fast, columnar, compressed
df = vaex.open('data_*.hdf5') # Wildcards: multiple files as one DataFrame
# From CSV (slow for large files — convert to HDF5)
df = vaex.from_csv('data.csv', convert='data.hdf5') # Auto-converts
# From Python objects
df = vaex.from_arrays(x=np.arange(100), y=np.random.rand(100))
df = vaex.from_dict({'name': ['Alice', 'Bob'], 'age': [30, 25]})
df = vaex.from_pandas(pd.DataFrame({'a': [1, 2, 3]}), copy_index=False)
# From Arrow table
import pyarrow as pa
df = vaex.from_arrow_table(pa.table({'x': [1, 2, 3]}))
# Inspect
print(df.shape) # (rows, cols)
print(df.column_names) # Column names
df.describe() # Statistical summary
# Export
df.export_hdf5('out.hdf5') # Recommended
df.export_arrow('out.arrow') # Interoperability
df.export_parquet('out.parquet', compression='snappy') # Compressed
df.export_parquet('s3://bucket/data.parquet') # Cloud storageFilter rows with boolean expressions. Named selections allow computing statistics on multiple subsets without creating new DataFrames.
import vaex
import numpy as np
df = vaex.from_arrays(
age=np.array([22, 35, 45, 19, 60]),
salary=np.array([30000, 70000, 90000, 25000, 120000]),
dept=np.array(['Eng', 'Sales', 'Eng', 'Sales', 'Eng']),
)
# Boolean filtering (creates a view, no copy)
df_eng_high = df[(df.dept == 'Eng') & (df.salary > 50000)]
print(len(df_eng_high)) # 2
# isin, between, string/null checks
df_mid = df[df.age.between(25, 50)]
# df[df.name.str.contains('Ali')], df[df.salary.notna()]
# Named selections (more efficient for multiple aggregations)
df.select(df.age >= 30, name='senior')
df.select(df.dept == 'Eng', name='engineers')
mean_senior = df.salary.mean(selection='senior')
mean_eng = df.salary.mean(selection='engineers')
print(f"Senior avg: {mean_senior}, Eng avg: {mean_eng}")
# Senior avg: 93333.33, Eng avg: 80000.0Virtual columns are computed on-the-fly with zero memory overhead. They are the core of Vaex's efficiency.
import vaex
import numpy as np
df = vaex.from_arrays(
price=np.array([10.0, 20.0, 30.0, 40.0]),
quantity=np.array([5, 3, 8, 2]),
discount=np.array([0.0, 0.1, 0.0, 0.2]),
)
# Arithmetic (virtual columns — no memory used)
df['revenue'] = df.price * df.quantity * (1 - df.discount)
df['log_price'] = df.price.log()
# Conditional logic
df['tier'] = (df.price >= 30).where('premium', 'standard')
# Math: .abs(), .sqrt(), .log(), .log10(), .exp(), .sin(), .cos(),
# .round(n), .floor(), .ceil(), .astype('float64')
# Check virtual vs materialized
print(df.get_column_names(virtual=False)) # Materialized only
# Materialize when needed (compTurn your AI coding agent into a life sciences expert — 199 bioinformatics skills for Claude Code covering RNA-seq, single-cell analysis, genomics, proteomics, drug discovery, and more. Boosted BixBench from 65% to 92%. Open source.
Scaffold a new SciAgent-Skills entry. Picks pipeline/toolkit/database/guide template, creates skills/{category}/{name}/SKILL.md…
Bayesian modeling with PyMC 5: priors, likelihood, NUTS/ADVI sampling, diagnostics (R-hat, ESS), LOO/WAIC comparison, prediction.…
Time-to-event modeling with scikit-survival: Cox PH (elastic net), Random Survival Forests, Boosting, SVMs for censored data.…
Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions,…
Python statistical modeling: regression (OLS, WLS, GLM), discrete (Logit, Poisson, NegBin), time series (ARIMA, SARIMAX, VAR),…
DL cell/nucleus segmentation for fluorescence and brightfield microscopy. Pre-trained models (cyto3, nuclei, tissuenet) and a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.