Skip to main content

With biofkit, sequence can be easily extract from pdb. And more functions will be added.

Project description

biofkit

Biofkit is now containing only one module with one package which can transfer pdb into fasta (or a sequence dictionary) very easily.

How to Install

Conda

conda install -c chou_uken biofkit

Mamba

mamba install -c chou_uken biofkit

Pip

pip install biofkit

How to Use

ProteinKit

from proteinKit import pdbKit

# if argument fasta is True, a fasta file will be created in the same path as the pdb file.
pdbKit.pdb2Seq(pdbFilePath: str, fasta: bool = False, fastaLineLen: int = 80) -> dict[str, str]
    # pdfFilePath: the file path of the pdb you want to transfer.
    # fasta: Whether to transfer into fasta file. If false, pdb will only be transferred to a dictionary.{chainId: Seq}
    # fastaLineLen: How many residues are contained in a single line of the fasta, only work when `fasta` is true.

# load the information of all amino-acid-residue atoms into a list which can be converted to a dataframe with famous `pandas`.
pdbKit.pdb2dfList(pdbFilePath: str, colName: bool = True) -> list[list[int, str, str, int, str, float, float, float]]:
    # pdbFilePath: the file path of the pdb you want to load.
    # colName: a prepared colname list for the output. If colName is true, pdb can be directly transfer to a pandas dataframe.

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

biofkit-0.0.4.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

biofkit-0.0.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file biofkit-0.0.4.tar.gz.

File metadata

  • Download URL: biofkit-0.0.4.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for biofkit-0.0.4.tar.gz
Algorithm Hash digest
SHA256 120a364449bb53416f18657a526ff8ba57578d92c13e2111cecfaef71ca0f8d2
MD5 05f8e3b6844b072bfecdaa3e9ebf5399
BLAKE2b-256 2fa9bfef459c173bc495dbf227a0b82869e79386e04b98fcc199309fe59d213b

See more details on using hashes here.

File details

Details for the file biofkit-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: biofkit-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for biofkit-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f96c7598dd327c51209a8c9e5123db1f75cf78b0590f5f07c3cef0b128567a70
MD5 d64fb9ed558d1ce6e44280b48ba9f707
BLAKE2b-256 d738089ce3eaf4969c74525071f4e1bfffb1c9bc28359ac242dc5f9ea66b9530

See more details on using hashes here.

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