-
Notifications
You must be signed in to change notification settings - Fork 4
/
extract.sh
executable file
·42 lines (37 loc) · 1.49 KB
/
extract.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# This web page is part of an example how to use gemmi-grep.
# gemmi-grep is an part of the GEMMI library, funded by GPhL and CCP4.
PATH=../gemmi/build:"$PATH"
PYTHONPATH=../gemmi/build
# check that module gemmi is present
[ "$1" = "--auto" ] && python3 -c "import gemmi"
gemmi grep --delimiter=';' \
_software.classification \
-a _software.name \
-a _pdbx_database_status.deposit_site \
-a _pdbx_database_status.recvd_initial_deposition_date \
-a _symmetry.space_group_name_H-M \
-a _reflns.d_resolution_high \
-a _reflns.pdbx_redundancy \
-a _exptl.method \
-a _diffrn_source.source \
-a _diffrn_detector.detector \
-a _diffrn_source.pdbx_synchrotron_site \
-a _refine.pdbx_method_to_determine_struct \
-a _refine.ls_number_reflns_all \
-a _refine_hist.number_atoms_total \
-a _refine_hist.number_atoms_solvent \
-a _refine_hist.pdbx_number_atoms_protein \
-a _refine_hist.pdbx_number_atoms_nucleic_acid \
-a _pdbx_deposit_group.group_id \
-a _diffrn_detector.pdbx_collection_date \
-a _pdbx_audit_revision_history.revision_date \
$PDB_DIR/structures/divided/mmCIF/ > grep.out
if [ "$1" = "--auto" ]; then
./process.py >data.json
sed -i s"/\(Last update:\) ....-..-../\1 $(date -Idate)/" xray.html
./coldates.py 2011 2014 >calendar2011.json
./coldates.py 2015 2018 >calendar2015.json
./coldates.py 2019 2022 >calendar2019.json
sed -i s"/\(released before\) ....-..-../\1 $(date -Idate)/" calendar.html
fi