{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-lipinski-rule-filter-3dd8e9e32ca5","title":"Filter Compound Libraries Using Lipinski's Rule of Five","summary":"Filter small molecule compound libraries based on Lipinski's Rule of Five to identify compounds with poor absorption. The output includes a filtered list of compounds that meet the specified rule thresholds.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-lipinski-rule-filter-3dd8e9e32ca5","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-lipinski-rule-filter-3dd8e9e32ca5","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-lipinski-rule-filter-3dd8e9e32ca5.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-lipinski-rule-filter-3dd8e9e32ca5\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure Python 3.10+ is installed and the `rdkit-pypi` package is available before running the script. The `--violations` parameter defaults to 1, which defines the maximum allowed Lipinski rule violations.","instructions":"---\nname: lipinski-rule-filter\ndescription: Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Lipinski Rule Filter\n\nFilter small molecule compound libraries based on Lipinski's Rule of Five to identify compounds with poor absorption.\n\n## When to Use\n\n- Use this skill when the task needs Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.\n- Use this skill for data analysis tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\n\n## Key Features\n\n- Scope-focused workflow aligned to: Filter compound libraries based on Lipinski's Rule of Five for drug-likeness.\n- Packaged executable path(s): `scripts\/main.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\nSee `## Prerequisites` above for related details.\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `rdkit-pypi`: `unspecified`. Declared in `requirements.txt`.\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Data Analytics\/lipinski-rule-filter\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\npython scripts\/main.py --input \"Audit validation sample with explicit symptoms, history, assessment, and next-step plan.\"\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Usage\n\n```text\npython scripts\/main.py --input compounds.smi --output filtered.smi\npython scripts\/main.py --smiles \"CC(=O)Oc1ccccc1C(=O)O\" --check\n```\n\n## Parameters\n\n| Parameter | Type | Required | Default | Description |\n|-----------|------|----------|---------|-------------|\n| `--input` | str | No | - | Input SMILES\/SDF file path |\n| `--smiles` | str | No | - | Single SMILES string to check |\n| `--output` | str | No | - | Output file path for passing compounds |\n| `--violations` | int | No | 1 | Maximum allowed Lipinski rule violations |\n\n## Lipinski's Rules\n\n- MW < 500 Da\n- LogP < 5\n- H-bond donors < 5\n- H-bond acceptors < 10\n\n## Output\n\n- Filtered compound list\n- Rule violation report\n- Drug-likeness score\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python\/R scripts executed locally | Medium |\n| Network Access | No external API calls | Low |\n| File System Access | Read input files, write output files | Medium |\n| Instruction Tampering | Standard prompt guidelines | Low |\n| Data Exposure | Output files saved to workspace | Low |\n\n## Security Checklist\n\n- [ ] No hardcoded credentials or API keys\n- [ ] No unauthorized file system access (..\/)\n- [ ] Output does not expose sensitive information\n- [ ] Prompt injection protections in place\n- [ ] Input file paths validated (no ..\/ traversal)\n- [ ] Output directory restricted to workspace\n- [ ] Script execution in sandboxed environment\n- [ ] Error messages sanitized (no stack traces exposed)\n- [ ] Dependencies audited\n\n## Prerequisites\n\nNo additional Python packages required.\n\n## Evaluation Criteria\n\n### Success Metrics\n- [ ] Successfully executes main functionality\n- [ ] Output meets quality standards\n- [ ] Handles edge cases gracefully\n- [ ] Performance is acceptable\n\n### Test Cases\n1. **Basic Functionality**: Standard input \u2192 Expected output\n2. **Edge Case**: Invalid input \u2192 Graceful error handling\n3. **Performance**: Large dataset \u2192 Acceptable processing time\n\n## Lifecycle Status\n\n- **Current Stage**: Draft\n- **Next Review Date**: 2026-03-06\n- **Known Issues**: None\n- **Planned Improvements**: \n  - Performance optimization\n  - Additional feature support\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\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 `scripts\/main.py` fails, report the failure point, summarize what still can 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 `lipinski-rule-filter` 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> `lipinski-rule-filter` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Filter a compound library to identify molecules that may have poor absorption properties.","Validate drug-likeness of a single compound using Lipinski's Rule of Five."],"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\/lipinski-rule-filter\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T11:45:13.000000Z","updated_at":"2026-11-24T07:14:56.000000Z","seo_title":"Lipinski Rule Filter for Drug-Likeness","seo_description":"Filter compound libraries using Lipinski's Rule of Five to assess drug-likeness and absorption potential.","seo_keywords":["Lipinski Rule Filter","Drug-Likeness Analysis","Compound Library Filtering","Absorption Prediction","Molecular Properties Check"]}}