mindsponge.common.get_fasta_info
- mindsponge.common.get_fasta_info(pdb_path)[source]
Put in a pdb file and get fasta information from it. Return the sequence of the pdb.
- Parameters
pdb_path (str) – path of the input pdb.
- Returns
fasta(str), fasta of input pdb. The sequence is the order of residues in the protein and has no relationship with residue index, such as "GSHMGVQ".
- Supported Platforms:
Ascend
GPU
Examples
>>> from mindsponge.common import get_fasta_info >>> pdb_path = "YOUR PDB PATH" >>> fasta = get_fasta_info(pdb_path) >>> print(fasta) "GSHMGVQ"