Skip to main content

With biofkit you can deal with pdb file (extract sequence, atom information and so on) very easily.

Project description

biofkit

Biofkit is now containing only one module with one package which can deal with pdb file (extract sequence, atom information and so on) 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. output[idx] shows the information of an atom.
pdb2List(pdbFilePath: str, csvPath: str = None, colName: bool = False) -> list[list[int, str, str, int, str, float, float, float]]:
    # pdbFilePath: the file path of the pdb you want to load.
    # csvPath: if given, then write a csv file for your atom information.
    # colName: a prepared colname list for the output. If colName is true, the output[0] will be such a list shown below. May help when column names are needed.
    pdbInfoColumns: [str] = ['Serial', 'Atom', 'ResName', 'ResSeq', 'ChainId', 'X', 'Y', 'Z']

# load the information of all amimo-acid-residue atoms into a dictionary, which can be converted into a dataframe with famous `pandas`.
pdb2Dict(pdbFilePath: str) -> dict[str, list]:
    # pdbFilePath: the file path of the pdb you want to load.

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.5.tar.gz (8.4 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.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biofkit-0.0.5.tar.gz
  • Upload date:
  • Size: 8.4 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.5.tar.gz
Algorithm Hash digest
SHA256 fcf4e33ba689766ecaf03a4f55aa6fdb1afaa6e31ed2b341a0d368ceb25f5830
MD5 bffe238ef484b0fcd808fda210602476
BLAKE2b-256 2d41985cdfa56b91ace304ab0d7c1e5c2b0932a8c5951bbb681f31d589444f3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biofkit-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae18068c2bea4f57ba1e5e23ca107a9178a332c1a7bb0564dcb30676050ddcbf
MD5 1fee113c7ad81a1e67ff6c388b3f5797
BLAKE2b-256 bac7cf3ec34be281ef440608806dbbf401874c296bb54265b1b3e5b8410227a0

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