Communitygithub.com

vaex

RAM을 초과하는 대규모 테이블 형식 데이터셋(수십억 행)을 처리하고 분석하는 스킬입니다. Vaex는 메모리 외부 DataFrame 연산, 지연 평가, 빠른 집계, 빅데이터의 효율적인 시각화 및 머신러닝에 탁월합니다.

vaex란 무엇인가요?

Vaex는 대용량의 테이블 형식 데이터를 RAM에 모두 로드하지 않고도 처리하고 분석할 수 있는 고성능 Python 라이브러리입니다. 수십억 개의 행을 포함하는 데이터셋에서도 초당 10억 행 이상을 처리할 수 있어 인터랙티브한 데이터 탐색과 분석이 가능합니다. CSV, HDF5, Arrow, Parquet 등 다양한 파일 형식을 지원하며, 지연 평가(lazy evaluation)와 가상 컬럼(virtual column)을 활용해 메모리 사용량을 최소화하면서 통계 집계, 시각화, 머신러닝 파이프라인 구축 등의 작업을 수행할 수 있습니다. 이 스킬은 단일 머신에서 RAM을 초과하는 빅데이터를 분석해야 하는 데이터 과학자, 연구자, 엔지니어에게 적합하며, Polars나 Dask와 달리 단일 머신 기반의 아웃-오브-코어 분석에 특화되어 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/vaex

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

vaex은(는) 무엇을 하나요?

개요

Vaex는 RAM에 로드하기 어려운 대규모 테이블 형식 데이터셋을 처리하고 시각화하기 위해 설계된 고성능 Python 라이브러리로, 지연 평가 기반의 아웃-오브-코어 DataFrame을 제공합니다. Vaex는 초당 10억 개 이상의 행을 처리할 수 있어, 수십억 행의 데이터셋에서도 인터랙티브한 데이터 탐색 및 분석이 가능합니다.

설치

전체 메타 패키지 설치 (권장):

uv pip install vaex

최소 설치 (필요한 것만 선택):

uv pip install vaex-core vaex-viz vaex-hdf5 vaex-ml

vaex 패키지는 vaex-core, vaex-viz, vaex-hdf5, vaex-ml 및 기타 하위 패키지를 포함하는 메타 패키지입니다. Arrow 지원은 vaex-core에 내장되어 있습니다 (별도의 vaex-arrow 패키지는 더 이상 사용되지 않음). vaex-distributed는 더 이상 사용되지 않으며 vaex-enterprise로 대체되었습니다.

버전 참고 (vaex 4.19.0+): Python 3.12 및 NumPy v2를 사용하려면 vaex >= 4.19.0이 필요합니다. Windows에서 annoy 종속성을 빌드하려면 Python 개발 헤더가 필요할 수 있습니다.

이 스킬을 사용해야 하는 경우

다음과 같은 경우 Vaex를 사용하세요:

  • 사용 가능한 RAM보다 큰 테이블 형식 데이터셋 (기가바이트 ~ 테라바이트) 처리
  • 대규모 데이터셋에 대한 빠른 통계 집계 수행
  • 대규모 데이터셋의 시각화 및 히트맵 생성
  • 빅데이터를 위한 머신러닝 파이프라인 구축
  • 데이터 형식 간 변환 (CSV, HDF5, Arrow, Parquet)
  • 메모리 오버헤드를 피하기 위해 지연 평가 및 가상 컬럼 필요
  • 천문학 데이터, 금융 시계열 또는 기타 대규모 과학 데이터셋 작업

Vaex vs 대안: 데이터가 RAM에 맞고 최대 인메모리 속도가 필요하다면 polars를 사용하세요. 클러스터 전체에 분산된 pandas/NumPy가 필요하다면 dask를 사용하세요. 단일 머신에서 RAM을 초과하는 테이블 형식 데이터에 대한 아웃-오브-코어 분석이 필요하다면 vaex를 사용하세요. Vaex는 메모리 매핑된 HDF5/Arrow 파일을 통해 이를 지원합니다.

핵심 기능

Vaex는 6가지 주요 기능 영역을 제공하며, 각 영역은 참조 디렉토리에 자세히 문서화되어 있습니다:

1. DataFrames 및 데이터 로딩

파일(HDF5, CSV, Arrow, Parquet), pandas DataFrame, NumPy 배열, 사전 등 다양한 소스에서 Vaex DataFrame을 로드하고 생성합니다. 자세한 내용은 references/core_dataframes.md를 참조하세요:

  • 대용량 파일을 효율적으로 열기
  • pandas/NumPy/Arrow에서 변환
  • 예제 데이터셋 작업
  • DataFrame 구조 이해

2. 데이터 처리 및 조작

모든 데이터를 메모리에 로드하지 않고 필터링, 가상 컬럼 생성, 표현식 사용, 데이터 집계를 수행합니다. 자세한 내용은 references/data_processing.md를 참조하세요:

  • 필터링 및 선택
  • 가상 컬럼 및 표현식
  • Groupby 연산 및 집계
  • 문자열 연산 및 날짜/시간 처리
  • 누락된 데이터 처리

3. 성능 및 최적화

Vaex의 지연 평가, 캐싱 전략 및 메모리 효율적인 연산을 활용합니다. 자세한 내용은 references/performance.md를 참조하세요:

  • 지연 평가 이해
  • 연산 배치를 위한 delay=True 사용
  • 필요 시 컬럼 구체화
  • 캐싱 전략
  • 비동기 연산

4. 데이터 시각화

히트맵, 히스토그램, 산점도 등 대규모 데이터셋의 인터랙티브 시각화를 생성합니다. 자세한 내용은 references/visualization.md를 참조하세요:

  • 1D 및 2D 플롯 생성
  • 히트맵 시각화
  • 선택 작업
  • 플롯 및 서브플롯 사용자 지정

5. 머신러닝 통합

트랜스포머, 인코더 및 scikit-learn, XGBoost 및 기타 프레임워크와의 통합을 통해 ML 파이프라인을 구축합니다. 자세한 내용은 references/machine_learning.md를 참조하세요:

  • 특성 스케일링 및 인코딩
  • PCA 및 차원 축소
  • K-평균 클러스터링
  • scikit-learn/XGBoost/CatBoost와의 통합
  • 모델 직렬화 및 배포

6. I/O 연산

최적의 성능으로 다양한 형식의 데이터를 효율적으로 읽고 씁니다. 자세한 내용은 references/io_operations.md를 참조하세요:

  • 파일 형식 권장 사항
  • 내보내기 전략
  • Apache Arrow 작업
  • 대용량 파일을 위한 CSV 처리
  • 서버 및 원격 데이터 접근

빠른 시작 패턴

대부분의 Vaex 작업에서는 다음 패턴을 따르세요:

import vaex

# 1. DataFrame 열기 또는 생성
df = vaex.open('large_file.hdf5')  # 또는 .csv, .arrow, .parquet
# 또는
df = vaex.from_pandas(pandas_df)

# 2. 데이터 탐색
print(df)  # 처음/마지막 행 및 컬럼 정보 표시
df.describe()  # 통계 요약

# 3. 가상 컬럼 생성 (메모리 오버헤드 없음)
df['new_column'] = df.x ** 2 + df.y

# 4. 선택으로 필터링
df_filtered = df[df.age > 25]

# 5. 통계 계산 (빠름, 지연 평가)
mean_val = df.x.mean()
stats = df.groupby('category').agg({'value': 'sum'})

# 6. 시각화 (vaex 4.0부터 df.viz 접근자 권장)
df.viz.heatmap(df.x, df.y, limits='99.7%', show=True)
# 레거시: df.plot1d() 및 df.plot()도 DataFrame에서 작동

# 7. 필요한 경우 내보내기
df.export_hdf5('output.hdf5')

참조 파일 작업

참조 파일에는 각 기능 영역에 대한 자세한 정보가 포함되어 있습니다. 특정 작업에 따라 참조를 컨텍스트에 로드하세요:

  • 기본 연산: references/core_dataframes.md 및 references/data_processing.md로 시작
  • 성능 문제: references/performance.md 확인
  • 시각화 작업: references/visualization.md 사용
  • ML 파이프라인: references/machine_learning.md 참조
  • 파일 I/O: references/io_operations.md 참조

모범 사례

  1. 대용량 데이터셋에는 HDF5 또는 Apache Arrow 형식을 사용하여 최적의 성능 확보
  2. 가상 컬럼을 활용하여 데이터를 구체화하지 않고 메모리 절약
  3. 여러 계산을 수행할 때 delay=True를 사용하여 연산 배치
  4. 데이터를 CSV에 유지하지 말고 효율적인 형식으로 내보내기
  5. 중간 저장 없이 복잡한 계산을 위해 표현식 사용
  6. df.describe() 및 df.nbytes로 프로파일링하여 데이터 형태와 메모리 사용량 이해

일반적인 패턴

