pdb_tools package
Submodules
pdb_tools.biobb_pdb_chain module
Module containing the Pdbchain class and the command line interface.
- class pdb_tools.biobb_pdb_chain.Pdbchain(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbchainModifies the chain identifier column of a PDB file.This tool modifies the chain identifier column of a PDB file. It can be used to change the chain identifier of a PDB file or to remove the chain identifier from a PDB file.- Parameters:
input_file_path (str) – PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file with selected modified chain. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
chain (string) - (‘A’) Modifies the chain identifier column of a PDB file.
binary_path (str) - (“pdb_chain”) Path to the pdb_chain executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_chain import biobb_pdb_chain prop = { 'chain': 'A' } biobb_pdb_chain(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_chainxseg module
Module containing the Chainxseg class and the command line interface.
- class pdb_tools.biobb_pdb_chainxseg.Chainxseg(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbtidySwaps the segment identifier for the chain identifier.This tool swaps the segment identifier for the chain identifier in a PDB file. It can be used to change the segment identifier of a PDB file or to remove the segment identifier from a PDB file.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file with exchanged segment and string identifier. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
binary_path (str) - (“pdb_chainxseg”) Path to the pdb_chainxseg executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_chainxseg import biobb_pdb_chainxseg biobb_pdb_chainxseg(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_delhetatm module
Module containing the Delhetatm class and the command line interface.
- class pdb_tools.biobb_pdb_delhetatm.Delhetatm(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools DelhetatmRemoves all HETATM records in the PDB file.This tool removes all HETATM records in the PDB file. It can be used to remove all HETATM records from a PDB file.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file with all HETATM records removed. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
binary_path (str) - (“pdb_delhetatm”) Path to the pdb_delhetatm executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_delhetatm import biobb_pdb_delhetatm biobb_pdb_delhetatm(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_fetch module
Module containing the Pdbfetch class and the command line interface.
- class pdb_tools.biobb_pdb_fetch.Pdbfetch(output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbfetchDownloads a structure in PDB format from the RCSB website.This tool downloads a structure in PDB format from the RCSB website. It can be used to download a structure in PDB format from the RCSB website.- Parameters:
output_file_path (str) –
PDB file of the protein selected. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
pdbid (string) - (‘1aki’) ID of the protein.
biounit (string) - (False) Allows downloading the (first) biological structure if selected.
binary_path (str) - (“pdb_fetch”) Path to the pdb_fetch executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_fetch import biobb_pdb_fetch prop = { 'biounit': False, 'pdbid': '1aki' } biobb_pdb_fetch(output_file_path='/path/to/file.pdb', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_merge module
Module containing the Pdbmerge class and the command line interface.
- class pdb_tools.biobb_pdb_merge.Pdbmerge(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbmergeMerges several PDB files into one.This tool merges several PDB files into one. It can be used to merge several PDB files into one.- Parameters:
input_file_path (str) –
ZIP file of selected protein. File type: input. Sample file. Accepted formats: zip (edam:format_3987).
output_file_path (str) –
PDB file with input PDBs merged. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
binary_path (str) - (“pdb_merge”) Path to the pdb_merge executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_merge import biobb_pdb_merge biobb_pdb_merge(input_file_path='/path/to/input1.zip', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_mkensemble module
Module containing the Mkensemble class and the command line interface.
- class pdb_tools.biobb_pdb_mkensemble.Mkensemble(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools MkensembleMerges several PDB files into one multi-model (ensemble) file.This tool merges several PDB files into one multi-model (ensemble) file. It can be used to merge several PDB files into one multi-model (ensemble) file.- Parameters:
input_file_path (str) –
ZIP file of selected proteins. File type: input. Sample file. Accepted formats: zip (edam:format_3987).
output_file_path (str) –
Multi-model (ensemble) PDB file with input PDBs merged. File type: output. Sample file. Accepted formats: pdb (edam:format_3987).
properties (dic) –
binary_path (str) - (“pdb_mkensemble”) Path to the pdb_mkensemble executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_mkensemble import biobb_pdb_mkensemble biobb_pdb_mkensemble(input_file_path='/path/to/input1.zip', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_reres module
Module containing the Pdbreres class and the command line interface.
- class pdb_tools.biobb_pdb_reres.Pdbreres(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbreresRenumbers the residues of the PDB file starting from a given number (default 1).This tool renumbers the residues of the PDB file starting from a given number (default 1). It can be used to renumber the residues of a PDB file starting from a given number.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
Renumbered PDB file by number of redisue selected. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
number (int) - (4) Number of the protein residue.
binary_path (str) - (“pdb_reres”) Path to the pdb_reres executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_reres import biobb_pdb_reres prop = { 'number': 4 } biobb_pdb_reres(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_seg module
Module containing the Pdbseg class and the command line interface.
- class pdb_tools.biobb_pdb_seg.Pdbseg(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbsegModifies the segment identifier column of a PDB file.This tool modifies the segment identifier column of a PDB file. It can be used to change the segment identifier of a PDB file or to remove the segment identifier from a PDB file.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file with segment identifier column modified. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
segment (str) - (‘B’) Default is an empty segment.
binary_path (str) - (“pdb_seg”) Path to the pdb_seg executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_seg import biobb_pdb_seg prop = { 'segment': 'A' } biobb_pdb_seg(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_splitmodel module
Module containing the Pdbsplitmodel class and the command line interface.
- class pdb_tools.biobb_pdb_splitmodel.Pdbsplitmodel(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbsplitmodelSplits a PDB file into several, each containing one MODEL.This tool splits a PDB file into several, each containing one MODEL. It can be used to split a PDB file into several, each containing one MODEL.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
ZIP file containing all PDB files splited by protein model. File type: output. Sample file. Accepted formats: zip (edam:format_3987).
properties (dic) –
binary_path (str) - (“pdb_splitmodel”) Path to the pdb_splitmodel executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_splitmodel import biobb_pdb_splitmodel biobb_pdb_splitmodel(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.zip)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_splitseg module
Module containing the Pdbsplitseg class and the command line interface.
- class pdb_tools.biobb_pdb_splitseg.Pdbsplitseg(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbsplitsegSplits a PDB file into several, each containing one segment.This tool splits a PDB file into several, each containing one segment. It can be used to split a PDB file into several, each containing one segment.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
ZIP file containing all PDB files splited by protein segment. File type: output. Sample file. Accepted formats: zip (edam:format_3987).
properties (dic) –
binary_path (str) - (“pdb_splitseg”) Path to the pdb_splitseg executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_splitseg import biobb_pdb_splitseg biobb_pdb_splitseg(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_tidy module
Module containing the Pdbtidy class and the command line interface.
- class pdb_tools.biobb_pdb_tidy.Pdbtidy(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbtidyModifies the file to adhere (as much as possible) to the format specifications.This tool modifies the file to adhere (as much as possible) to the format specifications. It can be used to fix a PDB file that does not adhere to the format specifications.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file modified according to the specifications. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
strict (bool) - (False) Does not add TER on chain breaks.
binary_path (str) - (“pdb_tidy”) Path to the pdb_tidy executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_tidy import biobb_pdb_tidy prop = { 'strict': False } biobb_pdb_tidy(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_tofasta module
Module containing the Pdbtofasta class and the command line interface.
- class pdb_tools.biobb_pdb_tofasta.Pdbtofasta(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tofasta PdbtofastaExtracts the residue sequence in a PDB file to FASTA format.This tool extracts the residue sequence in a PDB file to FASTA format. It can be used to extract the sequence of a PDB file to FASTA format.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
FASTA file containing the aminoacids sequence. File type: output. Sample file. Accepted formats: fasta (edam:format_1929), fa (edam:format_1929).
properties (dic) –
multi (bool) - (True) Splits the different chains into different records in the FASTA file.
binary_path (str) - (“pdb_tofasta”) Path to the pdb_tofasta executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_tofasta import biobb_pdb_tofasta prop = { 'multi': True } biobb_pdb_tofasta(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.fasta', properties=prop)
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl
pdb_tools.biobb_pdb_uniqname module
Module containing the Delhetatm class and the command line interface.
- class pdb_tools.biobb_pdb_uniqname.Pdbuniqname(input_file_path, output_file_path, properties=None, **kwargs)[source]
Bases:
BiobbObject
biobb_pdb_tools PdbuniqnameRenames atoms sequentially (C1, C2, O1, …) for each HETATM residue.This tool renames atoms sequentially (C1, C2, O1, …) for each HETATM residue in a PDB file. It can be used to rename atoms sequentially for each HETATM residue in a PDB file.- Parameters:
input_file_path (str) –
PDB file. File type: input. Sample file. Accepted formats: pdb (edam:format_1476).
output_file_path (str) –
PDB file with all HETATM atoms renamed. File type: output. Sample file. Accepted formats: pdb (edam:format_1476).
properties (dic) –
binary_path (str) - (“pdb_uniqname”) Path to the pdb_uniqname executable binary.
remove_tmp (bool) - (True) [WF property] Remove temporal files.
restart (bool) - (False) [WF property] Do not execute if output files exist.
Examples
This is a use example of how to use the building block from Python:
from biobb_pdb_tools.pdb_tools.biobb_pdb_uniqname import biobb_pdb_uniqname biobb_pdb_uniqname(input_file_path='/path/to/input.pdb', output_file_path='/path/to/output.pdb')
- Info:
- wrapped_software:
name: pdb_tools
version: >=2.5.0
license: Apache-2.0
- ontology:
name: EDAM
schema: http://edamontology.org/EDAM.owl