{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-exploratory-data-analysis-23a90930ee2a","title":"Exploratory Data Analysis for Scientific Files","summary":"Perform comprehensive exploratory data analysis on scientific data files across 200+ formats. Automatically detects file type, generates reports, and provides analysis recommendations.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-exploratory-data-analysis-23a90930ee2a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-exploratory-data-analysis-23a90930ee2a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-exploratory-data-analysis-23a90930ee2a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-exploratory-data-analysis-23a90930ee2a\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Provide the file path and ensure the file is accessible for analysis. The skill requires the file to be in a supported format and may need specific Python libraries for reading the file, depending on the format.","instructions":"---\nname: exploratory-data-analysis\ndescription: Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats. This skill should be used when analyzing any scientific data file to understand its structure, content, quality, and characteristics. Automatically detects file type and generate...\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n\n# Exploratory Data Analysis\n\n## Overview\n\nPerform comprehensive exploratory data analysis (EDA) on scientific data files across multiple domains. This skill provides automated file type detection, format-specific analysis, data quality assessment, and generates detailed markdown reports suitable for documentation and downstream analysis planning.\n\n**Key Capabilities:**\n- Automatic detection and analysis of 200+ scientific file formats\n- Comprehensive format-specific metadata extraction\n- Data quality and integrity assessment\n- Statistical summaries and distributions\n- Visualization recommendations\n- Downstream analysis suggestions\n- Markdown report generation\n\n## When to Use This Skill\n\nUse this skill when:\n- User provides a path to a scientific data file for analysis\n- User asks to \"explore\", \"analyze\", or \"summarize\" a data file\n- User wants to understand the structure and content of scientific data\n- User needs a comprehensive report of a dataset before analysis\n- User wants to assess data quality or completeness\n- User asks what type of analysis is appropriate for a file\n\n## Supported File Categories\n\nThe skill has comprehensive coverage of scientific file formats organized into six major categories:\n\n### 1. Chemistry and Molecular Formats (60+ extensions)\nStructure files, computational chemistry outputs, molecular dynamics trajectories, and chemical databases.\n\n**File types include:** `.pdb`, `.cif`, `.mol`, `.mol2`, `.sdf`, `.xyz`, `.smi`, `.gro`, `.log`, `.fchk`, `.cube`, `.dcd`, `.xtc`, `.trr`, `.prmtop`, `.psf`, and more.\n\n**Reference file:** `references\/chemistry_molecular_formats.md`\n\n### 2. Bioinformatics and Genomics Formats (50+ extensions)\nSequence data, alignments, annotations, variants, and expression data.\n\n**File types include:** `.fasta`, `.fastq`, `.sam`, `.bam`, `.vcf`, `.bed`, `.gff`, `.gtf`, `.bigwig`, `.h5ad`, `.loom`, `.counts`, `.mtx`, and more.\n\n**Reference file:** `references\/bioinformatics_genomics_formats.md`\n\n### 3. Microscopy and Imaging Formats (45+ extensions)\nMicroscopy images, medical imaging, whole slide imaging, and electron microscopy.\n\n**File types include:** `.tif`, `.nd2`, `.lif`, `.czi`, `.ims`, `.dcm`, `.nii`, `.mrc`, `.dm3`, `.vsi`, `.svs`, `.ome.tiff`, and more.\n\n**Reference file:** `references\/microscopy_imaging_formats.md`\n\n### 4. Spectroscopy and Analytical Chemistry Formats (35+ extensions)\nNMR, mass spectrometry, IR\/Raman, UV-Vis, X-ray, chromatography, and other analytical techniques.\n\n**File types include:** `.fid`, `.mzML`, `.mzXML`, `.raw`, `.mgf`, `.spc`, `.jdx`, `.xy`, `.cif` (crystallography), `.wdf`, and more.\n\n**Reference file:** `references\/spectroscopy_analytical_formats.md`\n\n### 5. Proteomics and Metabolomics Formats (30+ extensions)\nMass spec proteomics, metabolomics, lipidomics, and multi-omics data.\n\n**File types include:** `.mzML`, `.pepXML`, `.protXML`, `.mzid`, `.mzTab`, `.sky`, `.mgf`, `.msp`, `.h5ad`, and more.\n\n**Reference file:** `references\/proteomics_metabolomics_formats.md`\n\n### 6. General Scientific Data Formats (30+ extensions)\nArrays, tables, hierarchical data, compressed archives, and common scientific formats.\n\n**File types include:** `.npy`, `.npz`, `.csv`, `.xlsx`, `.json`, `.hdf5`, `.zarr`, `.parquet`, `.mat`, `.fits`, `.nc`, `.xml`, and more.\n\n**Reference file:** `references\/general_scientific_formats.md`\n\n## Workflow\n\n### Step 1: File Type Detection\n\nWhen a user provides a file path, first identify the file type:\n\n1. Extract the file extension\n2. Look up the extension in the appropriate reference file\n3. Identify the file category and format description\n4. Load format-specific information\n\n**Example:**\n```\nUser: \"Analyze data.fastq\"\n\u2192 Extension: .fastq\n\u2192 Category: bioinformatics_genomics\n\u2192 Format: FASTQ Format (sequence data with quality scores)\n\u2192 Reference: references\/bioinformatics_genomics_formats.md\n```\n\n### Step 2: Load Format-Specific Information\n\nBased on the file type, read the corresponding reference file to understand:\n- **Typical Data:** What kind of data this format contains\n- **Use Cases:** Common applications for this format\n- **Python Libraries:** How to read the file in Python\n- **EDA Approach:** What analyses are appropriate for this data type\n\nSearch the reference file for the specific extension (e.g., search for \"### .fastq\" in `bioinformatics_genomics_formats.md`).\n\n### Step 3: Perform Data Analysis\n\nUse the `scripts\/eda_analyzer.py` script OR implement custom analysis:\n\n**Option A: Use the analyzer script**\n```python\n# The script automatically:\n# 1. Detects file type\n# 2. Loads reference information\n# 3. Performs format-specific analysis\n# 4. Generates markdown report\n\npython scripts\/eda_analyzer.py <filepath> [output.md]\n```\n\n**Option B: Custom analysis in the conversation**\nBased on the format information from the reference file, perform appropriate analysis:\n\nFor tabular data (CSV, TSV, Excel):\n- Load with pandas\n- Check dimensions, data types\n- Analyze missing values\n- Calculate summary statistics\n- Identify outliers\n- Check for duplicates\n\nFor sequence data (FASTA, FASTQ):\n- Count sequences\n- Analyze length distributions\n- Calculate GC content\n- Assess quality scores (FASTQ)\n\nFor images (TIFF, ND2, CZI):\n- Check dimensions (X, Y, Z, C, T)\n- Analyze bit depth and value range\n- Extract metadata (channels, timestamps, spatial calibration)\n- Calculate intensity statistics\n\nFor arrays (NPY, HDF5):\n- Check shape and dimensions\n- Analyze data type\n- Calculate statistical summaries\n- Check for missing\/invalid values\n\n### Step 4: Generate Comprehensive Report\n\nCreate a markdown report with the following sections:\n\n#### Required Sections:\n1. **Title and Metadata**\n   - Filename and timestamp\n   - File size and location\n\n2. **Basic Information**\n   - File properties\n   - Format identification\n\n3. **File Type Details**\n   - Format description from reference\n   - Typical data content\n   - Common use cases\n   - Python libraries for reading\n\n4. **Data Analysis**\n   - Structure and dimensions\n   - Statistical summaries\n   - Quality assessment\n   - Data characteristics\n\n5. **Key Findings**\n   - Notable patterns\n   - Potential issues\n   - Quality metrics\n\n6. **Recommendations**\n   - Preprocessing steps\n   - Appropriate analyses\n   - Tools and methods\n   - Visualization approaches\n\n#### Template Location\nUse `assets\/report_template.md` as a guide for report structure.\n\n### Step 5: Save Report\n\nSave the markdown report with a descriptive filename:\n- Pattern: `{original_filename}_eda_report.md`\n- Example: `experiment_data.fastq` \u2192 `experiment_data_eda_report.md`\n\n## Detailed Format References\n\nEach reference file contains comprehensive information for dozens of file types. To find information about a specific format:\n\n1. Identify the category from the extension\n2. Read the appropriate reference file\n3. Search for the section heading matching the extension (e.g., \"### .pdb\")\n4. Extract the format information\n\n### Reference File Structure\n\nEach format entry includes:\n- **Description:** What the format is\n- **Typical Data:** What it contains\n- **Use Cases:** Common applications\n- **Python Libraries:** How to read it (with code examples)\n- **EDA Approach:** Specific analyses to perform\n\n**Example lookup:**\n```markdown\n### .pdb - Protein Data Bank\n**Description:** Standard format for 3D structures of biological macromolecules\n**Typical Data:** Atomic coordinates, residue information, secondary structure\n**Use Cases:** Protein structure analysis, molecular visualization, docking\n**Python Libraries:**\n- `Biopython`: `Bio.PDB`\n- `MDAnalysis`: `MDAnalysis.Universe('file.pdb')`\n**EDA Approach:**\n- Structure validation (bond lengths, angles)\n- B-factor distribution\n- Missing residues detection\n- Ramachandran plots\n```\n\n## Best Practices\n\n### Reading Reference Files\n\nReference files are large (10,000+ words each). To efficiently use them:\n\n1. **Search by extension:** Use grep to find the specific format\n   ```python\n   import re\n   with open('references\/chemistry_molecular_formats.md', 'r') as f:\n       content = f.read()\n       pattern = r'### \\.pdb[^#]*?(?=###|\\Z)'\n       match = re.search(pattern, content, re.IGNORECASE | re.DOTALL)\n   ```\n\n2. **Extract relevant sections:** Don't load entire reference files into context unnecessarily\n\n3. **Cache format info:** If analyzing multiple files of the same type, reuse the format information\n\n### Data Analysis\n\n1. **Sample large files:** For files with millions of records, analyze a representative sample\n2. **Handle errors gracefully:** Many scientific formats require specific libraries; provide clear installation instructions\n3. **Validate metadata:** Cross-check metadata consistency (e.g., stated dimensions vs actual data)\n4. **Consider data provenance:** Note instrument, software versions, processing steps\n\n### Report Generation\n\n1. **Be comprehensive:** Include all relevant information for downstream analysis\n2. **Be specific:** Provide concrete recommendations based on the file type\n3. **Be actionable:** Suggest specific next steps and tools\n4. **Include code examples:** Show how to load and work with the data\n\n## Examples\n\n### Example 1: Analyzing a FASTQ file\n\n```python\n# User provides: \"Analyze reads.fastq\"\n\n# 1. Detect file type\nextension = '.fastq'\ncategory = 'bioinformatics_genomics'\n\n# 2. Read reference info\n# Search references\/bioinformatics_genomics_formats.md for \"### .fastq\"\n\n# 3. Perform analysis\nfrom Bio import SeqIO\nsequences = list(SeqIO.parse('reads.fastq', 'fastq'))\n# Calculate: read count, length distribution, quality scores, GC content\n\n# 4. Generate report\n# Include: format description, analysis results, QC recommendations\n\n# 5. Save as: reads_eda_report.md\n```\n\n### Example 2: Analyzing a CSV dataset\n\n```python\n# User provides: \"Explore experiment_results.csv\"\n\n# 1. Detect: .csv \u2192 general_scientific\n\n# 2. Load reference for CSV format\n\n# 3. Analyze\nimport pandas as pd\ndf = pd.read_csv('experiment_results.csv')\n# Dimensions, dtypes, missing values, statistics, correlations\n\n# 4. Generate report with:\n# - Data structure\n# - Missing value patterns\n# - Statistical summaries\n# - Correlation matrix\n# - Outlier detection results\n\n# 5. Save report\n```\n\n### Example 3: Analyzing microscopy data\n\n```python\n# User provides: \"Analyze cells.nd2\"\n\n# 1. Detect: .nd2 \u2192 microscopy_imaging (Nikon format)\n\n# 2. Read reference for ND2 format\n# Learn: multi-dimensional (XYZCT), requires nd2reader\n\n# 3. Analyze\nfrom nd2reader import ND2Reader\nwith ND2Reader('cells.nd2') as images:\n    # Extract: dimensions, channels, timepoints, metadata\n    # Calculate: intensity statistics, frame info\n\n# 4. Generate report with:\n# - Image dimensions (XY, Z-stacks, time, channels)\n# - Channel wavelengths\n# - Pixel size and calibration\n# - Recommendations for image analysis\n\n# 5. Save report\n```\n\n## Troubleshooting\n\n### Missing Libraries\n\nMany scientific formats require specialized libraries:\n\n**Problem:** Import error when trying to read a file\n\n**Solution:** Provide clear installation instructions\n```python\ntry:\n    from Bio import SeqIO\nexcept ImportError:\n    print(\"Install Biopython: uv pip install biopython\")\n```\n\nCommon requirements by category:\n- **Bioinformatics:** `biopython`, `pysam`, `pyBigWig`\n- **Chemistry:** `rdkit`, `mdanalysis`, `cclib`\n- **Microscopy:** `tifffile`, `nd2reader`, `aicsimageio`, `pydicom`\n- **Spectroscopy:** `nmrglue`, `pymzml`, `pyteomics`\n- **General:** `pandas`, `numpy`, `h5py`, `scipy`\n\n### Unknown File Types\n\nIf a file extension is not in the references:\n\n1. Ask the user about the file format\n2. Check if it's a vendor-specific variant\n3. Attempt generic analysis based on file structure (text vs binary)\n4. Provide general recommendations\n\n### Large Files\n\nFor very large files:\n\n1. Use sampling strategies (first N records)\n2. Use memory-mapped access (for HDF5, NPY)\n3. Process in chunks (for CSV, FASTQ)\n4. Provide estimates based on samples\n\n## Script Usage\n\nThe `scripts\/eda_analyzer.py` can be used directly:\n\n```bash\n# Basic usage\npython scripts\/eda_analyzer.py data.csv\n\n# Specify output file\npython scripts\/eda_analyzer.py data.csv output_report.md\n\n# The script will:\n# 1. Auto-detect file type\n# 2. Load format references\n# 3. Perform appropriate analysis\n# 4. Generate markdown report\n```\n\nThe script supports automatic analysis for many common formats, but custom analysis in the conversation provides more flexibility and domain-specific insights.\n\n## Advanced Usage\n\n### Multi-File Analysis\n\nWhen analyzing multiple related files:\n1. Perform individual EDA on each file\n2. Create a summary comparison report\n3. Identify relationships and dependencies\n4. Suggest integration strategies\n\n### Quality Control\n\nFor data quality assessment:\n1. Check format compliance\n2. Validate metadata consistency\n3. Assess completeness\n4. Identify outliers and anomalies\n5. Compare to expected ranges\/distributions\n\n### Preprocessing Recommendations\n\nBased on data characteristics, recommend:\n1. Normalization strategies\n2. Missing value imputation\n3. Outlier handling\n4. Batch correction\n5. Format conversions\n\n## Resources\n\n### scripts\/\n- `eda_analyzer.py`: Comprehensive analysis script that can be run directly or imported\n\n### references\/\n- `chemistry_molecular_formats.md`: 60+ chemistry\/molecular file formats\n- `bioinformatics_genomics_formats.md`: 50+ bioinformatics formats\n- `microscopy_imaging_formats.md`: 45+ imaging formats\n- `spectroscopy_analytical_formats.md`: 35+ spectroscopy formats\n- `proteomics_metabolomics_formats.md`: 30+ omics formats\n- `general_scientific_formats.md`: 30+ general formats\n\n### assets\/\n- `report_template.md`: Comprehensive markdown template for EDA reports\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `exploratory-data-analysis` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `exploratory-data-analysis` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n","use_cases":["Analyze a FASTQ file to understand sequence data and quality scores","Assess the structure and content of a CSV file for downstream analysis","Evaluate data quality in a NIfTI file for medical imaging research"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/exploratory-data-analysis\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T11:29:05.000000Z","updated_at":"2026-11-24T07:14:56.000000Z","seo_title":"Exploratory Data Analysis for Scientific Files","seo_description":"Automated exploratory data analysis for scientific data files. Supports 200+ formats, generates reports, and provides analysis recommendations.","seo_keywords":["scientific data analysis","file format analysis","exploratory data analysis","data quality assessment","scientific data reporting"]}}