Skip to content

Commit 989bf6d

Browse files
author
Jan Ludwiczak
committed
Update README and add new example prediction image
1 parent f2fecec commit 989bf6d

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

README.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
11
# **DeepCoil** #
2-
[![DOI:10.1093/bioinformatics/bty1062 ](https://zenodo.org/badge/DOI/10.1093/bioinformatics/bty1062.svg)](https://doi.org/10.1093/bioinformatics/bty1062 )
2+
[![DOI:10.1093/bioinformatics/bty1062](https://zenodo.org/badge/DOI/10.1093/bioinformatics/bty1062.svg)](https://doi.org/10.1093/bioinformatics/bty1062 )
33
![build](https://github.com/labstructbioinf/DeepCoil/workflows/deepcoil/badge.svg)
44

5-
**Fast and accurate prediction of coiled coil domains in protein sequences.**
6-
## **Installation** ##
5+
## **Fast and accurate prediction of coiled coil domains in protein sequences**
6+
### **New in version 2.0** ###
7+
- Faster inference time by applying *[SeqVec](https://github.com/rostlab/SeqVec)* embeddings instead of *psiblast* profiles.
8+
- Additional heptad predictions (*a* and *d* core positions).
9+
- No maximum sequence length limit.
10+
- Convenient interface for using *DeepCoil* within python scripts.
11+
- Automated peak detection for improved output readability.
12+
- Simplified installation with *pip*.
13+
14+
Older DeepCoil versions are available [here](https://github.com/labstructbioinf/DeepCoil/releases).
15+
16+
### **Requirements and installation** ###
17+
DeepCoil requires `python>=3.6.1` and `pip>=19.0`. Other requirements are specified in the `requirements.txt` file.
18+
719
The most convenient way to install **DeepCoil** is to use pip:
820
```bash
9-
$ pip install deepcoil
21+
$ pip3 install deepcoil
1022
```
1123

12-
## **Usage** ##
24+
### **Usage** ###
1325

14-
##### Running DeepCoil as standalone:
26+
#### Running DeepCoil standalone version:
1527

1628
```bash
17-
deepcoil [-h] -i FILE [-out_path DIR]
29+
deepcoil [-h] -i FILE [-out_path DIR] [-n_cpu NCPU] [--gpu] [--plot]
30+
[--dpi DPI]
1831
```
19-
| Option | Description |
32+
| Argument | Description |
2033
|:-------------:|-------------|
2134
| **`-i`** | Input file in FASTA format. Can contain multiple entries. |
22-
| **`-out_path`** | Directory where the predictions are saved. For each entry in the input file one file will be saved.|
23-
| **`--gpu`** | Flag for turning on the GPU usage. Results in faster inference on large datasets.|
35+
| **`-out_path`** | Directory where the predictions are saved. For each entry in the input file one file will be saved. Defaults to the current directory if not specified.|
36+
| **`-n_cpu`** | Number of CPUs to use in the prediction. By the default all cores will be used.|
37+
| **`--gpu`** | Flag for turning on the GPU usage. Allows faster inference on large datasets. Overrides **`-n_cpu`** option.|
38+
| **`--plot`** | Turns on the additional visual output of the predictions for each entry in the input. Plot files are saved in the **`-out_path`** directory.|
39+
| **`--dpi`** | DPI of the saved plots, active only with **`--plot`** option.|
2440

41+
In a rare case of `deepcoil` being not available in your `PATH` after installation please look in the `$HOME/.local/bin/` or other system specific `pip` directory.
2542

26-
##### Running DeepCoil within script:
43+
#### Running DeepCoil within script:
2744

2845
```python
2946
from deepcoil import DeepCoil
@@ -36,7 +53,12 @@ inp = {str(entry.id): str(entry.seq) for entry in SeqIO.parse('example/example.f
3653

3754
results = dc.predict(inp)
3855

39-
plot_preds(results['3WPA_1'], to_file='example/example.png')
56+
plot_preds(results['3WPA_1'], out_file='example/example.png')
4057
```
41-
###### Example graphical output:
58+
`results[entry]` for an entry of sequence length `N` contains two keys:
59+
- `['cc']` - per residue coiled coil propensity (`[N, 1]` shape)
60+
- `['hept']` - per residue core positions (`[N, 3]` shape, order in the second axis is: no/other position, *a* position, *d* position)
61+
62+
Peak detection can be performed with the `deepcoil.utils.sharpen_preds` helper function.
63+
#### Example graphical output:
4264
![Example](example/example.png)

example/example.png

-121 KB
Loading

0 commit comments

Comments
 (0)