Skip to main content

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

Metadata

Release files for BioFF 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BioFF 1.1.0
File Size Uploaded Provenance Actions
bioff-1.1.0.tar.gz 8.8 kB With provenance Details for bioff-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for BioFF 1.1.0
File Interpreter ABI Platform Actions
bioff-1.1.0-py3-none-any.whl Python 3 none any Details for bioff-1.1.0-py3-none-any.whl

Total release size: 19.3 kB

Release files / bioff-1.1.0.tar.gz

Download URL bioff-1.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
29421324f115367b2620b534c2499e8d9c168e004e3d8f65947d766264f1bb5d
BLAKE2b-256 checksum
How to use checksums
41dd99b2570eefd82af2e28e72300b0294689aa65818ff6705e142850dc23a32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

Release files / bioff-1.1.0-py3-none-any.whl

Download URL bioff-1.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
997ac77be3565bfeaba407eebe166a95cd8fd1817f5e7f330dbf54583bd7bf45
BLAKE2b-256 checksum
How to use checksums
5352f9205e79deb6eb2e219ae5bea6228ebed9fab6f75ba958f98f1cd5fa1779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

Security for BioFF 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bioff-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page