{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-protocol-design-bioinfo-analysis-plan-3f6a423a17d8","title":"Bioinformatics Analysis Workflow Extraction and Plan Design","summary":"Extract and summarize bioinformatics analysis workflows from scientific papers, then design customized analysis plans for new diseases or phenotypes. The deliverable is a structured Markdown summary file converted to a professionally formatted `.docx` document.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-protocol-design-bioinfo-analysis-plan-3f6a423a17d8","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-protocol-design-bioinfo-analysis-plan-3f6a423a17d8","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-protocol-design-bioinfo-analysis-plan-3f6a423a17d8.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-protocol-design-bioinfo-analysis-plan-3f6a423a17d8\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before starting, ensure the required PDF file is present in the workspace. If not, upload the PDF literature file to the current working directory. The workflow begins with a direct read of the PDF using the Read tool, followed by a full-text extraction using the `extract_pdf.py` script if needed.","instructions":"---\nname: bioinfo-analysis-plan\ndescription: Bioinformatics literature analysis workflow extraction and customized plan design. Triggered only when the user explicitly refers to a specific paper: the user requests extracting analysis pipelines from a paper, summarizing technical workflows, reproducing analysis approaches...\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n\n# Bioinformatics Analysis Workflow Extraction and Plan Design Skill\n\n## Core Task\n\nThe core objectives of this skill are:\n1. **Systematically extract** the complete analysis workflow of a bioinformatics paper (at the macro pipeline level)\n2. **Design customized** analysis plans for new diseases\/phenotypes\n\n## Workflow\n\n### Step 1: Confirm Literature Source\n\nWhen the user expresses intent to extract an analysis workflow:\n\n- **If a PDF file already exists in the workspace** (check the directory for `.pdf` files via Glob): use it directly, inform the user which file is being used\n- **If no file exists**: ask the user to upload\/provide the PDF literature file\n  - Prompt the user that the file should be placed in the current working directory\n  - If necessary, remind the user they can provide it via drag-and-drop or upload\n\n### Step 2: Read and Extract Analysis Workflow\n\nThis skill includes a built-in `scripts\/extract_pdf.py` Python script for PDF text extraction (depends on the PyMuPDF library, pre-installed in the environment).\n\n**PDF Reading Strategy (two complementary methods):**\n\n**Method A \u2014 Direct Read tool (preferred):**\nUse the `Read` tool to directly read the PDF file. Some environments support PDF rendering and can directly obtain text content.\n- Advantage: No extra steps needed, completed in one action\n- Limitation: Chart text may be missing or misaligned (this is normal)\n- Focus on the Methods and Results sections\n\n**Method B \u2014 Python script full-text extraction (recommended\/fallback):**\nIf Read tool output is insufficient, or more complete text is needed, use Bash to run the extraction script:\n\n```bash\npython3 scripts\/extract_pdf.py <pdf_path> <output_txt_path>\n```\n\nThe script extracts text from all PDF pages and saves it as a `.txt` file with page number markers. Then use the Read tool to read the generated txt file.\n\n**Recommended workflow:**\n1. First use Method A (Read tool) for a quick overview of the PDF to get the overall structure\n2. If key information is incomplete (e.g., methods section is truncated, chart text is missing), use Method B to extract full text\n3. Cross-reference the txt file text with the Read tool content to ensure completeness\n\nThe extracted analysis workflow should be at the **macro pipeline level**, identifying the **major analysis stages** in the paper, with each stage including:\n- **Stage name** (e.g., data preprocessing, differential expression analysis, functional enrichment analysis, prognostic model construction, immune infiltration analysis, etc.)\n- **Purpose** (why this step is performed)\n- **Methods\/tools\/databases used** (e.g., limma package, clusterProfiler, LASSO regression, TCGA database, etc.)\n- **Key parameters or filtering criteria** (e.g., |log2FC|>1, adj.P<0.05, P<0.05, etc.)\n- **Input and output** (what data goes in at each step, what results come out)\n\nNotes during extraction:\n- Focus on the **logical relationships** and **sequential order** between analysis methods (which step depends on the output of which)\n- Identify whether the paper uses **single-dataset analysis** or **multi-dataset validation**, and their validation strategies\n- Distinguish between **primary analyses** and **supplementary analyses** (Supplementary)\n- If the paper contains multiple independent analysis tracks (e.g., transcriptomics + single-cell + epigenomics), summarize each separately\n\n### Step 3: Output Analysis Workflow Summary\n\nThe output process is: **first generate a Markdown intermediate file, then convert to `.docx` format using `scripts\/generate_docx.py` for user delivery**.\n\n#### 3a. Generate Markdown Intermediate File\n\nWrite a structured summary document in **Chinese Markdown format**, saved as `analysis_workflow_summary.md` (as an intermediate file).\n\nDocument structure as follows (adjust according to actual paper content; it is not necessary to strictly follow this structure, but ensure it is structured):\n\n```markdown\n# Literature Analysis Workflow Summary\n\n**Literature Information**: [Title], [Journal\/Year] (note if identifiable from the PDF)\n\n## Analysis Pipeline Overview\nUse a flowchart or bullet points to briefly describe the overall analysis pipeline, giving readers an at-a-glance understanding.\n\n## Stage 1: [Stage Name]\n### Purpose\n### Data Source\n### Methods\/Tools\n### Key Parameters\/Filtering Criteria\n### Main Output Results\n\n## Stage 2: [Stage Name]\n...\n\n## Key Validation Strategies\n- Internal validation:\n- External validation:\n- Other validation:\n\n## Reusable Analysis Patterns\nExtract generalizable analysis approaches (e.g., \"differential screening \u2192 LASSO dimensionality reduction \u2192 multivariate regression model building \u2192 multi-dataset validation\" as a universal pattern)\n```\n\n#### 3b. Convert to Word Document\n\nUse the built-in script to convert Markdown to a professionally formatted `.docx` file:\n\n```bash\npython3 scripts\/generate_docx.py analysis_workflow_summary.md .\n```\n\nThe script generates `analysis_workflow_summary.docx`, including:\n- Correct Chinese\/English font settings (SimSun\/Times New Roman)\n- Hierarchical heading formats (SimHei bold, Level 1 18pt centered, Level 2 15pt, Level 3 13pt)\n- **Bold**, *italic*, `code` inline format rendering\n- Markdown tables rendered as Word tables (headers with blue background)\n- Code blocks in monospaced font\n- List rendering (ordered\/unordered)\n- Professional page setup (2.54cm margins)\n\nAfter outputting the `.docx`, **also display a core content summary in the conversation** (no need to show the full text; provide the pipeline overview and key findings, guiding the user to view the `.docx` file).\n\n### Step 4: Ask Whether a Customized Plan is Needed\n\nAfter outputting the summary, proactively ask the user:\n\n> Would you like a customized analysis plan designed for another disease or phenotype using this analysis workflow? If so, please provide the disease\/phenotype name you are interested in.\n\n### Step 5: Design Customized Analysis Plan\n\nIf the user provides a disease\/phenotype name:\n\nBased on the workflow extracted in Step 2, design an adapted plan stage by stage for the new disease\/phenotype.\n\nOutput process: first generate `custom_analysis_plan_[disease_name].md` intermediate file, then convert to `.docx`:\n\n```bash\npython3 scripts\/generate_docx.py custom_analysis_plan_[disease_name].md .\n```\n\nAdaptation principles:\n- **Maintain the core logic of each analysis stage**, but select appropriate databases, parameters, and tools for the new disease\n- **Data sources**: Recommend relevant public databases for the new disease (TCGA, GEO, ICGC, GTEx, etc.) or specify what data needs to be collected independently\n- **Sample size considerations**: Different diseases have varying sample availability; adjust analysis strategies accordingly (e.g., rare diseases may require different modeling approaches)\n- **Clinical relevance**: Combine with the clinical characteristics of the new disease to suggest clinically meaningful analysis entry points\n- **Feasibility assessment**: Provide actionable recommendations for each stage, noting potential difficulties\n\nOutput format similar to Step 3, but with added \"Adaptation Notes\":\n\n```markdown\n# Customized Analysis Plan: [New Disease\/Phenotype Name]\n\n## Based on Literature Workflow: [Original Paper Analysis Pipeline Name]\n\n### Stage 1: [Stage Name] \u2192 Adapted Plan\n- **Original method**:\n- **Adaptation recommendations**:\n- **Recommended databases\/tools**:\n- **Notes**:\n\n...\n```\n\n### Notes and Principles\n\n1. **Chinese interaction**: Communicate with the user in Chinese throughout; output is also in Chinese Markdown\n2. **Macro granularity**: Do not go down to line-by-line code or specific syntax level; stay at the method\/tool level\n3. **Honest labeling**: If PDF content is insufficient to extract information about certain stages, explicitly note \"not clearly stated in the paper\" rather than fabricating\n4. **No preset templates**: Dynamically construct structure based on actual paper content; do not force-fit a fixed template\n5. **File management**: First generate `.md` intermediate file (can be cleaned before output), then use `scripts\/generate_docx.py` to convert to `.docx` format. The final deliverable to the user is the `.docx` file. Intermediate `.md` files can be kept or deleted as needed\n6. **PDF reading strategy**: Prefer using the Read tool to directly read PDFs; if content is incomplete (e.g., chart text missing, methods section truncated), immediately use `scripts\/extract_pdf.py` via Bash to extract full text. The extraction script depends on PyMuPDF, pre-installed in the environment. Be especially careful when extracting information from the Methods and Results sections \u2014 these are the essence of the analysis workflow\n7. **Multiple files scenario**: If there are multiple PDFs in the workspace, ask the user to specify which paper to analyze\n8. **Emphasize universal patterns**: When outputting \"Reusable Analysis Patterns\", distill transferable strategies that can be applied to other similar studies \u2014 this is the most valuable part for the user\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If execution fails, report the failure point, summarize what can still be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `bioinfo_analysis_plan` 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> `bioinfo_analysis_plan` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n","use_cases":["Extract analysis pipelines from a bioinformatics paper to understand its methodology and results.","Design a customized analysis plan for a new disease or phenotype based on an existing workflow."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Protocol%20Design\/bioinfo-analysis-plan\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T16:29:04.000000Z","updated_at":"2026-11-26T09:25:15.000000Z","seo_title":"Bioinformatics Analysis Workflow Extraction Tool","seo_description":"Extract and summarize bioinformatics analysis workflows from scientific papers. Design customized analysis plans for new diseases or phenotypes.","seo_keywords":["Bioinformatics workflow extraction","Scientific paper analysis","Customized analysis plan design","Bioinformatics pipeline summary","Medical research workflow"]}}