Skip to content

Commit 2e4d97a

Browse files
authored
Merge pull request #7 from ccdc-opensource/instructions_and_formatting
Instructions and formatting
2 parents 0cd84e8 + a6d92c7 commit 2e4d97a

File tree

9 files changed

+52
-17
lines changed

9 files changed

+52
-17
lines changed

README.md

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# CSD Python API Scripts
44

5-
65
A repository containing scripts that have been created to leverage the toolkit found within
76
the [CCDC portfolio](https://www.ccdc.cam.ac.uk/solutions/) that are accessible via
87
the [CSD Python API](https://www.ccdc.cam.ac.uk/solutions/csd-core/components/csd-python-api/).
@@ -29,29 +28,41 @@ Don’t have a licence? Contact us [here to request a quote or demonstration.](h
2928

3029
## Downloading Scripts
3130

32-
This section will focus on how to download multiple or individual scripts:
33-
34-
### 1. Downloading All Scripts
31+
We advise that users `fork` the repository to ensure they can keep up to date with any modification.
32+
If you don't want to worry about having a GitHub account or are not confident with Git, you can download the scripts straight from this webpage.
3533

34+
The following section will outline how to download multiple or individual scripts:
3635

37-
#### Downloading Zip file:
38-
Click `Code` and Select `Download Zip`:
36+
### 1. Downloading All Scripts in a Zip file
3937

40-
<img src="assets/download_zip.png" width="250px">
38+
Whilst in the main repository window click `Code` and select `Download Zip`:
4139

40+
<img src="assets/download_zip.gif" width="300px">
4241

4342
### 2. Downloading Individual Scripts
4443

45-
#### TODO - Add gif of downloading single file
46-
#### TODO - write instructions on how to download
44+
Once you've found a script/file you wish to download, click on it. This will show you the content of the file. In the top right of the file click `Raw`.
45+
This will open the content in a tab where you can `Right-Click` in the text and select `"Save As..."`.
4746

47+
You will be asked to in your file explorer where you wish to save the file. Please specify the file extension at this point, by default `.txt` is used (For python scripts `.py` is required.)
4848

49-
## Running scripts through the CSD Python API Miniconda installed
49+
<img src="assets/single_download.gif" width="500px">
5050

51+
## Running scripts through the CSD Python API Miniconda installed
5152
This requires you to already have the CSD Python API installed.
5253

5354
Windows:
5455
```cmd
5556
"<CCDC_INSTALL_LOCATION>\CCDC\Python_API_2022\miniconda\Scripts\activate.bat"
5657
python script_example.py
57-
```
58+
```
59+
60+
## Submitting or Modifying Scripts
61+
62+
1. [Create a Fork of the repository](https://docs.github.com/en/get-started/quickstart/contributing-to-projects#forking-a-repository) (A fork is a copy of a repository that you manage. Forks let you make changes to a project without affecting the CSD GitHub repo. You can fetch updates from or submit changes to the CSD GitHub repo with pull requests.)
63+
64+
2. [Commit your changes to the forked repository](https://docs.github.com/en/get-started/quickstart/contributing-to-projects#making-and-pushing-changes) (on a branch).
65+
66+
3. [Create a Pull Request](https://docs.github.com/en/get-started/quickstart/contributing-to-projects#making-a-pull-request) to this repository.
67+
68+
4. Once the code has been reviewed it can be merged into the CSD GitHub repo by someone from the CCDC.

assets/download_zip.gif

362 KB
Loading

assets/download_zip.png

-36.9 KB
Binary file not shown.

assets/search.gif

975 KB
Loading

assets/single_download.gif

610 KB
Loading

scripts/ReadMe.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,41 @@
22

33
This folder contains scripts submitted by users or CCDC scientists for anyone to use freely.
44

5-
### Hydrogen bond propensity :
6-
- Writes a .docx report of a hydrogen bond propensity calculation for any given mol2/refcode.
5+
### Hydrogen bond propensity
6+
- Writes a `.docx report` of a hydrogen bond propensity calculation for any given `.mol2`/refcode.
77

8-
### Multi-component hydrogen bond propensity:
8+
### Multi-component hydrogen bond propensity
99
- Performs a multi-component HBP calculation for a given library of co-formers.
1010

11-
### Packing similarity dendrogram:
11+
### Packing similarity dendrogram
1212
- Construct a dendrogram for an input set of structures based on packing-similarity analysis.
1313

1414
### GOLD-multi
1515
- Use the CSD Docking API and the multiprocessing module to parallelize GOLD docking.
1616

17+
### Find Binding Conformation
18+
- Generates idealized conformers for ligands and evaluates their RMSD to the conformation in the PDB.
19+
20+
### Concat Mol2
21+
- Concatenates mol2 files present in working directory to a single `.mol2` file.
22+
23+
### Create CASTEP Input
24+
- Creates input files (`.cell` and `.param`) files for a given compound through Mercury.
25+
26+
### Create GAUSSIAN Input
27+
- Create GAUSSIAN input file (`.gjf`) for a given CSD refcode or `.mol2` file.
28+
1729
## Tips
18-
### Searching tips:
30+
A section for top tips in using the repository and GitHub.
31+
### Searching tips:
32+
33+
The search bar in GitHub allows you to search for keywords mentioned in any file throughout the repository (in the main branch).
34+
35+
It is also possible to filter which file type you are interested in.
36+
37+
For example:
38+
"hydrogen bond"
39+
40+
<img src="../assets/search.gif" width="500px">
41+
42+

scripts/create_castep_input/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Requires user to add script to Mercury interface.
1616

1717
- CSD-Core
1818

19-
If you wish to run CASTEP, you will need to acquire a licence for CASTEP, this is not supplied by the CCDC.
19+
If you wish to run CASTEP, you will need to acquire a license for CASTEP, this is not supplied by the CCDC.
2020

2121
## Instructions on running
2222

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)