Skip to main content

基于Forward-Forward算法的生物信息学分类工具(适配基因/蛋白质表达数据)

Project description

BioFF BioFF (Bioinformatics Forward-Forward) is a classification tool tailored for bioinformatics tasks (e.g., normal/tumor sample classification) based on the Forward-Forward algorithm, optimized for gene/protein expression data. Installation

Acknowledgements & Open Source Credits

The core implementation and code structure of this project are based on the open-source repository below. We sincerely thank the original author for their contributions:

  • Repository Name: pytorch_forward_forwar

Author: mpezeshki

Repository URL: https://github.com/mpezeshki/pytorch_forward_forwar Notes This project is developed and improved based on the aforementioned open-source repository, following open-source protocols and respecting the original author's work. bash 运行

Source code installation

git clone https://github.com/smallWhite-0124/BioFF.git cd bioff pip install . Quick Start

  1. Data Preparation Prepare two txt files (one sample per line, the last column is integer label): good_samples.txt: Positive samples (label 0) bad_samples.txt: Negative samples (label 1)
  2. One-click Run python 运行 from bioff import run_prediction

Core call

model, results = run_prediction( good_path="good_samples.txt", bad_path="bad_samples.txt" )

Check accuracy

print("Test set accuracy:", results["accuracy"]) Notes Input txt files must be 2D matrices with consistent feature numbers per line Automatically adapts to CPU/GPU, no manual configuration required License MIT

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

bioff-0.2.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bioff-0.2.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file bioff-0.2.2.tar.gz.

File metadata

  • Download URL: bioff-0.2.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bioff-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e121469c2ba347e50dd04c548d205809d00a1f8f7cb90b99e223646b7e80905f
MD5 e5b20f1b0aedad5550502381dd417f4b
BLAKE2b-256 fa0d7715b990e79a3e82d4cc4a0be16712c11827ddca5fc32c3a7aabd61d1757

See more details on using hashes here.

Provenance

The following attestation bundles were made for bioff-0.2.2.tar.gz:

Publisher: python-publish.yml on smallWhite-0124/BioFF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bioff-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: bioff-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bioff-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f29be21e52bfa13f8e8ae3444f70eebdf1866242448bf488f11ced8d582c13
MD5 64162d7021039bd8faee526d1e0db469
BLAKE2b-256 3e60f38d8e0279e88f5523c0ce10e1ba8cde0c4f6c1462bf436d5306282d4ed0

See more details on using hashes here.

Provenance

The following attestation bundles were made for bioff-0.2.2-py3-none-any.whl:

Publisher: python-publish.yml on smallWhite-0124/BioFF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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