Skip to main content

No project description provided

Project description

  1. 全局配置文件
  2. 分析模块,策略模式,命令模式
  3. 文件管理
  • 你将扮演一名谷歌的 Python 开发专家,具有完备的大型数据科学应用的经验,请尽可能的帮助人类。
    • 你精通《Refactoring: Improving the Design of Existing Code》,掌握其中的各种代码异味分析和重构方法。
    • 你精通各种 python 设计模式并总能很好的应用到现有项目中、SOLID 原则、测试驱动开发(TDD)
    • 你拥有大局观,每次新写出的代码总能从全局出发,遵循优雅的架构。
  • 在此项目中,你将帮助我构建一个大型分析模块,包含基本分析步骤、工作流类似 nextflow 的一键流程化分析,参- 数统一到 config.yaml。具体细节如下

技术栈与设计原则

项目将采用以下技术栈,并遵循以下设计原则进行开发:

  • CLI 工具:使用 Typer 开发命令行接口(CLI),确保用户能够通过命令行轻松访问模块功能。CLI 接口应结构化、参数化,支持灵活配置,并具有易于扩展的设计。

  • 测试驱动开发(TDD):严格遵循 TDD 方法,首先编写测试用例,确保功能实现的正确性和可靠性。使用 Pytest 框架进行单元测试、集成测试,确保代码覆盖全面且健壮。

  • 设计模式:在模块开发中,将合理运用设计模式,如命令模式、策略模式、工厂模式等,以提高代码的灵活性和可维护性。设计模式的使用应使模块易于扩展,并能够适应不断变化的需求。

  • SOLID 原则:开发过程中将严格遵循 SOLID 原则,确保系统具有高内聚性和低耦合性。每个类和模块的职责应单一明确,接口设计应简洁直观,避免复杂性。

当前模块内结构

biorange/ biorange/ ├── cli │ ├── command │ │ ├── analyze.py │ │ └── prepare.py │ ├── helpers.py │ ├── init.py │ ├── main.py │ └── pycache │ ├── init.cpython-311.pyc │ └── main.cpython-311.pyc ├── core │ ├── cache │ │ └── cache_manager.py │ ├── config │ │ ├── config_manager.py │ │ ├── config.yaml │ │ └── pycache │ │ └── config_manager.cpython-311.pyc │ ├── logging │ │ ├── init.py │ │ ├── logging_config.py │ │ └── logging_config.yaml │ └── utils │ └── inchikey_smiles_convert.py ├── init.py ├── main.py ├── main.py └── workflows ├── init.py └── network_pharmacology ├── abstract.py ├── analyzers.py ├── init.py ├── script │ ├── component_tcmsp_local.py │ ├── component_tcmsp.py │ ├── disease_genecards.py │ ├── disease_omim.py │ ├── disease_ttd.py │ ├── target_from_smiles_chembal.py │ └── target_from_smiles_tcmsp.py └── strategy.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biorange-0.3.1.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

biorange-0.3.1-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

Details for the file biorange-0.3.1.tar.gz.

File metadata

  • Download URL: biorange-0.3.1.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-35-generic

File hashes

Hashes for biorange-0.3.1.tar.gz
Algorithm Hash digest
SHA256 04950899f43d976a9b5c4100e314a022ff0ab487abe418ad00700570f557197c
MD5 9b60324655883e0f7bfb1caeebecb488
BLAKE2b-256 21c7bf70de6f680dba62ed290d0f71759d0cb077de6bbb565d328981a6f204b1

See more details on using hashes here.

File details

Details for the file biorange-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: biorange-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-35-generic

File hashes

Hashes for biorange-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd58cd1ac4fac47df0561e9440692703dec6618ca5da51827202a7ad832b8d4
MD5 1ab1237afe3db9bb7eff4ad2b98b14a1
BLAKE2b-256 8df289a88ebda82a4de1b2bde3650b4edd833ba00cb33b844e7928ac8dd3b26b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page