基于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
- 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)
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bioff-0.2.0.tar.gz.
File metadata
- Download URL: bioff-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b92ffb05dec6a3619eb94534369436d905d48df298a683acc99ecf16d801ff6
|
|
| MD5 |
b8efd5e5b7e8d6381bd2e6b0bd19cc4f
|
|
| BLAKE2b-256 |
89ede78645d6f1d84ed8cfb79f71594efe83b57dbb5de756dbe9147e0a07855b
|
Provenance
The following attestation bundles were made for bioff-0.2.0.tar.gz:
Publisher:
python-publish.yml on smallWhite-0124/BioFF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bioff-0.2.0.tar.gz -
Subject digest:
6b92ffb05dec6a3619eb94534369436d905d48df298a683acc99ecf16d801ff6 - Sigstore transparency entry: 1339396386
- Sigstore integration time:
-
Permalink:
smallWhite-0124/BioFF@6644c1c93ef3c8a8aabf82edb5a6902907efafde -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/smallWhite-0124
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6644c1c93ef3c8a8aabf82edb5a6902907efafde -
Trigger Event:
release
-
Statement type:
File details
Details for the file bioff-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bioff-0.2.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09d4cedaf335231c3a00f42426ae3e0af31de216cc434098f2ecaac069648376
|
|
| MD5 |
4742c8a9f502910ab7406ed333d3c7e8
|
|
| BLAKE2b-256 |
42f13e79140cfe83db83ed1405d8865af3e6b828704776ab63f333fe3450238a
|
Provenance
The following attestation bundles were made for bioff-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on smallWhite-0124/BioFF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bioff-0.2.0-py3-none-any.whl -
Subject digest:
09d4cedaf335231c3a00f42426ae3e0af31de216cc434098f2ecaac069648376 - Sigstore transparency entry: 1339396389
- Sigstore integration time:
-
Permalink:
smallWhite-0124/BioFF@6644c1c93ef3c8a8aabf82edb5a6902907efafde -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/smallWhite-0124
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6644c1c93ef3c8a8aabf82edb5a6902907efafde -
Trigger Event:
release
-
Statement type: