Simplifier of 3D structures of molecules
Project description
# KnotPull - a simplifier for 3D structures
KnotPull reduces a user provided 3D structure, to simplify it,
while preserving the topology of the chain. It has been successfully
used for knot detection in proteins and chromatine chains.
It can return either a final, simplified structure, or a .pdb formatted
trajectory of consecutive simplifications performed.
## Install
`pip install knot_pull `
(older versions) `pip install --index-url https://test.pypi.org/simple/ knot_pull`
If installing with `pip --user` knot_pull_check and knot_pull_show
will be installed in your user base
(`python -c "import site; print(site.USER_BASE)"`), e.g.
`$HOME/.local/bin/knot_pull_check`
## Running
To run on a specific chain of a local pdb file:
```
knot_pull_check -o -k -c A 3ris.pdb
```
To run on a local xyz file (with format id<whitespace>x<whitespace>y<whitespace>z; chains separated by a line with "END"):
```
knot_pull_check -o from_xyz.pdb -k 05.xyz
```
To run on by structure id from RCSB PDB:
```
knot_pull_check -k 4mcb
```
To show coloured trajectory in PyMOL (if installed):
```
knot_pull_shown my_output_file.pdb
```
If PyMOL is nto available in system path it can be specified as the second argument
### Help:
```
usage: knot_pull_check [-h] [-p] [-t] [-f {pdb,xyz,guess}] [-k] [-c CHAIN]
[-o [OUTPUT]] [-s [SAVE]]
[infile]
Simplify the 3D structure while preserving the topology
positional arguments:
infile Structure file which will be used
optional arguments:
-h, --help show this help message and exit
-p, --preserve_resnums
Keep original numbering
-t, --trajectory Write out all steps of the simplification [default is
1]
-f {pdb,xyz,guess}, --format {pdb,xyz,guess}
Input file format: xyz or pdb [default is guess]
-k, --detect_knot Calculate the knot Dowker notation and assign the knot
type
-c CHAIN, --chain CHAIN
Specify which chain you want to simplify.
-o [OUTPUT], --output [OUTPUT]
Specify the output file. Format is guessed based on
extension [default pdb]. Default is stdout
-s [SAVE], --save [SAVE]
Write out a savefile. If any argument is given here -
run from a savefile (knot detection only).
```
### Copyright (c) Aleksandra Jarmolińska
KnotPull reduces a user provided 3D structure, to simplify it,
while preserving the topology of the chain. It has been successfully
used for knot detection in proteins and chromatine chains.
It can return either a final, simplified structure, or a .pdb formatted
trajectory of consecutive simplifications performed.
## Install
`pip install knot_pull `
(older versions) `pip install --index-url https://test.pypi.org/simple/ knot_pull`
If installing with `pip --user` knot_pull_check and knot_pull_show
will be installed in your user base
(`python -c "import site; print(site.USER_BASE)"`), e.g.
`$HOME/.local/bin/knot_pull_check`
## Running
To run on a specific chain of a local pdb file:
```
knot_pull_check -o -k -c A 3ris.pdb
```
To run on a local xyz file (with format id<whitespace>x<whitespace>y<whitespace>z; chains separated by a line with "END"):
```
knot_pull_check -o from_xyz.pdb -k 05.xyz
```
To run on by structure id from RCSB PDB:
```
knot_pull_check -k 4mcb
```
To show coloured trajectory in PyMOL (if installed):
```
knot_pull_shown my_output_file.pdb
```
If PyMOL is nto available in system path it can be specified as the second argument
### Help:
```
usage: knot_pull_check [-h] [-p] [-t] [-f {pdb,xyz,guess}] [-k] [-c CHAIN]
[-o [OUTPUT]] [-s [SAVE]]
[infile]
Simplify the 3D structure while preserving the topology
positional arguments:
infile Structure file which will be used
optional arguments:
-h, --help show this help message and exit
-p, --preserve_resnums
Keep original numbering
-t, --trajectory Write out all steps of the simplification [default is
1]
-f {pdb,xyz,guess}, --format {pdb,xyz,guess}
Input file format: xyz or pdb [default is guess]
-k, --detect_knot Calculate the knot Dowker notation and assign the knot
type
-c CHAIN, --chain CHAIN
Specify which chain you want to simplify.
-o [OUTPUT], --output [OUTPUT]
Specify the output file. Format is guessed based on
extension [default pdb]. Default is stdout
-s [SAVE], --save [SAVE]
Write out a savefile. If any argument is given here -
run from a savefile (knot detection only).
```
### Copyright (c) Aleksandra Jarmolińska
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
knot_pull-0.1.6.tar.gz
(24.1 kB
view details)
Built Distribution
File details
Details for the file knot_pull-0.1.6.tar.gz
.
File metadata
- Download URL: knot_pull-0.1.6.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d7c4d0e9e30f17422896ed4539d602f2819ca5d53f9e44dcf2d086bee5b604f |
|
MD5 | 8f858b99110bf899b2a8f2c5801fc73d |
|
BLAKE2b-256 | da867224e210dbaf0f00c3ed53a4533a26eece3ddf183bb6ae60001dc530c10d |
File details
Details for the file knot_pull-0.1.6-py2.py3-none-any.whl
.
File metadata
- Download URL: knot_pull-0.1.6-py2.py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79e670577d4c4e32c0b4203159b7e187b1b2376f8a6daebd808d1167e63c05e7 |
|
MD5 | 5106a0b1be526cd34af01292efc8482d |
|
BLAKE2b-256 | 9b3ad94ba56cecb7344c8dc8d587736466cead5e5577f2410a6c199af872e4cd |