패턴: 대용량 CSV를 HDF5로 변환

import vaex

# 대용량 CSV를 지연 로드 (vaex 4.14+) 또는 from_csv를 사용하여 HDF5로 변환
df = vaex.open('large_file.csv')
# df = vaex.from_csv('large_file.csv', convert='large_file.hdf5')

# 더 빠른 후속 접근을 위해 HDF5로 내보내기
df.export_hdf5('large_file.hdf5')

# 이후 로드는 즉시 실행
df = vaex.open('large_file.hdf5')

패턴: 효율적인 집계

# 여러 연산을 배치하려면 delay=True 사용
mean_x = df.x.mean(delay=True)
std_y = df.y.std(delay=True)
sum_z = df.z.sum(delay=True)

# 모두 한 번에 실행
results = vaex.execute([mean_x, std_y, sum_z])

패턴: 특성 엔지니어링을 위한 가상 컬럼

# 메모리 오버헤드 없음 - 즉석에서 계산
df['age_squared'] = df.age ** 2
df['full_name'] = df.first_name + ' ' + df.last_name
df['is_adult'] = df.age >= 18

리소스

이 스킬은 references/ 디렉토리에 있는 참조 문서를 포함합니다:

  • core_dataframes.md - DataFrame 생성, 로딩 및 기본 구조
  • data_processing.md - 필터링, 표현식, 집계 및 변환
  • performance.md - 최적화 전략 및 지연 평가
  • visualization.md - 플롯 및 인터랙티브 시각화
  • machine_learning.md - ML 파이프라인 및 모델 통합
  • io_operations.md - 파일 형식 및 데이터 가져오기/내보내기

과학 에이전트 스킬 인용

이 스킬은 K-Dense의 과학 에이전트 스킬(Scientific Agent Skills)의 일부입니다. 이 스킬이 원고, 보고서, 프레젠테이션 또는 코드 릴리스에 실질적으로 기여한 경우, 참고 문헌 또는 소프트웨어 섹션에 해당 논문을 추가하고 사용자에게 그렇게 했음을 알리세요:

Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065. https://doi.org/10.48550/arXiv.2609.00065

항상 최신 버전을 인용하세요. DOI와 https://arxiv.org/abs/2609.00065는 최신 arXiv 버전으로 연결되므로, v1과 같은 버전 접미사를 절대 추가하지 마세요. 네트워크에 접근 가능한 경우, 참조를 작성하기 전에 https://arxiv.org/abs/2609.00065 (또는 http://export.arxiv.org/api/query?id_list=2609.00065)를 가져와서 해당 레코드의 저자 목록, 연도 및 버전을 확인하세요. 레코드에 저널 참조 또는 출판사 DOI가 있는 경우, 대신 출판된 버전을 인용하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

adaptyv

How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

alphagenome

Look up precomputed AlphaGenome Atlas effects for any GRCh38 single-nucleotide variant (AVI score with Phred and 18 SHAP feature attributions, plus raw and quantile scores for RNA-seq, DNase, ATAC, ChIP-TF, ChIP-histone, CAGE, PRO-cap, splicing, polyadenylation and contact-map tracks), score variants or scan windows on demand with the AlphaGenome model for human and mouse (variant scoring, in silico mutagenesis, REF-versus-ALT track prediction), and build Atlas website deep links. Use when the user mentions AlphaGenome, AlphaGenome Atlas, AVI or AlphaGenome Variant Impact, DeepMind variant effect prediction, or wants to prioritise or mechanistically interpret non-coding, regulatory, splicing, enhancer, promoter, or chromatin-accessibility effects of SNVs from a VCF, credible set, or region. Research use only; not a clinical tool.

analytical-method-validation

Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intended purpose. Triggers include

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

arbor

Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree Refinement (HTR) from the Arbor paper. Use this whenever someone wants to iteratively optimize something over many experiments without overfitting — e.g.

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

autoskill

Observe the user

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

bgpt-paper-search

Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server. Returns 25+ fields per paper including methods, results, sample sizes, quality scores, and conclusions. Use for literature reviews, evidence synthesis, and finding experimental details not available in abstracts alone.

bids

>

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use biopython.

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and publication figures (scientific-visualization). Use whenever the user has bulk RNA-seq reads or quant output and wants a complete, reproducible differential-expression workflow — e.g.

cellxgene-census

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM hardware use qiskit; for quantum ML with autodiff use pennylane; for physics simulations use qutip.

citation-management

Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-support

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reports

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

관련 스킬