introvoyz041 commited on
Commit
0a59d6d
·
verified ·
1 Parent(s): 663f196

Migrated from GitHub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. data/AF-IDP_colab.ipynb +0 -0
  3. data/AF_DATA/cite.bibtex +40 -0
  4. data/AF_DATA/config.json +34 -0
  5. data/AF_DATA/log.txt +31 -0
  6. data/AF_DATA/pae_tdp.tga +3 -0
  7. data/AF_DATA/tdp43_WtoA_bf4cc.a3m +0 -0
  8. data/AF_DATA/tdp43_WtoA_bf4cc.csv +2 -0
  9. data/AF_DATA/tdp43_WtoA_bf4cc.done.txt +0 -0
  10. data/AF_DATA/tdp43_WtoA_bf4cc_coverage.png +3 -0
  11. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob.csv +0 -0
  12. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob.png +3 -0
  13. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob_log.png +3 -0
  14. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_7A_prob_log.png +3 -0
  15. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_distmat.png +3 -0
  16. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_mean.csv +0 -0
  17. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_prob_distributions.npy +3 -0
  18. data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_std.csv +0 -0
  19. data/AF_DATA/tdp43_WtoA_bf4cc_env/bfd.mgnify30.metaeuk30.smag30.a3m +0 -0
  20. data/AF_DATA/tdp43_WtoA_bf4cc_env/msa.sh +84 -0
  21. data/AF_DATA/tdp43_WtoA_bf4cc_env/out.tar.gz +3 -0
  22. data/AF_DATA/tdp43_WtoA_bf4cc_env/pdb70.m8 +300 -0
  23. data/AF_DATA/tdp43_WtoA_bf4cc_env/uniref.a3m +0 -0
  24. data/AF_DATA/tdp43_WtoA_bf4cc_pae.png +3 -0
  25. data/AF_DATA/tdp43_WtoA_bf4cc_plddt.png +3 -0
  26. data/AF_DATA/tdp43_WtoA_bf4cc_predicted_aligned_error_v1.json +0 -0
  27. data/AF_DATA/tdp43_WtoA_bf4cc_scores_rank_001_alphafold2_ptm_model_3_seed_000.json +0 -0
  28. data/AF_DATA/tdp43_WtoA_bf4cc_unrelaxed_rank_001_alphafold2_ptm_model_3_seed_000.pdb +0 -0
  29. data/AF_DATA/vmdscene.tga +3 -0
  30. data/LICENSE +674 -0
  31. data/environment.yml +12 -0
  32. data/prep_run/.ipynb_checkpoints/prepare_run-checkpoint.ipynb +0 -0
  33. data/prep_run/prepare_run.ipynb +0 -0
  34. data/requirements.txt +8 -0
  35. data/scripts_prep/backmap.py +103 -0
  36. data/scripts_prep/dcd2xtc.py +23 -0
  37. data/scripts_prep/fes2.py +54 -0
  38. data/scripts_prep/gen_xml_and_constraints.py +124 -0
  39. data/scripts_prep/keepH.sh +20 -0
  40. data/scripts_prep/make_plumed_analysis.py +107 -0
  41. data/scripts_prep/make_plumed_distmat.py +336 -0
  42. data/scripts_prep/plumed_TDP-43.dat +300 -0
  43. data/scripts_prep/plumed_analysis_TDP-43.dat +51 -0
  44. data/scripts_prep/prepare_run.ipynb +0 -0
  45. data/scripts_prep/pulchra.py +27 -0
  46. data/scripts_prep/pulchra.sh +5 -0
  47. data/scripts_prep/resample.py +66 -0
  48. data/scripts_prep/residues.csv +21 -0
  49. data/scripts_prep/script.sh +36 -0
  50. data/scripts_prep/simulate.py +129 -0
.gitattributes CHANGED
@@ -57,3 +57,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ data/AF_DATA/pae_tdp.tga filter=lfs diff=lfs merge=lfs -text
61
+ data/AF_DATA/vmdscene.tga filter=lfs diff=lfs merge=lfs -text
data/AF-IDP_colab.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/cite.bibtex ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @article{Mirdita2022,
2
+ author= {Mirdita, Milot and Schütze, Konstantin and Moriwaki, Yoshitaka and Heo, Lim and Ovchinnikov, Sergey and Steinegger, Martin },
3
+ doi = {10.1038/s41592-022-01488-1},
4
+ journal = {Nature Methods},
5
+ title = {{ColabFold: Making Protein folding accessible to all}},
6
+ year = {2022},
7
+ comment = {ColabFold including MMseqs2 MSA server}
8
+ }
9
+ @article{Mirdita2019,
10
+ author = {Mirdita, Milot and Steinegger, Martin and S{"{o}}ding, Johannes},
11
+ doi = {10.1093/bioinformatics/bty1057},
12
+ journal = {Bioinformatics},
13
+ number = {16},
14
+ pages = {2856--2858},
15
+ pmid = {30615063},
16
+ title = {{MMseqs2 desktop and local web server app for fast, interactive sequence searches}},
17
+ volume = {35},
18
+ year = {2019},
19
+ comment = {MMseqs2 search server}
20
+ }
21
+ @article{Mirdita2017,
22
+ author = {Mirdita, Milot and von den Driesch, Lars and Galiez, Clovis and Martin, Maria J. and S{"{o}}ding, Johannes and Steinegger, Martin},
23
+ doi = {10.1093/nar/gkw1081},
24
+ journal = {Nucleic Acids Res.},
25
+ number = {D1},
26
+ pages = {D170--D176},
27
+ pmid = {27899574},
28
+ title = {{Uniclust databases of clustered and deeply annotated protein sequences and alignments}},
29
+ volume = {45},
30
+ year = {2017},
31
+ comment = {Uniclust30/UniRef30 database},
32
+ }
33
+ @article{Mitchell2019,
34
+ author = {Mitchell, Alex L and Almeida, Alexandre and Beracochea, Martin and Boland, Miguel and Burgin, Josephine and Cochrane, Guy and Crusoe, Michael R and Kale, Varsha and Potter, Simon C and Richardson, Lorna J and Sakharova, Ekaterina and Scheremetjew, Maxim and Korobeynikov, Anton and Shlemov, Alex and Kunyavskaya, Olga and Lapidus, Alla and Finn, Robert D},
35
+ doi = {10.1093/nar/gkz1035},
36
+ journal = {Nucleic Acids Res.},
37
+ title = {{MGnify: the microbiome analysis resource in 2020}},
38
+ year = {2019},
39
+ comment = {MGnify database}
40
+ }
data/AF_DATA/config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "num_queries": 1,
3
+ "use_templates": false,
4
+ "num_relax": 0,
5
+ "msa_mode": "mmseqs2_uniref_env",
6
+ "model_type": "alphafold2_ptm",
7
+ "num_models": 1,
8
+ "num_recycles": 3,
9
+ "recycle_early_stop_tolerance": null,
10
+ "num_ensemble": 1,
11
+ "model_order": [
12
+ 3,
13
+ 4,
14
+ 5,
15
+ 1,
16
+ 2
17
+ ],
18
+ "keep_existing_results": false,
19
+ "rank_by": "plddt",
20
+ "max_seq": 512,
21
+ "max_extra_seq": 1024,
22
+ "pair_mode": "unpaired_paired",
23
+ "host_url": "https://api.colabfold.com",
24
+ "stop_at_score": 100.0,
25
+ "random_seed": 0,
26
+ "num_seeds": 1,
27
+ "recompile_padding": 10,
28
+ "commit": "87a44a0941c0dc4ed4c9499aa6d8bd8dd10c7333",
29
+ "use_dropout": false,
30
+ "use_cluster_profile": true,
31
+ "use_fuse": true,
32
+ "use_bfloat16": true,
33
+ "version": "1.5.1"
34
+ }
data/AF_DATA/log.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 2023-07-13 11:33:05,067 Running on GPU
2
+ 2023-07-13 11:33:05,212 Found 4 citations for tools or databases
3
+ 2023-07-13 11:33:05,212 Query 1/1: tdp43_WtoA_bf4cc (length 414)
4
+ 2023-07-13 11:33:05,820 Sleeping for 9s. Reason: PENDING
5
+ 2023-07-13 11:33:15,398 Sleeping for 9s. Reason: RUNNING
6
+ 2023-07-13 11:33:24,990 Sleeping for 7s. Reason: RUNNING
7
+ 2023-07-13 11:33:32,559 Sleeping for 7s. Reason: RUNNING
8
+ 2023-07-13 11:33:40,152 Sleeping for 7s. Reason: RUNNING
9
+ 2023-07-13 11:33:47,736 Sleeping for 10s. Reason: RUNNING
10
+ 2023-07-13 11:33:58,306 Sleeping for 5s. Reason: RUNNING
11
+ 2023-07-13 11:34:03,880 Sleeping for 7s. Reason: RUNNING
12
+ 2023-07-13 11:34:11,465 Sleeping for 10s. Reason: RUNNING
13
+ 2023-07-13 11:34:22,051 Sleeping for 7s. Reason: RUNNING
14
+ 2023-07-13 11:34:29,631 Sleeping for 10s. Reason: RUNNING
15
+ 2023-07-13 11:34:40,217 Sleeping for 6s. Reason: RUNNING
16
+ 2023-07-13 11:34:46,820 Sleeping for 8s. Reason: RUNNING
17
+ 2023-07-13 11:34:55,398 Sleeping for 8s. Reason: RUNNING
18
+ 2023-07-13 11:35:03,990 Sleeping for 9s. Reason: RUNNING
19
+ 2023-07-13 11:35:13,582 Sleeping for 6s. Reason: RUNNING
20
+ 2023-07-13 11:35:20,166 Sleeping for 9s. Reason: RUNNING
21
+ 2023-07-13 11:35:29,738 Sleeping for 5s. Reason: RUNNING
22
+ 2023-07-13 11:35:39,470 Padding length to 414
23
+ 2023-07-13 11:35:39,471 Setting max_seq=512, max_extra_seq=1024
24
+ 2023-07-13 11:37:19,606 alphafold2_ptm_model_3_seed_000 recycle=0 pLDDT=63.2 pTM=0.29 ipTM=0
25
+ 2023-07-13 11:38:05,675 alphafold2_ptm_model_3_seed_000 recycle=1 pLDDT=63.8 pTM=0.287 ipTM=0
26
+ 2023-07-13 11:38:51,078 alphafold2_ptm_model_3_seed_000 recycle=2 pLDDT=65.1 pTM=0.311 ipTM=0
27
+ 2023-07-13 11:39:36,749 alphafold2_ptm_model_3_seed_000 recycle=3 pLDDT=65.4 pTM=0.326 ipTM=0
28
+ 2023-07-13 11:39:36,753 alphafold2_ptm_model_3_seed_000 took 211.3s (3 recycles)
29
+ 2023-07-13 11:39:48,337 reranking models by 'plddt' metric
30
+ 2023-07-13 11:39:48,339 rank_001_alphafold2_ptm_model_3_seed_000 pLDDT=65.4 pTM=0.326 ipTM=0
31
+ 2023-07-13 11:39:51,052 Done
data/AF_DATA/pae_tdp.tga ADDED

Git LFS Details

  • SHA256: 985ed581c979605505efc8f626db41649247bf9997c56eb5619c53c95271c8e5
  • Pointer size: 132 Bytes
  • Size of remote file: 6.58 MB
data/AF_DATA/tdp43_WtoA_bf4cc.a3m ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ id,sequence
2
+ tdp43_WtoA_bf4cc,MSEYIRVTEDENDEPIEIPSEDDGTVLLSTVTAQFPGACGLRYRNPVSQCMRGVRLVEGILHAPDAGAGNLVYVVNYPKDNKRKMDETDASSAVKVKRAVQKTSDLIVLGLPAKTTEQDLKEYFSTFGEVLMVQVKKDLKTGHSKGFGFVRFTEYETQVKVMSQRHMIDGRACDCKLPNSKQSQDEPLRSRKVFVGRCTEDMTEDELREFFSQYGDVMDVFIPKPFRAFAFVTFADDQIAQSLCGEDLIIKGISVHISNAEPKHNSNRQLERSGRFGGNPGGFGNQGGFGNSRGGGAGLGNNQGSNMGGGMNFGAFSINPAMMAAAQAALQSSAGMMGMLASQQNQSGPSGNNQNQGNMQREPNQAFGSGNNSYSGSNSGAAIGAGSASNAGSGSGFNGGFGSSMDSKSSGAGM
data/AF_DATA/tdp43_WtoA_bf4cc.done.txt ADDED
File without changes
data/AF_DATA/tdp43_WtoA_bf4cc_coverage.png ADDED

Git LFS Details

  • SHA256: 47722380a380df9daa15544e3c759cabd977fd3d505e3f7175613156ba8dae36
  • Pointer size: 131 Bytes
  • Size of remote file: 114 kB
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob.png ADDED

Git LFS Details

  • SHA256: 27af2006767a0a33b7115cfc32e45c1f69bda253b5cc020a9145957182869d1e
  • Pointer size: 131 Bytes
  • Size of remote file: 600 kB
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_12A_prob_log.png ADDED

Git LFS Details

  • SHA256: 0649efe5c0da9236e835b477320d73a35330a1b4771d99eceb39649f404229a8
  • Pointer size: 131 Bytes
  • Size of remote file: 952 kB
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_7A_prob_log.png ADDED

Git LFS Details

  • SHA256: 5aa56d6525943b9ddfec219a8eb6761796ff88a255b1d13188c875a307948c43
  • Pointer size: 131 Bytes
  • Size of remote file: 965 kB
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_distmat.png ADDED

Git LFS Details

  • SHA256: 23b861dd9fe20e15187587ade027dcf095d7c9c9d2468d1ccc96f18fa10b4be4
  • Pointer size: 131 Bytes
  • Size of remote file: 689 kB
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_mean.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_prob_distributions.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4605fe2880dcd582946a7c6b8a89aab4aac3cd0c9ec7715bf5df6cd32659f3a4
3
+ size 21938816
data/AF_DATA/tdp43_WtoA_bf4cc_distmat/alphafold2_ptm_model_3_seed_000_std.csv ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_env/bfd.mgnify30.metaeuk30.smag30.a3m ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_env/msa.sh ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash -e
2
+ MMSEQS="$1"
3
+ QUERY="$2"
4
+ BASE="$4"
5
+ DB1="$5"
6
+ DB2="$6"
7
+ DB3="$7"
8
+ USE_ENV="$8"
9
+ USE_TEMPLATES="$9"
10
+ FILTER="${10}"
11
+ TAXONOMY="${11}"
12
+ M8OUT="${12}"
13
+ EXPAND_EVAL=inf
14
+ ALIGN_EVAL=10
15
+ DIFF=3000
16
+ QSC=-20.0
17
+ MAX_ACCEPT=1000000
18
+ if [ "${FILTER}" = "1" ]; then
19
+ # 0.1 was not used in benchmarks due to POSIX shell bug in line above
20
+ # EXPAND_EVAL=0.1
21
+ ALIGN_EVAL=10
22
+ QSC=0.8
23
+ MAX_ACCEPT=100000
24
+ fi
25
+ export MMSEQS_CALL_DEPTH=1
26
+ SEARCH_PARAM="--num-iterations 3 --db-load-mode 2 -a --k-score 'seq:96,prof:80' -e 0.1 --max-seqs 10000"
27
+ FILTER_PARAM="--filter-min-enable 1000 --diff ${DIFF} --qid 0.0,0.2,0.4,0.6,0.8,1.0 --qsc 0 --max-seq-id 0.95"
28
+ EXPAND_PARAM="--expansion-mode 0 -e ${EXPAND_EVAL} --expand-filter-clusters ${FILTER} --max-seq-id 0.95"
29
+ mkdir -p "${BASE}"
30
+ "${MMSEQS}" createdb "${QUERY}" "${BASE}/qdb"
31
+ "${MMSEQS}" search "${BASE}/qdb" "${DB1}" "${BASE}/res" "${BASE}/tmp1" $SEARCH_PARAM
32
+ "${MMSEQS}" mvdb "${BASE}/tmp1/latest/profile_1" "${BASE}/prof_res"
33
+ "${MMSEQS}" lndb "${BASE}/qdb_h" "${BASE}/prof_res_h"
34
+
35
+ "${MMSEQS}" expandaln "${BASE}/qdb" "${DB1}.idx" "${BASE}/res" "${DB1}.idx" "${BASE}/res_exp" --db-load-mode 2 ${EXPAND_PARAM}
36
+ "${MMSEQS}" align "${BASE}/prof_res" "${DB1}.idx" "${BASE}/res_exp" "${BASE}/res_exp_realign" --db-load-mode 2 -e ${ALIGN_EVAL} --max-accept ${MAX_ACCEPT} --alt-ali 10 -a
37
+ "${MMSEQS}" filterresult "${BASE}/qdb" "${DB1}.idx" "${BASE}/res_exp_realign" "${BASE}/res_exp_realign_filter" --db-load-mode 2 --qid 0 --qsc $QSC --diff 0 --max-seq-id 1.0 --filter-min-enable 100
38
+ if [ "${M8OUT}" = "1" ]; then
39
+ "${MMSEQS}" filterresult "${BASE}/qdb" "${DB1}.idx" "${BASE}/res_exp_realign_filter" "${BASE}/res_exp_realign_filter_filter" --db-load-mode 2 ${FILTER_PARAM}
40
+ "${MMSEQS}" convertalis "${BASE}/qdb" "${DB1}.idx" "${BASE}/res_exp_realign_filter_filter" "${BASE}/uniref.m8" --db-load-mode 2 --format-output query,target,fident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits,tseq
41
+ "${MMSEQS}" rmdb "${BASE}/res_exp_realign_filter_filter"
42
+ else
43
+ "${MMSEQS}" result2msa "${BASE}/qdb" "${DB1}.idx" "${BASE}/res_exp_realign_filter" "${BASE}/uniref.a3m" --msa-format-mode 6 --db-load-mode 2 --filter-msa ${FILTER} ${FILTER_PARAM}
44
+ fi
45
+ "${MMSEQS}" rmdb "${BASE}/res_exp_realign"
46
+ "${MMSEQS}" rmdb "${BASE}/res_exp"
47
+ "${MMSEQS}" rmdb "${BASE}/res"
48
+ if [ "${TAXONOMY}" = "1" ] && [ -e "${DB1}_taxonomy" ]; then
49
+ "${MMSEQS}" convertalis "${BASE}/qdb" "${DB1}.idx" "${BASE}/res_exp_realign_filter" "${BASE}/res_exp_realign_tax" --db-output 1 --format-output "taxid,target,taxlineage" --db-load-mode 2
50
+ awk 'BEGIN { printf("%c%c%c%c",8,0,0,0); exit; }' > "${BASE}/res_exp_realign_tax.dbtype"
51
+ MMSEQS_FORCE_MERGE=1 "${MMSEQS}" filtertaxdb "${DB1}" "${BASE}/res_exp_realign_tax" "${BASE}/res_exp_realign_tax_filt" --taxon-list '!12908&&!28384'
52
+ tr -d '\000' < "${BASE}/res_exp_realign_tax_filt" | sort -u > "${BASE}/uniref_tax.tsv"
53
+ fi
54
+ "${MMSEQS}" rmdb "${BASE}/res_exp_realign_filter"
55
+
56
+ if [ "${USE_TEMPLATES}" = "1" ]; then
57
+ "${MMSEQS}" search "${BASE}/prof_res" "${DB2}" "${BASE}/res_pdb" "${BASE}/tmp2" --db-load-mode 2 -s 7.5 -a -e 0.1
58
+ "${MMSEQS}" convertalis "${BASE}/prof_res" "${DB2}.idx" "${BASE}/res_pdb" "${BASE}/pdb70.m8" --format-output query,target,fident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits,cigar --db-load-mode 2
59
+ "${MMSEQS}" rmdb "${BASE}/res_pdb"
60
+ fi
61
+
62
+ if [ "${USE_ENV}" = "1" ]; then
63
+ "${MMSEQS}" search "${BASE}/prof_res" "${DB3}" "${BASE}/res_env" "${BASE}/tmp3" $SEARCH_PARAM
64
+ "${MMSEQS}" expandaln "${BASE}/prof_res" "${DB3}.idx" "${BASE}/res_env" "${DB3}.idx" "${BASE}/res_env_exp" -e ${EXPAND_EVAL} --expansion-mode 0 --db-load-mode 2
65
+ "${MMSEQS}" align "${BASE}/tmp3/latest/profile_1" "${DB3}.idx" "${BASE}/res_env_exp" "${BASE}/res_env_exp_realign" --db-load-mode 2 -e ${ALIGN_EVAL} --max-accept ${MAX_ACCEPT} --alt-ali 10 -a
66
+ "${MMSEQS}" filterresult "${BASE}/qdb" "${DB3}.idx" "${BASE}/res_env_exp_realign" "${BASE}/res_env_exp_realign_filter" --db-load-mode 2 --qid 0 --qsc $QSC --diff 0 --max-seq-id 1.0 --filter-min-enable 100
67
+ if [ "${M8OUT}" = "1" ]; then
68
+ "${MMSEQS}" filterresult "${BASE}/qdb" "${DB3}.idx" "${BASE}/res_env_exp_realign_filter" "${BASE}/res_env_exp_realign_filter_filter" --db-load-mode 2 ${FILTER_PARAM}
69
+ "${MMSEQS}" convertalis "${BASE}/qdb" "${DB3}.idx" "${BASE}/res_env_exp_realign_filter_filter" "${BASE}/bfd.mgnify30.metaeuk30.smag30.m8" --db-load-mode 2 --format-output query,target,fident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits,tseq
70
+ "${MMSEQS}" rmdb "${BASE}/res_env_exp_realign_filter_filter"
71
+ else
72
+ "${MMSEQS}" result2msa "${BASE}/qdb" "${DB3}.idx" "${BASE}/res_env_exp_realign_filter" "${BASE}/bfd.mgnify30.metaeuk30.smag30.a3m" --msa-format-mode 6 --db-load-mode 2 --filter-msa ${FILTER} ${FILTER_PARAM}
73
+ fi
74
+ "${MMSEQS}" rmdb "${BASE}/res_env_exp_realign_filter"
75
+ "${MMSEQS}" rmdb "${BASE}/res_env_exp_realign"
76
+ "${MMSEQS}" rmdb "${BASE}/res_env_exp"
77
+ "${MMSEQS}" rmdb "${BASE}/res_env"
78
+ fi
79
+
80
+ "${MMSEQS}" rmdb "${BASE}/qdb"
81
+ "${MMSEQS}" rmdb "${BASE}/qdb_h"
82
+ "${MMSEQS}" rmdb "${BASE}/res"
83
+ rm -f -- "${BASE}/prof_res"*
84
+ rm -rf -- "${BASE}/tmp1" "${BASE}/tmp2" "${BASE}/tmp3"
data/AF_DATA/tdp43_WtoA_bf4cc_env/out.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1950695442b9666f9664d36f03a3019ca0e5cff6b87bac443d7305697c76fc8b
3
+ size 1795213
data/AF_DATA/tdp43_WtoA_bf4cc_env/pdb70.m8 ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 101 4bs2_A 0.988 168 2 0 102 269 7 174 3.231E-54 199 168M
2
+ 101 6dcl_B 0.305 170 113 3 99 263 2 171 2.014E-45 173 66M1D23M3D55M1D21M
3
+ 101 2lyv_A 0.286 185 122 4 92 266 2 186 3.710E-45 173 73M1D23M3D36M5D19M1D24M
4
+ 101 1u1l_A 0.292 178 116 4 99 266 2 179 1.708E-44 171 66M1D23M3D36M5D19M1D24M
5
+ 101 1ha1_A 0.295 169 109 4 99 260 1 166 1.655E-42 165 66M1D17M3I39M5D19M1D18M
6
+ 101 1up1_A 0.292 171 111 4 97 260 1 168 1.655E-42 165 68M1D17M3I39M5D19M1D18M
7
+ 101 1l3k_A 0.289 169 105 4 99 260 2 162 2.560E-41 161 66M1D16M8I35M5D19M1D18M
8
+ 101 5wwe_A 0.287 174 117 4 98 264 1 174 2.560E-41 161 67M1D23M3D36M2D19M1D22M
9
+ 101 7wm3_A 0.279 179 119 4 98 266 1 179 2.560E-41 161 67M1D23M3D35M5D20M1D24M
10
+ 101 2cjk_A 0.325 169 105 3 102 264 2 167 1.170E-40 159 84M3I34M5D27M1D15M
11
+ 101 2km8_C 0.325 169 105 3 102 264 2 167 1.170E-40 159 84M3I34M5D27M1D15M
12
+ 101 5mrg_A 0.990 102 1 0 1 102 13 114 1.501E-38 153 102M
13
+ 101 7kwz_A 0.978 139 3 0 276 414 1 139 1.744E-34 141 139M
14
+ 101 6b1g_A 0.975 80 2 0 1 80 1 80 7.056E-32 133 80M
15
+ 101 6t4b_E 0.987 78 1 0 2 79 1 78 1.402E-30 129 78M
16
+ 101 2n4p_A 0.987 77 1 0 1 77 13 89 1.402E-30 129 77M
17
+ 101 2n4p_A 0.987 77 1 0 1 77 13 89 1.402E-30 129 77M
18
+ 101 6b1g_B 0.975 80 2 0 1 80 1 80 1.890E-30 128 80M
19
+ 101 5x4f_A 0.961 77 3 0 1 77 1 77 2.764E-29 125 77M
20
+ 101 5x4f_A 0.961 77 3 0 1 77 1 77 2.764E-29 125 77M
21
+ 101 1cvj_C 0.179 167 129 4 106 265 3 168 9.084E-29 123 61M2D11M1I45M3D21M2D21M
22
+ 101 1cvj_D 0.192 156 120 4 106 257 3 156 2.981E-28 122 61M2D11M1I45M1I20M2D13M
23
+ 101 1g2e_A 0.214 168 118 4 104 260 3 167 4.012E-28 121 63M2D14M3I39M5D22M4D16M
24
+ 101 4egl_A 0.192 166 122 4 104 260 3 165 5.398E-28 121 63M2D14M3I39M5D23M2D15M
25
+ 101 5x8r_v 0.189 190 134 4 91 260 1 190 2.377E-27 119 76M2D11M11D47M5D21M2D15M
26
+ 101 4ed5_A 0.196 168 121 4 104 260 3 167 5.778E-27 118 63M2D14M3I39M5D22M4D16M
27
+ 101 2mjn_A 0.237 177 111 4 106 259 9 184 5.778E-27 118 60M2D18M19D40M1I20M2D15M
28
+ 101 1cvj_B 0.202 143 110 3 106 246 3 143 7.768E-27 117 61M2D11M1I45M1I22M
29
+ 101 1fnx_H 0.216 166 120 3 104 260 5 169 7.768E-27 117 80M1I38M5D22M4D16M
30
+ 101 5mdi_A 0.961 78 1 2 2 79 1 76 1.886E-26 116 37M1I10M1I29M
31
+ 101 7evo_4 0.219 173 112 5 102 264 1 160 1.886E-26 116 68M2D9M13I29M1D5M5D19M2D20M
32
+ 101 6r5k_F 0.233 163 116 4 103 257 4 165 2.534E-26 116 65M2D10M1I44M4D22M2D13M
33
+ 101 7z3x_B 0.181 187 136 4 91 260 3 189 4.575E-26 115 76M2D14M8D42M5D22M2D16M
34
+ 101 7q8a_A 0.181 187 136 4 91 260 3 189 8.255E-26 114 76M2D14M8D42M5D22M2D16M
35
+ 101 4qqb_B 0.233 167 118 3 104 261 3 168 1.999E-25 113 78M1I40M5D25M4D14M
36
+ 101 2kxh_A 0.177 180 131 4 98 260 8 187 1.999E-25 113 69M2D14M8D42M5D22M2D16M
37
+ 101 3sxl_A 0.234 162 113 3 104 260 2 157 2.685E-25 113 79M3I37M5D24M3I11M
38
+ 101 1b7f_B 0.228 166 118 3 104 260 3 167 3.604E-25 112 78M1I40M5D25M4D13M
39
+ 101 5kvy_A 0.189 185 134 4 92 260 3 187 3.604E-25 112 75M2D18M7D38M5D22M2D16M
40
+ 101 5kvy_B 0.184 184 135 4 92 260 4 187 3.604E-25 112 75M2D15M6D41M5D22M2D16M
41
+ 101 5kw6_A 0.182 186 135 4 92 260 4 189 8.716E-25 111 75M2D14M8D42M5D22M2D16M
42
+ 101 7c36_A 0.197 157 111 3 103 255 4 149 9.139E-24 108 62M8I53M4D20M3I7M
43
+ 101 2cqg_A 0.891 101 11 0 90 190 2 102 1.225E-23 108 101M
44
+ 101 3md3_A 0.207 164 118 5 106 260 3 163 3.955E-23 106 34M2I25M2D16M1I31M5D30M2D16M
45
+ 101 2qfj_A 0.172 185 135 5 92 260 1 183 5.489E-22 102 49M2I24M1D14M8D42M5D22M2D16M
46
+ 101 1cvj_H 0.210 138 96 4 106 241 3 129 1.761E-21 101 61M2D11M1I17M9I19M1I17M
47
+ 101 5mpg_A 0.273 95 68 1 92 185 2 96 2.357E-21 100 73M1D21M
48
+ 101 7csx_A 0.241 174 115 6 101 263 2 169 3.153E-21 100 9M1I57M5D18M1D10M1I24M5D26M4I13M
49
+ 101 7csz_A 0.237 177 115 6 101 263 4 174 7.545E-21 99 9M1I57M5D18M4D10M1I24M5D26M4I13M
50
+ 101 1cvj_F 0.220 136 92 4 106 239 3 126 1.009E-20 98 61M2D22M6I4M5I20M1I15M
51
+ 101 5kwq_A 0.170 182 136 5 92 260 2 181 1.804E-20 98 43M2I33M5D11M2D42M5D29M1D9M
52
+ 101 4y0f_B 0.974 77 2 0 103 179 1 77 7.691E-20 96 77M
53
+ 101 1x4b_A 0.280 100 71 1 92 190 16 115 7.691E-20 96 73M1D26M
54
+ 101 4y00_A 0.961 78 3 0 103 180 1 78 1.028E-19 95 78M
55
+ 101 4y00_C 0.961 77 3 0 103 179 1 77 1.833E-19 94 77M
56
+ 101 6c8u_1 0.325 89 59 1 105 192 26 114 1.833E-19 94 61M1D27M
57
+ 101 2dh8_A 0.333 102 67 1 90 190 3 104 2.449E-19 94 73M1D28M
58
+ 101 2rs2_A 0.378 82 50 1 104 184 1 82 7.781E-19 93 61M1D20M
59
+ 101 6nty_A 0.346 78 50 1 105 181 4 81 1.039E-18 92 61M1D16M
60
+ 101 1wf0_A 0.961 78 3 0 190 267 5 82 1.039E-18 92 78M
61
+ 101 1hd1_A 0.466 75 39 1 105 178 1 75 1.386E-18 92 60M1D14M
62
+ 101 1hd1_A 0.466 75 39 1 105 178 1 75 1.386E-18 92 60M1D14M
63
+ 101 5im0_A 0.466 75 39 1 105 178 4 78 1.386E-18 92 60M1D14M
64
+ 101 3s7r_B 0.405 79 46 1 101 178 2 80 1.850E-18 91 64M1D14M
65
+ 101 1uaw_A 0.394 76 45 1 104 178 1 76 5.859E-18 90 61M1D14M
66
+ 101 1uaw_A 0.394 76 45 1 104 178 1 76 5.859E-18 90 61M1D14M
67
+ 101 1uaw_A 0.394 76 45 1 104 178 1 76 5.859E-18 90 61M1D14M
68
+ 101 1uaw_A 0.394 76 45 1 104 178 1 76 5.859E-18 90 61M1D14M
69
+ 101 2cqd_A 0.293 92 64 1 88 178 2 93 1.042E-17 89 79M1D12M
70
+ 101 6jvy_A 0.328 76 50 1 104 178 7 82 1.852E-17 88 63M1D12M
71
+ 101 7eb1_A 0.381 76 45 1 105 178 7 82 3.291E-17 87 63M2D11M
72
+ 101 4cio_A 0.315 76 51 1 104 178 11 86 4.386E-17 87 63M1D12M
73
+ 101 4cio_A 0.315 76 51 1 104 178 11 86 4.386E-17 87 63M1D12M
74
+ 101 4cio_A 0.315 76 51 1 104 178 11 86 4.386E-17 87 63M1D12M
75
+ 101 2mgz_B 0.315 76 51 1 104 178 17 92 4.386E-17 87 63M1D12M
76
+ 101 2mgz_B 0.315 76 51 1 104 178 17 92 4.386E-17 87 63M1D12M
77
+ 101 2mgz_B 0.315 76 51 1 104 178 17 92 4.386E-17 87 63M1D12M
78
+ 101 1x5s_A 0.318 88 58 1 105 190 14 101 5.845E-17 87 63M2D23M
79
+ 101 1x5s_A 0.318 88 58 1 105 190 14 101 5.845E-17 87 63M2D23M
80
+ 101 1x5s_A 0.318 88 58 1 105 190 14 101 5.845E-17 87 63M2D23M
81
+ 101 5tbx_A 0.355 76 47 1 105 178 5 80 1.038E-16 86 63M2D11M
82
+ 101 5tbx_B 0.355 76 47 1 105 178 8 83 1.038E-16 86 63M2D11M
83
+ 101 4c7q_A 0.363 77 47 1 107 181 10 86 1.382E-16 85 61M2D14M
84
+ 101 4c7q_A 0.363 77 47 1 107 181 10 86 1.382E-16 85 61M2D14M
85
+ 101 3d2w_A 0.871 70 9 0 192 261 3 72 1.026E-15 83 70M
86
+ 101 7py2_A 0.987 79 1 0 282 360 1 79 1.366E-15 82 79M
87
+ 101 2dgs_A 0.325 89 54 2 183 265 3 91 1.366E-15 82 41M5D17M1D25M
88
+ 101 6sj7_C 0.328 73 47 1 105 175 2 74 1.817E-15 82 62M2D9M
89
+ 101 6ue5_C 0.328 73 47 1 105 175 4 76 1.817E-15 82 62M2D9M
90
+ 101 7q33_A 0.328 73 47 1 105 175 6 78 1.817E-15 82 62M2D9M
91
+ 101 2jrs_A 0.328 73 47 1 105 175 28 100 1.817E-15 82 62M2D9M
92
+ 101 2krr_A 0.217 170 117 7 105 265 9 171 1.817E-15 82 17M4D7M1D7M6I22M1D23M1I56M2D17M1D5M
93
+ 101 5x3z_A 0.318 88 59 1 105 191 6 93 2.418E-15 81 59M1D28M
94
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
95
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
96
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
97
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
98
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
99
+ 101 1rkj_A 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
100
+ 101 1fje_B 0.217 156 117 4 103 255 13 166 2.418E-15 81 34M1I26M1D20M1I60M2D11M
101
+ 101 2mpu_A 0.311 77 51 1 107 181 12 88 3.218E-15 81 60M2D15M
102
+ 101 2mpu_A 0.311 77 51 1 107 181 12 88 3.218E-15 81 60M2D15M
103
+ 101 5mpl_A 0.296 91 58 2 182 266 2 92 4.281E-15 81 42M5D19M1D24M
104
+ 101 1p1t_A 0.294 85 58 1 104 186 9 93 4.281E-15 81 63M2D20M
105
+ 101 6q2i_A 0.294 85 58 1 104 186 16 100 4.281E-15 81 63M2D20M
106
+ 101 2rne_A 0.270 96 68 1 90 183 2 97 4.281E-15 81 76M2D18M
107
+ 101 7jly_A 0.246 81 59 1 105 183 3 83 5.695E-15 80 61M2D18M
108
+ 101 2mks_A 0.256 82 59 1 99 178 5 86 5.695E-15 80 69M2D11M
109
+ 101 2mks_A 0.256 82 59 1 99 178 5 86 5.695E-15 80 69M2D11M
110
+ 101 2mb0_B 0.256 82 59 1 99 178 3 84 5.695E-15 80 69M2D11M
111
+ 101 2dnz_A 0.319 72 47 1 106 175 8 79 7.575E-15 80 61M2D9M
112
+ 101 2dh7_A 0.252 103 75 1 90 190 2 104 1.008E-14 79 76M2D25M
113
+ 101 2rra_A 0.270 96 68 1 90 183 2 97 1.340E-14 79 77M2D17M
114
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
115
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
116
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
117
+ 101 6n3a_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
118
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
119
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
120
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
121
+ 101 2n3x_A 0.980 50 1 0 311 360 1 50 1.782E-14 79 50M
122
+ 101 2mst_A 0.346 75 48 1 105 178 1 75 1.782E-14 79 59M1D15M
123
+ 101 2mst_A 0.346 75 48 1 105 178 1 75 1.782E-14 79 59M1D15M
124
+ 101 2mst_A 0.346 75 48 1 105 178 1 75 1.782E-14 79 59M1D15M
125
+ 101 2mst_A 0.346 75 48 1 105 178 1 75 1.782E-14 79 59M1D15M
126
+ 101 2mst_A 0.346 75 48 1 105 178 1 75 1.782E-14 79 59M1D15M
127
+ 101 2cqc_A 0.290 93 64 1 90 180 2 94 2.369E-14 78 77M2D14M
128
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
129
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
130
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
131
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
132
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
133
+ 101 2kxn_B 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
134
+ 101 2rrb_A 0.280 89 62 1 97 183 6 94 3.149E-14 78 70M2D17M
135
+ 101 5ith_A 0.306 75 50 1 106 178 6 80 4.187E-14 78 60M2D13M
136
+ 101 6tze_A 0.282 85 59 1 104 186 16 100 5.565E-14 77 63M2D20M
137
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
138
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
139
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
140
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
141
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
142
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
143
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
144
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
145
+ 101 2n4h_A 0.960 50 2 0 311 360 1 50 7.396E-14 77 50M
146
+ 101 5o3j_A 0.310 74 49 1 106 177 7 80 9.829E-14 76 60M2D12M
147
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
148
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
149
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
150
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
151
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
152
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
153
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
154
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
155
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
156
+ 101 2n4g_A 0.960 50 2 0 311 360 1 50 1.306E-13 76 50M
157
+ 101 2lea_A 0.266 90 64 1 92 179 2 91 2.306E-13 75 75M2D13M
158
+ 101 2leb_A 0.266 90 64 1 92 179 2 91 2.306E-13 75 75M2D13M
159
+ 101 2lec_A 0.266 90 64 1 92 179 2 91 2.306E-13 75 75M2D13M
160
+ 101 2lec_A 0.266 90 64 1 92 179 2 91 2.306E-13 75 75M2D13M
161
+ 101 3vai_A 0.170 176 118 6 104 260 7 173 3.063E-13 75 21M11D14M6I24M1D10M3I44M5D19M2D16M
162
+ 101 7s3b_A 0.168 190 121 6 102 260 7 190 3.063E-13 75 23M11D14M6I24M1D18M12D39M5D19M2D16M
163
+ 101 1x0f_A 0.350 77 49 1 105 180 3 79 4.069E-13 74 61M1D15M
164
+ 101 4fxv_A 0.246 81 59 1 102 180 3 83 4.069E-13 74 65M2D14M
165
+ 101 7zex_A 0.259 77 55 1 106 180 11 87 4.069E-13 74 61M2D14M
166
+ 101 7zez_A 0.259 77 55 1 106 180 11 87 4.069E-13 74 61M2D14M
167
+ 101 2cqb_A 0.259 77 55 1 106 180 15 91 4.069E-13 74 61M2D14M
168
+ 101 7zew_A 0.259 77 55 1 106 180 11 87 4.069E-13 74 61M2D14M
169
+ 101 2ku7_A 0.240 108 77 3 73 178 36 140 4.069E-13 74 4M2I24M1I63M2D12M
170
+ 101 4tu7_B 0.170 176 118 6 104 260 7 173 4.069E-13 74 21M11D14M6I24M1D10M3I44M5D19M2D16M
171
+ 101 7s3c_A 0.176 187 120 6 102 260 5 185 4.069E-13 74 23M11D14M6I24M1D14M9D43M5D19M2D16M
172
+ 101 5z57_y 0.265 79 56 1 106 182 4 82 4.069E-13 74 61M2D16M
173
+ 101 5yzg_1 0.265 79 56 1 106 182 4 82 4.069E-13 74 61M2D16M
174
+ 101 1u6f_A 0.187 96 78 0 92 187 31 126 5.404E-13 74 96M
175
+ 101 2kn4_A 0.280 82 57 1 100 179 67 148 5.404E-13 74 67M2D13M
176
+ 101 2kn4_A 0.280 82 57 1 100 179 67 148 5.404E-13 74 67M2D13M
177
+ 101 1iqt_A 0.346 75 48 1 105 178 1 75 7.177E-13 74 61M1D13M
178
+ 101 1iqt_A 0.346 75 48 1 105 178 1 75 7.177E-13 74 61M1D13M
179
+ 101 1iqt_A 0.346 75 48 1 105 178 1 75 7.177E-13 74 61M1D13M
180
+ 101 1iqt_A 0.346 75 48 1 105 178 1 75 7.177E-13 74 61M1D13M
181
+ 101 1iqt_A 0.346 75 48 1 105 178 1 75 7.177E-13 74 61M1D13M
182
+ 101 1d8z_A 0.227 79 59 1 104 180 5 83 7.177E-13 74 63M2D14M
183
+ 101 5szw_A 0.253 79 57 1 104 180 22 100 7.177E-13 74 63M2D14M
184
+ 101 7a5p_o 0.266 75 53 1 106 178 2 76 9.531E-13 73 61M2D12M
185
+ 101 6id1_y 0.266 75 53 1 106 178 4 78 9.531E-13 73 61M2D12M
186
+ 101 3bs9_B 0.280 75 52 1 106 178 4 78 9.531E-13 73 60M2D13M
187
+ 101 2kyx_A 0.266 75 53 1 106 178 8 82 9.531E-13 73 61M2D12M
188
+ 101 3mdf_A 0.266 75 53 1 106 178 8 82 9.531E-13 73 61M2D12M
189
+ 101 3mdf_B 0.266 75 53 1 106 178 8 82 9.531E-13 73 61M2D12M
190
+ 101 5mqf_o 0.266 75 53 1 106 178 2 76 9.531E-13 73 61M2D12M
191
+ 101 7qzp_A 0.289 76 52 1 105 178 2 77 1.266E-12 73 64M2D10M
192
+ 101 7q3u_A 0.985 71 1 0 281 351 1 71 1.680E-12 72 71M
193
+ 101 3hi9_A 0.259 77 55 1 104 178 3 79 2.231E-12 72 63M2D12M
194
+ 101 2dgp_A 0.296 91 59 2 105 190 15 105 2.231E-12 72 63M3D3M2D20M
195
+ 101 6xlv_A 0.164 194 121 6 102 260 10 197 2.231E-12 72 23M11D16M6I22M1D18M16D39M5D19M2D16M
196
+ 101 5gvq_A 0.263 91 65 1 90 178 2 92 2.961E-12 72 80M2D9M
197
+ 101 6tr0_A 0.164 195 121 6 102 260 10 198 2.961E-12 72 23M11D14M6I24M1D18M17D39M5D19M2D16M
198
+ 101 7abg_w 0.302 76 51 1 105 178 3 78 3.931E-12 71 65M2D9M
199
+ 101 6ah0_4 0.302 76 51 1 105 178 3 78 3.931E-12 71 65M2D9M
200
+ 101 7qtt_F 0.302 76 51 1 105 178 3 78 3.931E-12 71 65M2D9M
201
+ 101 7abh_w 0.302 76 51 1 105 178 3 78 3.931E-12 71 65M2D9M
202
+ 101 8ch6_F 0.302 76 51 1 105 178 3 78 3.931E-12 71 65M2D9M
203
+ 101 2rq4_A 0.250 100 73 1 93 190 15 114 3.931E-12 71 74M2D24M
204
+ 101 2yh0_A 0.165 193 119 6 104 260 2 188 3.931E-12 71 21M11D14M6I24M1D18M17D39M5D19M2D16M
205
+ 101 3md1_B 0.276 76 53 1 105 178 3 78 5.218E-12 71 63M2D11M
206
+ 101 2khc_A 0.278 79 57 0 90 168 27 105 5.218E-12 71 79M
207
+ 101 2dnm_A 0.233 90 67 1 92 179 2 91 6.925E-12 70 75M2D13M
208
+ 101 7qtt_V 0.303 79 53 1 101 177 206 284 6.925E-12 70 66M2D11M
209
+ 101 2cq0_A 0.258 93 67 1 90 180 2 94 1.219E-11 70 79M2D12M
210
+ 101 5z56_Y 0.301 73 49 1 106 176 31 103 1.219E-11 70 61M2D10M
211
+ 101 7abi_1 0.301 73 49 1 106 176 37 109 1.219E-11 70 61M2D10M
212
+ 101 7dvq_Y 0.301 73 49 1 106 176 38 110 1.219E-11 70 61M2D10M
213
+ 101 5mmm_v 0.250 80 58 1 101 178 1 80 1.618E-11 69 66M2D12M
214
+ 101 2ki2_A 0.310 74 48 2 104 175 2 74 2.147E-11 69 49M1I16M2D6M
215
+ 101 2ki2_A 0.310 74 48 2 104 175 2 74 2.147E-11 69 49M1I16M2D6M
216
+ 101 2dgq_A 0.273 106 72 2 90 190 2 107 2.147E-11 69 78M3D3M2D20M
217
+ 101 2my7_A 0.244 90 66 1 99 186 7 96 2.848E-11 68 68M2D20M
218
+ 101 2my7_A 0.244 90 66 1 99 186 7 96 2.848E-11 68 68M2D20M
219
+ 101 2my8_A 0.244 90 66 1 99 186 7 96 2.848E-11 68 68M2D20M
220
+ 101 5m8i_A 0.244 90 66 1 99 186 24 113 2.848E-11 68 68M2D20M
221
+ 101 2sxl_A 0.268 82 60 0 104 185 4 85 5.011E-11 68 82M
222
+ 101 2e5h_A 0.252 91 66 1 90 178 3 93 5.011E-11 68 74M2D15M
223
+ 101 1whw_A 0.266 90 64 1 103 190 8 97 6.646E-11 67 62M2D26M
224
+ 101 1whw_A 0.266 90 64 1 103 190 8 97 6.646E-11 67 62M2D26M
225
+ 101 6es4_B 0.234 81 59 2 103 180 125 205 6.646E-11 67 63M2D4M1D11M
226
+ 101 6es4_A 0.234 81 59 2 103 180 127 207 6.646E-11 67 63M2D4M1D11M
227
+ 101 4pkd_B 0.162 216 119 6 102 258 3 215 6.646E-11 67 21M4D19M3I23M2D13M46D42M5D21M2D15M
228
+ 101 6g2k_C 0.259 77 55 1 103 177 1 77 8.815E-11 67 64M2D11M
229
+ 101 7wez_D 0.229 74 55 1 106 177 5 78 8.815E-11 67 61M2D11M
230
+ 101 6g2k_B 0.259 77 55 1 103 177 2 78 8.815E-11 67 64M2D11M
231
+ 101 2myf_A 0.229 74 55 1 106 177 13 86 8.815E-11 67 61M2D11M
232
+ 101 8etg_o 0.272 99 70 1 106 202 6 104 8.815E-11 67 61M2D36M
233
+ 101 8euy_o 0.272 99 70 1 106 202 6 104 8.815E-11 67 61M2D36M
234
+ 101 8esr_o 0.272 99 70 1 106 202 6 104 8.815E-11 67 61M2D36M
235
+ 101 6gd1_B 0.259 77 55 1 103 177 109 185 8.815E-11 67 64M2D11M
236
+ 101 6gd1_A 0.259 77 55 1 103 177 112 188 8.815E-11 67 64M2D11M
237
+ 101 6n3b_B 0.975 41 1 0 312 352 1 41 1.169E-10 66 41M
238
+ 101 4ljm_A 0.264 68 50 0 101 168 2 69 1.169E-10 66 68M
239
+ 101 1x4h_A 0.220 109 77 1 90 190 2 110 1.550E-10 66 75M8D26M
240
+ 101 5k0y_O 0.289 76 52 1 105 178 2 77 2.055E-10 66 64M2D10M
241
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
242
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
243
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
244
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
245
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
246
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
247
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
248
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
249
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
250
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
251
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
252
+ 101 1sxl_A 0.268 67 49 0 102 168 12 78 2.055E-10 66 67M
253
+ 101 2n2c_A 0.974 39 1 0 311 349 5 43 2.725E-10 65 39M
254
+ 101 2n2c_A 0.974 39 1 0 311 349 5 43 2.725E-10 65 39M
255
+ 101 5zwn_Q 0.269 63 46 0 102 164 103 165 2.725E-10 65 63M
256
+ 101 6g90_B 0.269 63 46 0 102 164 94 156 2.725E-10 65 63M
257
+ 101 6zmw_o 0.323 65 44 0 105 169 3 67 3.613E-10 65 65M
258
+ 101 2km8_B 0.215 79 60 1 101 177 2 80 3.613E-10 65 66M2D11M
259
+ 101 2km8_B 0.215 79 60 1 101 177 2 80 3.613E-10 65 66M2D11M
260
+ 101 2x1b_A 0.217 78 59 1 102 177 2 79 4.790E-10 64 65M2D11M
261
+ 101 5t9p_D 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
262
+ 101 2x1f_A 0.217 78 59 1 102 177 1 78 4.790E-10 64 65M2D11M
263
+ 101 5t9p_A 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
264
+ 101 5t9p_B 0.256 74 53 1 106 177 7 80 4.790E-10 64 61M2D11M
265
+ 101 7ohx_o 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
266
+ 101 6em4_o 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
267
+ 101 7ohp_o 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
268
+ 101 6yly_o 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
269
+ 101 7btb_o 0.256 74 53 1 106 177 6 79 4.790E-10 64 61M2D11M
270
+ 101 8i9t_CI 0.265 83 59 1 102 182 2 84 6.349E-10 64 64M2D17M
271
+ 101 5oob_J 0.228 92 69 1 102 191 35 126 6.349E-10 64 62M2D28M
272
+ 101 1h2v_Z 0.243 78 57 1 102 177 6 83 1.115E-09 63 62M2D14M
273
+ 101 1n54_B 0.243 78 57 1 102 177 33 110 1.115E-09 63 62M2D14M
274
+ 101 1x4e_A 0.300 60 42 0 106 165 8 67 1.478E-09 63 60M
275
+ 101 3cw1_K 0.195 97 76 1 83 177 22 118 1.959E-09 63 80M2D15M
276
+ 101 6n3b_A 0.972 36 1 0 311 346 1 36 3.440E-09 62 36M
277
+ 101 7vpx_O 0.189 79 62 1 105 181 103 181 6.040E-09 61 58M2D19M
278
+ 101 3b4d_A 0.226 75 57 1 102 175 2 76 8.002E-09 61 62M1D12M
279
+ 101 3ucg_A 0.226 75 57 1 102 175 5 79 8.002E-09 61 62M1D12M
280
+ 101 7a5p_w 0.225 80 60 1 106 183 12 91 8.002E-09 61 62M2D16M
281
+ 101 6n37_A 0.971 35 1 0 312 346 1 35 1.060E-08 60 35M
282
+ 101 1d9a_A 0.274 62 45 0 105 166 3 64 1.060E-08 60 62M
283
+ 101 3pgw_L 0.200 75 58 1 105 177 71 145 1.060E-08 60 58M2D15M
284
+ 101 6qx9_R 0.290 62 44 0 105 166 14 75 2.464E-08 59 62M
285
+ 101 2jwn_B 0.232 73 55 1 104 175 37 109 2.464E-08 59 60M1D12M
286
+ 101 4uqt_A 0.246 73 53 1 106 176 9 81 3.263E-08 59 61M2D10M
287
+ 101 2mkc_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
288
+ 101 2my3_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
289
+ 101 2my2_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
290
+ 101 2my2_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
291
+ 101 2my2_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
292
+ 101 2my2_A 0.246 73 53 1 106 176 13 85 3.263E-08 59 61M2D10M
293
+ 101 5zwm_X 0.246 73 53 1 106 176 32 104 3.263E-08 59 61M2D10M
294
+ 101 6n7p_Y 0.207 82 63 1 98 177 22 103 3.263E-08 59 66M2D14M
295
+ 101 5w0h_A 0.210 76 58 1 105 178 4 79 5.723E-08 58 62M2D12M
296
+ 101 2u2f_A 0.210 76 58 1 105 178 3 78 5.723E-08 58 62M2D12M
297
+ 101 7aao_A 0.204 83 64 1 100 180 35 117 7.579E-08 57 67M2D14M
298
+ 101 4wkr_B 0.242 66 50 0 101 166 94 159 7.579E-08 57 66M
299
+ 101 7slq_B 0.253 63 47 0 101 163 94 156 1.004E-07 57 63M
300
+ 101 5lqw_J 0.222 63 49 0 106 168 8 70 2.330E-07 56 63M
data/AF_DATA/tdp43_WtoA_bf4cc_env/uniref.a3m ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_pae.png ADDED

Git LFS Details

  • SHA256: e8b3e7d8548b4d8ada7bc869a0d5ac8ac862da26ac9af526247730db0b079461
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
data/AF_DATA/tdp43_WtoA_bf4cc_plddt.png ADDED

Git LFS Details

  • SHA256: cb255e2bbe94f2a853d5ac4d1b0240ab12f27c24a64db560313553667ea8396b
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
data/AF_DATA/tdp43_WtoA_bf4cc_predicted_aligned_error_v1.json ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_scores_rank_001_alphafold2_ptm_model_3_seed_000.json ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/tdp43_WtoA_bf4cc_unrelaxed_rank_001_alphafold2_ptm_model_3_seed_000.pdb ADDED
The diff for this file is too large to render. See raw diff
 
data/AF_DATA/vmdscene.tga ADDED

Git LFS Details

  • SHA256: e5f7348c4d2de1989e2255ce7619f9f4626ae5405b94dba1ccbdbb84dd4c6778
  • Pointer size: 132 Bytes
  • Size of remote file: 2.49 MB
data/LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
data/environment.yml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: AlphaFold-IDP
2
+ dependencies:
3
+ - python=3.8
4
+ - numpy
5
+ - pandas
6
+ - scipy
7
+ - matplotlib
8
+ - notebook
9
+ - conda-forge::mdtraj
10
+ - plumed
11
+ - gromacs
12
+
data/prep_run/.ipynb_checkpoints/prepare_run-checkpoint.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
data/prep_run/prepare_run.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
data/requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ numpy
2
+ pandas
3
+ scipy
4
+ sklearn
5
+ mdtraj
6
+ matplolib
7
+ plumed
8
+ gromacs
data/scripts_prep/backmap.py ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # coding: utf-8
3
+
4
+
5
+
6
+ #Make the plumed file
7
+ import mdtraj as md
8
+ import os
9
+ import sys
10
+ name='input_af'
11
+ pdb=name+'.pdb'
12
+ ########### Conactenate ########
13
+ n_rep=int(sys.argv[1])
14
+ trajs = list()
15
+ skip=2
16
+ eq=10
17
+
18
+
19
+ #############
20
+ xtc='r0/conf-protein.xtc'
21
+ topology = md.load(pdb).topology
22
+ traj = md.load(xtc, top=pdb)
23
+
24
+ table, bonds = topology.to_dataframe()
25
+ print('CALVADOS topology',table.head())
26
+
27
+ #########
28
+ fasta_file = open('sequence.dat',mode='r')
29
+ fasta = fasta_file.read().replace("\n","")
30
+ fasta_file.close()
31
+ print(fasta[0])
32
+
33
+ aminoacids=['ALA','ARG','ASN','ASP','CYS','GLU','GLN','GLY','HIS','ILE','LEU','LYS','MET','PHE','PRO','SER','THR','TRP','TYR','VAL']
34
+ aminos_sin=['A','R','N','D','C','E','Q','G','H','I','L','K','M','F','P','S','T','W','Y','V']
35
+
36
+ print(aminoacids[aminos_sin.index(fasta[0])])
37
+ print(aminoacids[aminos_sin.index(fasta[-1])])
38
+ table.loc[table.index[-1],'resName']=aminoacids[aminos_sin.index(fasta[-1])]
39
+ table.loc[table.index[0],'resName']=aminoacids[aminos_sin.index(fasta[0])]
40
+
41
+ table.loc[table.index[-1],'name']=aminoacids[aminos_sin.index(fasta[-1])]
42
+ table.loc[table.index[0],'name']=aminoacids[aminos_sin.index(fasta[0])]
43
+ table['serial'] = table['resSeq']
44
+ ########
45
+
46
+ for AA in aminoacids:
47
+ table['name'] = table['name'].replace([AA], 'CA')
48
+
49
+
50
+ print('new topology with CA, cg naming', table.head())
51
+
52
+
53
+ topologyCA = md.Topology.from_dataframe(table, bonds)
54
+
55
+
56
+ print(topologyCA)
57
+
58
+
59
+ traj = md.load_pdb(pdb,top=topologyCA)
60
+ traj.save(name+'cg.pdb')
61
+
62
+
63
+
64
+
65
+ #Trajectory
66
+ for j in range(5,5+1):
67
+ name='input_af'
68
+ pdb=name+'.pdb'
69
+ dcd='r0/conf-protein.xtc'
70
+ traj_name=name+'_'+str(j)+'dcd.pdb'
71
+ topology = md.load(pdb).topology
72
+ traj = md.load(dcd, top=pdb)
73
+ traj.save(traj_name)
74
+ pdb=traj_name
75
+ table, bonds = topology.to_dataframe()
76
+ print('CALVADOS topology',table.head())
77
+ #########
78
+ fasta_file = open('sequence.dat',mode='r')
79
+ fasta = fasta_file.read().replace("\n","")
80
+ fasta_file.close()
81
+ print(fasta[0])
82
+
83
+ aminoacids=['ALA','ARG','ASN','ASP','CYS','GLU','GLN','GLY','HIS','ILE','LEU','LYS','MET','PHE','PRO','SER','THR','TRP','TYR','VAL']
84
+ aminos_sin=['A','R','N','D','C','E','Q','G','H','I','L','K','M','F','P','S','T','W','Y','V']
85
+
86
+ print(aminoacids[aminos_sin.index(fasta[0])])
87
+ print(aminoacids[aminos_sin.index(fasta[-1])])
88
+ table.loc[table.index[-1],'resName']=aminoacids[aminos_sin.index(fasta[-1])]
89
+ table.loc[table.index[0],'resName']=aminoacids[aminos_sin.index(fasta[0])]
90
+
91
+ table.loc[table.index[-1],'name']=aminoacids[aminos_sin.index(fasta[-1])]
92
+ table.loc[table.index[0],'name']=aminoacids[aminos_sin.index(fasta[0])]
93
+ table['serial'] = table['resSeq']
94
+ ########
95
+ for AA in aminoacids:
96
+ table['name'] = table['name'].replace([AA], 'CA')
97
+ print('new topology with CA, cg naming', table.head())
98
+ topologyCA = md.Topology.from_dataframe(table, bonds)
99
+ traj = md.load_pdb(pdb,top=topologyCA)
100
+ traj.save(name+'_'+str(j)+'dcdcg.pdb')
101
+ print('laste'+str(j))
102
+ for i in range(0,len(traj)):
103
+ traj[i].save('segment_'+str(j)+'_'+name+'_'+str(i)+'.pdb')
data/scripts_prep/dcd2xtc.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Make the plumed file
2
+ import mdtraj as md
3
+ import os
4
+ import sys
5
+ name='input_af'
6
+ pdb=name+'.pdb'
7
+ ########### Conactenate ########
8
+ n_rep=int(sys.argv[1])
9
+ trajs = list()
10
+ skip=1
11
+ eq=1
12
+ os.system('rm input_af_*rebuilt.xtc input_af_bm_em.pdb input_af_bm_em_*.pdb *rebuilt.pdb segment*pdb *dcd')
13
+ for i in range(0,n_rep):
14
+ try:
15
+ print(f'loading {i}')
16
+ traj = md.load_dcd(f'../output_{i}.dcd', top='input_af.pdb')
17
+
18
+ traj.save('output_'+str(i)+'.xtc')
19
+ except KeyboardInterrupt:
20
+ raise
21
+ except Exception as e:
22
+ raise
23
+
data/scripts_prep/fes2.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import matplotlib.pyplot as plt
3
+ import itertools
4
+ import os
5
+ import pandas as pd
6
+ import argparse, sys
7
+ parser = argparse.ArgumentParser()
8
+ parser.add_argument("--CV_col", help="CV column in the COLVAR file (starting at 0)",required=True,type=str)
9
+ parser.add_argument("--CV_name", help="CVname",required=True,type=str)
10
+
11
+ args = parser.parse_args()
12
+
13
+ CVcol =args.CV_col
14
+ CVname =args.CV_name
15
+ print(int(CVcol))
16
+ eq_steps=1
17
+
18
+ time=np.loadtxt("FULLBIAS")[:, 0]
19
+ bias=np.loadtxt("FULLBIAS")[:, 1]
20
+ CV=np.loadtxt("COLVAR")[:, int(CVcol)]
21
+ KBT = 2.49
22
+ weights = np.exp(bias/ KBT)
23
+ weights /= weights.sum()
24
+
25
+ #value, bins=np.histogram(CVname[eq_steps:-1], bins=30, weights=weights[eq_steps:-1], density=True)
26
+ value1, bins1=np.histogram(CV[eq_steps:int(len(CV)/5)], bins=30, weights=weights[eq_steps:int(len(CV)/5)], density=True)
27
+ value2, bins2=np.histogram(CV[eq_steps:int(2*len(CV)/5)], bins=30, weights=weights[eq_steps:int(2*len(CV)/5)], density=True)
28
+ value3, bins3=np.histogram(CV[eq_steps:int(3*len(CV)/5)], bins=30, weights=weights[eq_steps:int(3*len(CV)/5)], density=True)
29
+ value4, bins4=np.histogram(CV[eq_steps:int(4*len(CV)/5)], bins=30, weights=weights[eq_steps:int(4*len(CV)/5)], density=True)
30
+ value5, bins5=np.histogram(CV[eq_steps:int(5*len(CV)/5)], bins=30, weights=weights[eq_steps:int(5*len(CV)/5)], density=True)
31
+
32
+ logvalue1=-np.log(value1)
33
+ logvalue1=logvalue1-min(logvalue1)
34
+ logvalue2=-np.log(value2)
35
+ logvalue2=logvalue2-min(logvalue2)
36
+ logvalue3=-np.log(value3)
37
+ logvalue3=logvalue3-min(logvalue3)
38
+ logvalue4=-np.log(value4)
39
+ logvalue4=logvalue4-min(logvalue4)
40
+
41
+ logvalue5=-np.log(value5)
42
+ logvalue5=logvalue5-min(logvalue5)
43
+ plt.tick_params(labelsize=24)
44
+ plt.plot(bins1[:-1],logvalue1,linewidth=3,color='red')
45
+ plt.plot(bins2[:-1],logvalue2,linewidth=3,color='green')
46
+ plt.plot(bins3[:-1],logvalue3,linewidth=3,color='blue')
47
+ plt.plot(bins4[:-1],logvalue4,linewidth=3,color='pink')
48
+ plt.plot(bins5[:-1],logvalue5,linewidth=3,color='yellow')
49
+ plt.legend( ['t1', 't2','t3','t4','t5'],loc='lower right',ncol=2,prop={'size': 11})
50
+ figure = plt.gcf()
51
+ figure.set_size_inches(6, 7)
52
+ plt.xlabel(str(CVname),fontsize=24 )
53
+ plt.ylabel('F (kJ/mol)',fontsize=24 )
54
+ plt.savefig('FES'+str(CVname)+'.png',dpi=400,transparent=True, bbox_inches='tight')
data/scripts_prep/gen_xml_and_constraints.py ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #python gen_xml_and_constraints.py sequence.dat 7.4 298 0.2
2
+ import pandas as pd
3
+ import numpy as np
4
+ import pickle
5
+ import mdtraj as md
6
+ import sys
7
+
8
+ def adjust_terminals_HIS(r,pH,fasta):
9
+ r.loc['H','q'] = 1. / ( 1 + 10**(pH-6) )
10
+ r.loc['X'] = r.loc[fasta[0]]
11
+ r.loc['X','q'] = r.loc[fasta[0],'q'] + 1.
12
+ r.loc['X','MW'] = r.loc[fasta[0],'MW'] + 2.
13
+ r.loc['X','three'] = 'X'
14
+
15
+ r.loc['Z'] = r.loc[fasta[-1]]
16
+ r.loc['Z','q'] = r.loc[fasta[-1],'q'] - 1.
17
+ r.loc['Z','MW'] = r.loc[fasta[-1],'MW'] + 16.
18
+ r.loc['Z','three'] = 'Z'
19
+
20
+ return r.set_index('three')
21
+
22
+ def calculate_yukawa_params(temp,ionic):
23
+ RT = 8.3145*temp*1e-3
24
+ fepsw = lambda T : 5321/T+233.76-0.9297*T+0.1417*1e-2*T*T-0.8292*1e-6*T**3
25
+ epsw = fepsw(temp)
26
+ lB = 1.6021766**2/(4*np.pi*8.854188*epsw)*6.022*1000/RT
27
+ yukawa_kappa = np.sqrt(8*np.pi*lB*ionic*6.022/10)
28
+ return yukawa_kappa, RT, lB
29
+
30
+ def generate_atomtypes_block(res):
31
+ tag = 'AtomTypes'
32
+ atomtypes = ""
33
+ for i,r in res.iterrows():
34
+ atomtype = '<Type name="{}" class="C" element="C-{}" mass="{}"/>\n'.format(i,i,str(r.MW))
35
+ atomtypes += " " + atomtype
36
+ out = " <{0}>\n{1} </{0}>\n\n".format(tag,atomtypes)
37
+ return out
38
+
39
+ def generate_residues_block(res):
40
+ tag = 'Residues'
41
+ residues = ""
42
+ for i,r in res.iterrows():
43
+ atom = ' <Atom name="{0}" type="{0}" charge="{1}"/>'.format(i,r.q)
44
+ bond = ' <ExternalBond atomName="{}"/>'.format(i)
45
+ if i not in ['X','Z']:
46
+ bond += '\n <ExternalBond atomName="{}"/>'.format(i)
47
+ residue = '<Residue name="{}">\n{}\n{}\n </Residue>\n'.format(i,atom,bond)
48
+ residues += " " + residue
49
+ out = " <{0}>\n{1} </{0}>\n\n".format(tag,residues)
50
+ return out
51
+
52
+ def generate_harmonicBond_block(length,k):
53
+ tag = "HarmonicBondForce"
54
+ bond = ' <Bond class1="C" class2="C" length="{}" k="{}"/>'.format(length,k)
55
+ out = " <{0}>\n{1}\n </{0}>\n\n".format(tag,bond)
56
+ return out
57
+
58
+ def generate_yukawa_block(res,temp,ionic,r_cut):
59
+ kappa, RT, lB = calculate_yukawa_params(temp,ionic)
60
+ energy_eq = "RT*lB*epsilon1*epsilon2*(exp(-r*kappa)/r-exp(-r_cut*kappa)/r_cut)"
61
+ tag = "CustomNonbondedForce"
62
+ outer = ' <{} energy="{}" bondCutoff="0">\n'.format(tag,energy_eq)
63
+ inner = ' <GlobalParameter name="RT" defaultValue="{}"/>\n'.format(RT)
64
+ inner += ' <GlobalParameter name="lB" defaultValue="{}"/>\n'.format(lB)
65
+ inner += ' <GlobalParameter name="kappa" defaultValue="{}"/>\n'.format(kappa)
66
+ inner += ' <GlobalParameter name="r_cut" defaultValue="{}"/>\n'.format(r_cut)
67
+ inner += ' <PerParticleParameter name="epsilon"/>\n'
68
+ for i,r in res.iterrows():
69
+ inner += ' <Atom type="{}" epsilon="{}"/>\n'.format(i,r.q)
70
+ out = outer+inner+" </{}>\n\n".format(tag)
71
+ return out
72
+
73
+ def generate_ashbaugh_block(res,rcut):
74
+ lj_eps = 4.184*.2
75
+ threshold= 2**(1/6)
76
+ energy_eq = "c1*vlj+c2-shift;vlj=4*epsilon*((sigma/r)^12-(sigma/r)^6);c1=select(delta(d),lambda,s1);c2=select(delta(d),0,s2);s1=select(step(d),lambda,1);s2=select(step(d),0,(1-lambda)*epsilon);d=r-threshold*sigma;shift=lambda*vlj_shift;vlj_shift=4*epsilon*((sigma/rcut)^12-(sigma/rcut)^6);lambda=0.5*(lambda1+lambda2);sigma=0.5*(sigma1+sigma2)"
77
+ tag = "CustomNonbondedForce"
78
+ outer = ' <{} energy="{}" bondCutoff="0">\n'.format(tag,energy_eq)
79
+ inner = ' <GlobalParameter name="epsilon" defaultValue="{}"/>\n'.format(lj_eps)
80
+ inner += ' <GlobalParameter name="threshold" defaultValue="{}"/>\n'.format(threshold)
81
+ inner += ' <GlobalParameter name="rcut" defaultValue="{}"/>\n'.format(rcut)
82
+ inner += ' <PerParticleParameter name="sigma"/>\n'
83
+ inner += ' <PerParticleParameter name="lambda"/>\n'
84
+ for i,r in res.iterrows():
85
+ inner += ' <Atom type="{}" sigma="{}" lambda="{}"/>\n'.format(i,r.sigmas,r.lambdas)
86
+ out = outer+inner+" </{}>\n\n".format(tag)
87
+ return out
88
+
89
+ def generate_forcefield_xml(fasta, residues, xml_name, pH, temp, ionic):
90
+ residues = adjust_terminals_HIS(residues,pH,fasta)
91
+ atomTypes_block = generate_atomtypes_block(residues)
92
+ residues_block = generate_residues_block(residues)
93
+ harmonic_bond_block = generate_harmonicBond_block(0.38,8033.0)
94
+ yukawa_block = generate_yukawa_block(residues,temp,ionic,4)
95
+ ashbaugh_block = generate_ashbaugh_block(residues,2)
96
+ xml_output="<ForceField>\n\n{}{}{}{}{}</ForceField>".format(atomTypes_block,residues_block,harmonic_bond_block,yukawa_block,ashbaugh_block)
97
+ with open(xml_name, "w") as f:
98
+ f.write(xml_output)
99
+
100
+ def create_exclusions_file(n_res):
101
+ excl = []
102
+ for i in range(n_res-1):
103
+ excl.append([i,i+1])
104
+ with open('r1_excl.pkl', 'wb') as fp:
105
+ pickle.dump(excl, fp)
106
+
107
+ if len(sys.argv) == 5:
108
+ pH = float(sys.argv[2])
109
+ #print(pH)
110
+ temp = float(sys.argv[3])
111
+ ionic = float(sys.argv[4])
112
+ else:
113
+ pH = 7.4
114
+ temp = 298
115
+ ionic = 0.2
116
+
117
+ fasta_file = open(sys.argv[1],mode='r')
118
+ fasta = fasta_file.read().replace("\n","")
119
+ fasta_file.close()
120
+
121
+ residues = pd.read_csv('residues.csv').set_index('one',drop=False)
122
+
123
+ generate_forcefield_xml(fasta, residues, "forcefield.xml", pH, temp, ionic)
124
+ create_exclusions_file(len(fasta))
data/scripts_prep/keepH.sh ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ for k in $(echo 5);do
2
+ rm seg_list.dat
3
+ rm list
4
+ for f in $(ls segment_"$k"_input_af_*sys.pdb);do
5
+ grep ATOM $f |tail -n 1|awk '{print $2}' >>list
6
+ done
7
+ atom=$(sort -n -k 1 list|uniq -c |sort -r -n -k 1 |awk '{print $2}' |head -n 1)
8
+ for i in $(ls segment_"$k"_input_af_*sys.pdb);do
9
+ atoms=$(grep ATOM $i |tail -n 1|awk '{print $2}')
10
+ echo $atoms
11
+ if [ $atoms -eq $atom ]; then
12
+ echo "$i " >> seg_list.dat
13
+ fi
14
+ done
15
+
16
+ xtcs=$(cat seg_list.dat |sed 's/_sys.pdb/.rebuilt.xtc/'g|xargs -n 100000000 )
17
+ echo $xtcs
18
+ gmx trjcat -f $xtcs -cat -o segment_"$k"_input_af_rebuilt.xtc
19
+
20
+ done
data/scripts_prep/make_plumed_analysis.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # coding: utf-8
3
+
4
+ # In[1]:
5
+
6
+
7
+ import Bio.PDB
8
+ import sys
9
+ import glob
10
+ import numpy as np
11
+ import pandas as pd
12
+ import ast
13
+
14
+
15
+ df = pd.read_csv('ordered_domains.csv')
16
+ kkeys=[]
17
+ lis=[]
18
+ # Convert the string column back to a list column
19
+ for i in df.keys():
20
+ hi = df[i].apply(ast.literal_eval)
21
+ kkeys.append(i)
22
+ lis.append(hi[0])
23
+
24
+ print(lis)
25
+ my_df = pd.DataFrame(columns = kkeys)
26
+ my_df.loc[len(my_df)] = lis
27
+ print(my_df)
28
+ ordered_domains=my_df.to_dict('list')
29
+
30
+
31
+ df = pd.read_csv('disordered_domains.csv')
32
+ kkeys=[]
33
+ lis=[]
34
+ # Convert the string column back to a list column
35
+ for i in df.keys():
36
+ hi = df[i].apply(ast.literal_eval)
37
+ kkeys.append(i)
38
+ lis.append(hi[0])
39
+
40
+ print(lis)
41
+ my_df = pd.DataFrame(columns = kkeys)
42
+ my_df.loc[len(my_df)] = lis
43
+ print(my_df)
44
+ disordered_domains=my_df.to_dict('list')
45
+
46
+
47
+ fasta_file = open(sys.argv[1],mode='r')
48
+ sequence = fasta_file.read().replace("\n","")
49
+ fasta_file.close()
50
+
51
+ print('key dis',ordered_domains)
52
+ print('key dis',disordered_domains)
53
+
54
+
55
+
56
+
57
+ f=open("plumed_analysis.dat","w")
58
+ r=open("reconstruct.dat","w")
59
+ f.write("RESTART\n")
60
+ f.write("MOLINFO MOLTYPE=protein STRUCTURE=input_af.pdb\n")
61
+ r.write("MOLINFO MOLTYPE=protein STRUCTURE=input_af.pdb\n")
62
+ f.write("WHOLEMOLECULES ENTITY0=1-"+str(len(sequence))+"\n\n")
63
+ r.write("WHOLEMOLECULES ENTITY0=1-"+str(len(sequence))+"\n\n")
64
+ r.write("DUMPATOMS STRIDE=1 FILE=conf_0_recon.gro ATOMS=1-"+str(len(sequence))+"\n")
65
+
66
+ r.close()
67
+
68
+ cvnames=[]
69
+ #CV definition
70
+ f.write("Rg: GYRATION TYPE=RADIUS ATOMS=1-"+str(len(sequence))+"\n")
71
+ cvnames.append("Rg")
72
+ indexx=1
73
+ for i in ordered_domains.keys():
74
+ f.write("RMSD"+str(indexx)+": RMSD REFERENCE=struct"+str(indexx)+".pdb TYPE=OPTIMAL\n")
75
+ cvnames.append("RMSD"+str(indexx))
76
+ indexx+=1
77
+ indexx=1
78
+
79
+
80
+ indexx=1
81
+
82
+ f.write("# PBMetaD\n")
83
+ f.write("PBMETAD ...\n")
84
+ f.write(" LABEL=pb\n")
85
+ f.write(" ARG=__FILL__\n")
86
+ f.write(" SIGMA=__FILL__\n")
87
+ f.write(" SIGMA_MIN=__FILL__\n")
88
+ f.write(" SIGMA_MAX=__FILL__\n")
89
+ f.write(" ADAPTIVE=DIFF\n")
90
+ f.write(" HEIGHT=__FILL__\n")
91
+ f.write(" PACE=20000000\n")
92
+ f.write(" BIASFACTOR=__FILL__\n")
93
+ f.write(" GRID_MIN=__FILL__\n")
94
+ f.write(" GRID_MAX=__FILL__\n")
95
+ f.write(" GRID_WSTRIDE=__FILL__\n")
96
+ f.write(" WALKERS_MPI\n")
97
+ f.write(" TEMP=__FILL__\n")
98
+ f.write("... PBMETAD\n")
99
+
100
+
101
+ cv=','.join(cvnames)
102
+ f.write("PRINT ARG=pb.bias FILE=FULLBIAS STRIDE=1\n")
103
+ f.write("PRINT FILE=COLVAR ARG=__FILL__ STRIDE=1\n")
104
+ f.write("ENDPLUMED\n")
105
+
106
+ f.close()
107
+
data/scripts_prep/make_plumed_distmat.py ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+ # coding: utf-8
3
+
4
+ # In[1]:
5
+
6
+
7
+ import Bio.PDB
8
+ import sys
9
+ import glob
10
+ import numpy as np
11
+ import pandas as pd
12
+ import ast
13
+ skip_ev=3
14
+ fasta_file = open(sys.argv[1],mode='r')
15
+ PAE_cut=float(sys.argv[2])
16
+ Pr_cut=float(sys.argv[3])
17
+ print(PAE_cut,Pr_cut)
18
+ sequence = fasta_file.read().replace("\n","")
19
+ fasta_file.close()
20
+
21
+ df = pd.read_csv('ordered_domains.csv')
22
+ kkeys=[]
23
+ lis=[]
24
+ # Convert the string column back to a list column
25
+ for i in df.keys():
26
+ hi = df[i].apply(ast.literal_eval)
27
+ kkeys.append(i)
28
+ lis.append(hi[0])
29
+
30
+ print(lis)
31
+ my_df = pd.DataFrame(columns = kkeys)
32
+ my_df.loc[len(my_df)] = lis
33
+ print(my_df)
34
+ ordered_domains=my_df.to_dict('list')
35
+
36
+
37
+ df = pd.read_csv('disordered_domains.csv')
38
+ kkeys=[]
39
+ lis=[]
40
+ # Convert the string column back to a list column
41
+ for i in df.keys():
42
+ hi = df[i].apply(ast.literal_eval)
43
+ kkeys.append(i)
44
+ lis.append(hi[0])
45
+
46
+ print(lis)
47
+ my_df = pd.DataFrame(columns = kkeys)
48
+ my_df.loc[len(my_df)] = lis
49
+ print(my_df)
50
+ disordered_domains=my_df.to_dict('list')
51
+
52
+
53
+ #"MSEYIRVTEDENDEPIEIPSEDDGTVLLSTVTAQFPGACGLRYRNPVSQCMRGVRLVEGILHAPDAGAGNLVYVVNYPKDNKRKMDETDASSAVKVKRAVQKTSDLIVLGLPAKTTEQDLKEYFSTFGEVLMVQVKKDLKTGHSKGFGFVRFTEYETQVKVMSQRHMIDGRACDCKLPNSKQSQDEPLRSRKVFVGRCTEDMTEDELREFFSQYGDVMDVFIPKPFRAFAFVTFADDQIAQSLCGEDLIIKGISVHISNAEPKHNSNRQLERSGRFGGNPGGFGNQGGFGNSRGGGAGLGNNQGSNMGGGMNFGAFSINPAMMAAAQAALQSSAGMMGMLASQQNQSGPSGNNQNQGNMQREPNQAFGSGNNSYSGSNSGAAIGAGSASNAGSGSGFNGGFGSSMDSKSSGAGM"
54
+ file=open('resid_sel_all.dat', 'w')
55
+ #for i in range(1,len(sequence)+1,skip_ev):
56
+ for i in range(1,len(sequence)+1):
57
+ # for j in range(i+skip_ev,len(sequence),skip_ev):
58
+ for j in range(i+skip_ev,len(sequence)):
59
+ print(i,j)
60
+ file.write(str(i)+" "+str(j)+"\n")
61
+ file.close()
62
+
63
+
64
+ # ### Read the AF csv contact map distances
65
+
66
+ # In[2]:
67
+
68
+
69
+ # relative path to search all text files
70
+ files = glob.glob("mean_af.csv")
71
+
72
+ #The contact map is in distance (Angstong)
73
+ print(files[0])
74
+ AF_contacts_file=files[0]
75
+ AF_resid_sel_file="resid_sel_all.dat"
76
+
77
+ AF_contacts=pd.read_csv(AF_contacts_file)
78
+ AF_contacts
79
+
80
+ exp=[]
81
+ labels=[]
82
+ lista=[]
83
+ residue_pairs=np.loadtxt(AF_resid_sel_file,usecols=(0,1))
84
+
85
+ ####### Select residues that have a prob at p_d_i<0.03 at the last value
86
+
87
+ import json
88
+ import numpy as np
89
+ import matplotlib.pyplot as plt
90
+
91
+ js = glob.glob("*json")
92
+
93
+
94
+ f=open(js[0])
95
+ data=json.load(f)
96
+ l=0
97
+ PAE_array = np.empty(shape=(len(sequence),len(sequence)))
98
+ PAE_array.fill('NaN')
99
+
100
+ for i in data["predicted_aligned_error"]:
101
+ print(i,len(i))
102
+ for j in range(0,len(i)):
103
+ #if (i[j]<5):
104
+ PAE_array[l][j]=i[j]
105
+ #print(i[j])
106
+ print('l',l)
107
+ l+=1
108
+
109
+ plt.matshow(PAE_array,cmap='jet',interpolation='none',vmin=0, vmax=40)
110
+ plt.colorbar()
111
+ plt.savefig('pae_m.png')
112
+ plt.close()
113
+
114
+ f.close()
115
+
116
+
117
+ pddf_pairs=np.load('prob.npy')
118
+ for i in range(len(residue_pairs)):
119
+
120
+ r1=int(residue_pairs[i][0])
121
+ r2=str(int(residue_pairs[i][1]))
122
+ #This is to accoun that the trajectory starts residues from 1 while the AF contact map from 0.
123
+ r1_m1=int(residue_pairs[i][0]-1)
124
+
125
+ r1_label=str(r1)
126
+ r2_label=r2
127
+ ind1=int(r1_label)-1
128
+ ind2=int(r2_label)-1
129
+
130
+ if ( (PAE_array[ind1][ind2]+PAE_array[ind2][ind1])/2.0 <PAE_cut and (PAE_array[ind1][ind2]+PAE_array[ind2][ind1])/2.0 > 0 and pddf_pairs[ind1][ind2+1][-1]<Pr_cut):
131
+ exp.append(AF_contacts.loc[r1_m1].at[r2])
132
+ lista.append([int(r1_label),int(r2_label)])
133
+
134
+ ########################
135
+ exp = np.array(exp)
136
+ labels=np.array(labels)
137
+
138
+ print(exp)
139
+ print (labels)
140
+ #len(exp)
141
+ print(len(lista))
142
+ print(lista)
143
+ with open('AF_contacts_constr.txt', 'w') as f:
144
+ for line in range(len(exp)):
145
+ f.write(str(exp[line])+"\n")
146
+
147
+
148
+
149
+ # ### AA af -> CG af
150
+
151
+ # In[ ]:
152
+
153
+ files = glob.glob("pdb_af.pdb")
154
+ print(files)
155
+ AF_pdb=files[0]
156
+ #"TDP_43_WtoA_7643e_unrelaxed_rank_001_alphafold2_ptm_model_3_seed_000.pdb"
157
+ name='input_af'
158
+
159
+ import mdtraj as md
160
+ traj=md.load(AF_pdb,top=AF_pdb)
161
+ selection_CA=traj.topology.select('name CA')
162
+
163
+ traj_CA=traj.atom_slice(selection_CA)
164
+
165
+ traj_CA.save(name+'.pdb')
166
+
167
+
168
+ topology = md.load(name+'.pdb').topology
169
+
170
+ table, bonds = topology.to_dataframe()
171
+
172
+ table['name'] = table['resName']
173
+ table['serial'] = table['resSeq']
174
+ table.loc[table.index[-1],'resName']='Z'
175
+ table.loc[table.index[0],'resName']='X'
176
+ table['name'] = table['resName']
177
+
178
+ print(table['resName'])
179
+
180
+ topologyCA = md.Topology.from_dataframe(table, bonds)
181
+ print(topologyCA)
182
+ traj = md.load_pdb(name+'.pdb',top=topologyCA)
183
+ traj.save(name+'.pdb')
184
+
185
+
186
+ # In[ ]:
187
+ ######################
188
+ p = Bio.PDB.PDBParser()
189
+ #path = '/Volumes/BROTZAKIS/PROJECTS_LOCAL/AF_MI/Rela/prep' # your file path here
190
+ structure = p.get_structure('protein', AF_pdb)
191
+ plddt = [a.get_bfactor() for a in structure.get_atoms()]
192
+ aa=[a.get_name() for a in structure.get_atoms()]
193
+ res_ca=[]
194
+ for i in range(0,len(aa)):
195
+ if (aa[i] == "CA"):
196
+ res_ca.append(plddt[i])
197
+ plddt_cut=80
198
+ res_ca2=[n > plddt_cut for n in res_ca]
199
+ print(res_ca2)
200
+
201
+
202
+
203
+ print('key dis',ordered_domains)
204
+ print('key dis',disordered_domains)
205
+ ######################
206
+ # In[ ]:
207
+
208
+
209
+
210
+ indexx=1
211
+ for i in ordered_domains.keys():
212
+ print(ordered_domains[i],str(ordered_domains[i][0][0]),str(ordered_domains[i][0][1]))
213
+ selection=traj.topology.select('resid '+str(ordered_domains[i][0][0])+' to '+str(ordered_domains[i][0][1]))
214
+ print(selection)
215
+ sel=traj.atom_slice(selection)
216
+ sel.save('struct'+str(indexx)+'.pdb')
217
+ indexx+=1
218
+
219
+
220
+ # In[7]:
221
+
222
+
223
+ f=open("plumed.dat","w")
224
+
225
+ f.write("MOLINFO MOLTYPE=protein STRUCTURE=input_af.pdb\n")
226
+ f.write("WHOLEMOLECULES ENTITY0=1-"+str(len(sequence))+"\n\n")
227
+
228
+ #Forward model
229
+ ordered_lista=[]
230
+ f.write("distance_rest_domains: CONTACTMAP ...\n")
231
+ for i in range(0,len(lista)):
232
+ for k in ordered_domains.keys():
233
+ if ( lista[i][0] in [*range(ordered_domains[k][0][0],ordered_domains[k][0][1])] and lista[i][1] in [*range(ordered_domains[k][0][0],ordered_domains[k][0][1])]):
234
+ ordered_lista.append(i)
235
+ ord_index=0
236
+ ##########Make restrained contact map######
237
+ restr_array = np.empty(shape=(len(sequence),len(sequence)))
238
+ restr_array.fill('NaN')
239
+ for i in range(0,len(lista)):
240
+ if (i not in ordered_lista):
241
+ restr_array[lista[i][0]-1][lista[i][1]-1]=25
242
+
243
+ plt.matshow(restr_array,cmap='viridis_r',interpolation='none',vmin=0, vmax=25)
244
+ plt.colorbar()
245
+ plt.savefig('restr_distmap.png')
246
+ plt.close()
247
+
248
+
249
+
250
+ ##################
251
+ for i in range(0,len(lista)):
252
+ if (i not in ordered_lista):
253
+ ord_index+=1
254
+ f.write("ATOMS"+str(ord_index)+"="+str(lista[i][0])+","+str(lista[i][1])+"\n")
255
+ f.write("SWITCH={CUSTOM FUNC=x R_0=1}\n")
256
+ f.write("...\n\n")
257
+
258
+
259
+ #AF exp distance map definition. It has to be 1 to 1
260
+ f.write("af_dist_rest: CONSTANT VALUES=")
261
+ for i in range (0,len(exp)-1):
262
+ if (i not in ordered_lista):
263
+ f.write(str(exp[i]*0.1)+",")
264
+ #f.write(str(exp[i])+",")
265
+
266
+ #This is converting to nm
267
+ if (len(exp)-1 not in ordered_lista):
268
+ f.write(str(exp[len(exp)-1]*0.1)+" NODERIV\n\n")
269
+ f.write("af_dist2: CONSTANT VALUES=0 NODERIV\n")
270
+
271
+ #CV definition
272
+ f.write("Rg: GYRATION TYPE=RADIUS ATOMS=1-"+str(len(sequence))+"\n")
273
+
274
+ indexx=1
275
+ cvnames=[]
276
+ for i in ordered_domains.keys():
277
+ f.write("RMSD"+str(indexx)+": RMSD REFERENCE=struct"+str(indexx)+".pdb TYPE=OPTIMAL\n")
278
+ cvnames.append("RMSD"+str(indexx))
279
+ indexx+=1
280
+
281
+ indexx=1
282
+ RMSDs=[]
283
+ AT=[]
284
+ KAPPAS=[]
285
+ EXP=[]
286
+ EPS=[]
287
+ OFFSET=[]
288
+ for i in ordered_domains.keys():
289
+ RMSDs.append("RMSD"+str(indexx))
290
+ KAPPAS.append("100000")
291
+ AT.append("0.02")
292
+ EXP.append("2")
293
+ EPS.append("1")
294
+ OFFSET.append("0")
295
+ indexx+=1
296
+
297
+ f.write("uwall: UPPER_WALLS ARG="+','.join(RMSDs)+" AT="+','.join(AT)+" KAPPA="+','.join(KAPPAS)+" EXP="+','.join(EXP)+" EPS="+','.join(EPS)+" OFFSET="+','.join(OFFSET)+"\n")
298
+
299
+
300
+ f.write("PRINT FILE=DISTANCE_MAP_REST ARG=distance_rest_domains.* STRIDE=200\n")
301
+ f.write("PRINT FILE=COLVAR ARG=__FILL__ STRIDE=200\n")
302
+ f.write("PBMETAD ...\n")
303
+ f.write(" LABEL=pb\n")
304
+ f.write(" ARG=__FILL__\n")
305
+ f.write(" SIGMA=__FILL__ \n")
306
+ f.write(" SIGMA_MIN=__FILL__ \n")
307
+ f.write(" SIGMA_MAX=__FILL__ \n")
308
+ f.write(" ADAPTIVE=DIFF\n")
309
+ f.write(" HEIGHT=__FILL__ \n")
310
+ f.write(" PACE=200\n")
311
+ f.write(" BIASFACTOR=__FILL__ \n")
312
+ f.write(" GRID_MIN=__FILL__ \n")
313
+ f.write(" GRID_MAX=__FILL__ \n")
314
+ f.write(" GRID_WSTRIDE=__FILL__ \n")
315
+ f.write(" WALKERS_MPI\n")
316
+ f.write(" TEMP=__FILL__ \n")
317
+ f.write("... PBMETAD\n")
318
+ f.write("METAINFERENCE ...\n")
319
+ f.write(" ARG=(distance_rest_domains.*),pb.bias REWEIGHT\n")
320
+ f.write(" PARARG=(af_dist_rest.*)\n")
321
+ f.write(" SIGMA_MEAN0=1\n")
322
+ f.write(" NOISETYPE=MGAUSS OPTSIGMAMEAN=SEM AVERAGING=200\n")
323
+ f.write(" SIGMA0=10.0 SIGMA_MIN=0.0001 SIGMA_MAX=10.0 DSIGMA=0.1\n")
324
+ f.write(" MC_STEPS=10\n")
325
+ f.write(" MC_CHUNKSIZE=23\n")
326
+ f.write(" WRITE_STRIDE=10000\n")
327
+ f.write(" TEMP=__FILL__ \n")
328
+ f.write(" LABEL=af_mi_rest_domains\n")
329
+ f.write("... METAINFERENCE\n")
330
+ f.write("FLUSH STRIDE=200\n")
331
+ f.write("PRINT FILE=ENERGY ARG=pb.bias STRIDE=200\n")
332
+ f.write("PRINT ARG=af_mi_rest_domains.* STRIDE=200 FILE=BAYES_rest_domains\n")
333
+ f.write("ENDPLUMED\n")
334
+
335
+ f.close()
336
+
data/scripts_prep/plumed_TDP-43.dat ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MOLINFO MOLTYPE=protein STRUCTURE=input_af.pdb
2
+ WHOLEMOLECULES ENTITY0=1-414
3
+
4
+ distance_rest_domains: CONTACTMAP ...
5
+ ATOMS1=1,4
6
+ ATOMS2=2,5
7
+ ATOMS3=2,20
8
+ ATOMS4=28,79
9
+ ATOMS5=31,79
10
+ ATOMS6=35,79
11
+ ATOMS7=37,79
12
+ ATOMS8=38,79
13
+ ATOMS9=39,79
14
+ ATOMS10=40,79
15
+ ATOMS11=41,79
16
+ ATOMS12=42,79
17
+ ATOMS13=74,79
18
+ ATOMS14=75,79
19
+ ATOMS15=76,79
20
+ ATOMS16=102,105
21
+ ATOMS17=102,106
22
+ ATOMS18=102,150
23
+ ATOMS19=102,151
24
+ ATOMS20=102,152
25
+ ATOMS21=102,155
26
+ ATOMS22=102,158
27
+ ATOMS23=102,159
28
+ ATOMS24=102,161
29
+ ATOMS25=103,106
30
+ ATOMS26=103,107
31
+ ATOMS27=103,108
32
+ ATOMS28=103,120
33
+ ATOMS29=103,121
34
+ ATOMS30=103,124
35
+ ATOMS31=103,130
36
+ ATOMS32=103,131
37
+ ATOMS33=103,132
38
+ ATOMS34=103,133
39
+ ATOMS35=103,134
40
+ ATOMS36=103,135
41
+ ATOMS37=103,147
42
+ ATOMS38=103,148
43
+ ATOMS39=103,149
44
+ ATOMS40=103,150
45
+ ATOMS41=103,151
46
+ ATOMS42=103,152
47
+ ATOMS43=103,153
48
+ ATOMS44=103,154
49
+ ATOMS45=103,155
50
+ ATOMS46=103,156
51
+ ATOMS47=103,157
52
+ ATOMS48=103,158
53
+ ATOMS49=103,159
54
+ ATOMS50=103,160
55
+ ATOMS51=103,161
56
+ ATOMS52=103,162
57
+ ATOMS53=103,175
58
+ ATOMS54=103,176
59
+ ATOMS55=103,177
60
+ ATOMS56=103,178
61
+ ATOMS57=104,178
62
+ ATOMS58=105,178
63
+ ATOMS59=105,179
64
+ ATOMS60=106,178
65
+ ATOMS61=106,179
66
+ ATOMS62=107,178
67
+ ATOMS63=107,179
68
+ ATOMS64=108,178
69
+ ATOMS65=108,179
70
+ ATOMS66=109,178
71
+ ATOMS67=109,179
72
+ ATOMS68=110,178
73
+ ATOMS69=111,178
74
+ ATOMS70=120,178
75
+ ATOMS71=124,178
76
+ ATOMS72=131,178
77
+ ATOMS73=132,178
78
+ ATOMS74=133,178
79
+ ATOMS75=134,178
80
+ ATOMS76=135,178
81
+ ATOMS77=136,178
82
+ ATOMS78=137,178
83
+ ATOMS79=145,178
84
+ ATOMS80=146,178
85
+ ATOMS81=147,178
86
+ ATOMS82=147,179
87
+ ATOMS83=148,178
88
+ ATOMS84=148,179
89
+ ATOMS85=149,178
90
+ ATOMS86=149,179
91
+ ATOMS87=150,178
92
+ ATOMS88=150,179
93
+ ATOMS89=151,178
94
+ ATOMS90=151,179
95
+ ATOMS91=152,178
96
+ ATOMS92=155,178
97
+ ATOMS93=158,178
98
+ ATOMS94=159,178
99
+ ATOMS95=159,179
100
+ ATOMS96=161,178
101
+ ATOMS97=161,179
102
+ ATOMS98=162,178
103
+ ATOMS99=162,179
104
+ ATOMS100=163,178
105
+ ATOMS101=164,178
106
+ ATOMS102=165,178
107
+ ATOMS103=166,178
108
+ ATOMS104=173,178
109
+ ATOMS105=174,178
110
+ ATOMS106=174,179
111
+ ATOMS107=175,178
112
+ ATOMS108=175,179
113
+ ATOMS109=176,179
114
+ ATOMS110=189,192
115
+ ATOMS111=189,233
116
+ ATOMS112=189,240
117
+ ATOMS113=190,193
118
+ ATOMS114=190,194
119
+ ATOMS115=190,195
120
+ ATOMS116=190,209
121
+ ATOMS117=190,210
122
+ ATOMS118=190,211
123
+ ATOMS119=190,212
124
+ ATOMS120=190,213
125
+ ATOMS121=190,214
126
+ ATOMS122=190,216
127
+ ATOMS123=190,217
128
+ ATOMS124=190,218
129
+ ATOMS125=190,219
130
+ ATOMS126=190,220
131
+ ATOMS127=190,230
132
+ ATOMS128=190,231
133
+ ATOMS129=190,232
134
+ ATOMS130=190,233
135
+ ATOMS131=190,234
136
+ ATOMS132=190,235
137
+ ATOMS133=190,236
138
+ ATOMS134=190,237
139
+ ATOMS135=190,238
140
+ ATOMS136=190,239
141
+ ATOMS137=190,240
142
+ ATOMS138=190,241
143
+ ATOMS139=190,242
144
+ ATOMS140=190,243
145
+ ATOMS141=190,244
146
+ ATOMS142=190,257
147
+ ATOMS143=190,258
148
+ ATOMS144=191,260
149
+ ATOMS145=192,260
150
+ ATOMS146=192,261
151
+ ATOMS147=193,260
152
+ ATOMS148=193,261
153
+ ATOMS149=193,262
154
+ ATOMS150=194,260
155
+ ATOMS151=194,261
156
+ ATOMS152=194,262
157
+ ATOMS153=195,260
158
+ ATOMS154=195,261
159
+ ATOMS155=196,260
160
+ ATOMS156=197,260
161
+ ATOMS157=211,260
162
+ ATOMS158=219,260
163
+ ATOMS159=221,260
164
+ ATOMS160=222,260
165
+ ATOMS161=223,260
166
+ ATOMS162=229,260
167
+ ATOMS163=229,261
168
+ ATOMS164=230,260
169
+ ATOMS165=230,261
170
+ ATOMS166=231,260
171
+ ATOMS167=231,261
172
+ ATOMS168=232,260
173
+ ATOMS169=232,261
174
+ ATOMS170=233,260
175
+ ATOMS171=234,260
176
+ ATOMS172=234,261
177
+ ATOMS173=236,260
178
+ ATOMS174=237,260
179
+ ATOMS175=238,260
180
+ ATOMS176=239,260
181
+ ATOMS177=240,260
182
+ ATOMS178=241,260
183
+ ATOMS179=241,261
184
+ ATOMS180=242,260
185
+ ATOMS181=243,260
186
+ ATOMS182=243,261
187
+ ATOMS183=244,260
188
+ ATOMS184=245,260
189
+ ATOMS185=246,260
190
+ ATOMS186=247,260
191
+ ATOMS187=248,260
192
+ ATOMS188=255,260
193
+ ATOMS189=256,260
194
+ ATOMS190=256,261
195
+ ATOMS191=257,260
196
+ ATOMS192=257,261
197
+ ATOMS193=258,261
198
+ ATOMS194=258,262
199
+ ATOMS195=259,262
200
+ ATOMS196=298,301
201
+ ATOMS197=300,303
202
+ ATOMS198=304,307
203
+ ATOMS199=318,321
204
+ ATOMS200=321,324
205
+ ATOMS201=321,325
206
+ ATOMS202=321,326
207
+ ATOMS203=322,325
208
+ ATOMS204=322,326
209
+ ATOMS205=323,326
210
+ ATOMS206=323,327
211
+ ATOMS207=324,327
212
+ ATOMS208=325,328
213
+ ATOMS209=326,329
214
+ ATOMS210=348,351
215
+ ATOMS211=350,353
216
+ ATOMS212=351,354
217
+ ATOMS213=352,355
218
+ ATOMS214=357,360
219
+ ATOMS215=360,363
220
+ ATOMS216=371,374
221
+ ATOMS217=376,379
222
+ ATOMS218=386,389
223
+ ATOMS219=392,395
224
+ ATOMS220=394,397
225
+ ATOMS221=396,399
226
+ ATOMS222=399,402
227
+ ATOMS223=400,403
228
+ ATOMS224=402,405
229
+ ATOMS225=402,406
230
+ ATOMS226=407,411
231
+ ATOMS227=408,411
232
+ SWITCH={CUSTOM FUNC=x R_0=1}
233
+ ...
234
+
235
+ af_dist_rest: CONSTANT VALUES=1.0032847926020623,1.0311901761218905,0.7455537494271994,1.7088723132386805,1.713635583035648,1.5095473634079102,1.1722138326615095,1.2549746362492442,0.9444370301440359,1.2123430594801905,1.5226123476400972,1.3369803665205837,1.4350552991032601,1.271596952714026,0.8981292195618154,1.084396699629724,1.2897209025919436,1.5121250515803697,1.0559752460569143,1.0836912801489234,0.707867799885571,0.9799594385549426,1.2259459158405663,1.5500808618962765,0.9052655544131994,1.3762398231774569,1.5152623694390062,1.68192987870425,1.6158358810469509,1.3273277390748264,1.1055688032880424,0.7953455133363603,1.0522321155294776,1.3843332368880512,1.5040866650640965,1.9200282409787175,1.9061048422008757,1.6269824001938105,1.2354281768202782,1.0676583984866739,0.6573523612692953,0.6149551127105952,0.7450687747448683,0.7618590366095304,0.5613296514376999,1.0004315715283156,0.8841317959129811,0.5908093221485615,0.9980626434087752,1.263882938399911,1.1281702172011137,1.1415027465671301,1.3193011650815607,1.4435925820842384,1.1070262966677549,1.31037020906806,0.8523610839620233,0.6740215603262186,1.1396584818139672,0.7467208079993726,1.1898928672075273,0.4552792670205237,0.8395836766809226,1.017876618169248,1.3974865483120085,1.0051763331517576,1.1795675404369834,1.4049736192449929,1.459107712842524,1.5650913815945389,1.59471937045455,1.5574198851361871,1.3527641544118525,1.4486837401986123,1.1706370314583183,1.4376086220145226,1.1653784492984414,1.7256552413105966,1.4055226838216186,1.427379228360951,0.9732663879171014,1.2228183863684539,0.9791120953857901,1.3816555082798005,0.7472525445744396,1.2260105818510056,1.0942220810800791,1.5762166528031232,1.1099413389340045,1.5934589028358461,1.434581000171602,1.630307266302407,1.2566113555803897,1.5485478518530726,1.81100521478802,1.3977122131735087,1.7663343697786331,1.162875016592443,1.430508084408939,1.6525550663471222,1.7831156572327018,1.785999870300293,1.6451806398108602,1.4654783833771945,1.2249537132680417,1.3939366523176433,1.0378110969439147,1.3681153113022448,0.9096965923905374,1.0000388860702516,1.2344506287947297,0.8380141992121936,0.8398237504065037,1.0381346080452205,1.4053251046687365,2.167353528179228,1.9828473469242454,1.528205112926662,1.8880876734852792,2.016520819067955,1.5591710267588497,1.5430319080129267,1.4479076098650694,1.236793963611126,1.3141041703522205,1.5537533987313508,1.5692297449335457,1.121472422592342,1.1581335106864572,0.91726502366364,0.9532682375982404,1.2505696462467313,1.1205617936328052,0.6651569686830044,1.0967526400461791,1.140981236472726,0.6660797173157335,0.8100334141403437,1.2571399945765735,1.1800085892900825,0.9563456442207099,1.2749242424964906,1.1340990519151093,0.9276029605418444,0.5047679111361504,0.9407211143523457,0.6309511506929995,1.074688763730228,1.2769522689282895,0.5026340553537011,0.7528656773269176,1.0695354964584112,0.9779949204996229,1.300148520246148,1.1204699540510774,1.5327852481976152,1.4124552657827738,1.2289950992912055,1.0769147641956807,1.4084996918216348,1.2656738823279738,1.0495817463845016,1.1779037110507489,1.095422700792551,1.3921284958720208,0.6597456347197295,1.0181769583374263,0.9364564327523113,1.3884215405210854,0.9055566122755409,1.1202643141150477,1.596531630679965,1.518569000810385,1.201885962113738,1.5418776268139482,1.3921274995431305,0.8939561096951366,1.1407407995313406,1.4240611214190722,1.4680646168068052,1.164111346192658,1.5423512058332562,0.9587342431768777,1.234714117459953,1.4588959828019143,1.6841880340129138,1.6086150078102948,1.4471713358536364,1.2795427026227117,1.444847053103149,1.002940315194428,1.3102364122867585,0.9022639036178589,1.2806951073929669,0.989768156595528,0.9441032137721775,0.9244450947269796,0.9194099459797145,0.9374097302556038,0.7403792202472688,0.8557088484987617,1.1484702169895173,0.7273479776456953,0.8502402873709798,0.6981262018904091,0.8579837949946523,0.7507739521563054,0.7508660649880767,0.7793322708457708,0.9225482998415828,0.9773600473999976,0.9583356784656645,0.9616499662399293,0.9474486894905567,1.0015693807974457,0.9874830450862646,0.9377102639526129,0.9753739142790437,0.9764441156759859,0.973571441695094,0.950638056918979,0.9416109262034296,0.9724794756621122,0.966675561480224,1.2231912130489944,1.235738294199109,0.9654571769759062 NODERIV
236
+
237
+ af_dist2: CONSTANT VALUES=0 NODERIV
238
+ Rg: GYRATION TYPE=RADIUS ATOMS=1-414
239
+ RMSD1: RMSD REFERENCE=struct1.pdb TYPE=OPTIMAL
240
+ RMSD2: RMSD REFERENCE=struct2.pdb TYPE=OPTIMAL
241
+ RMSD3: RMSD REFERENCE=struct3.pdb TYPE=OPTIMAL
242
+
243
+ uwall: UPPER_WALLS ARG=RMSD1,RMSD2,RMSD3 AT=0.02,0.02,0.02 KAPPA=100000,100000,100000 EXP=2,2,2 EPS=1,1,1 OFFSET=0,0,0
244
+ Rg1: GYRATION TYPE=RADIUS ATOMS=1-2
245
+ Rg2: GYRATION TYPE=RADIUS ATOMS=80-103
246
+ Rg3: GYRATION TYPE=RADIUS ATOMS=179-190
247
+ Rg4: GYRATION TYPE=RADIUS ATOMS=261-414
248
+ PRINT FILE=COLVAR ARG=Rg,RMSD1,RMSD2,RMSD3,Rg1,Rg2,Rg3,Rg4 STRIDE=200
249
+ PRINT FILE=DISTANCE_MAP_REST ARG=distance_rest_domains.* STRIDE=200
250
+
251
+ t1: CENTER ATOMS=3-40
252
+ t2: CENTER ATOMS=41-79
253
+ t3: CENTER ATOMS=104-140
254
+ t4: CENTER ATOMS=141-178
255
+
256
+ torsion1: TORSION ATOMS=t1,t2,t3,t4
257
+
258
+ tt1: CENTER ATOMS=104-140
259
+ tt2: CENTER ATOMS=141-178
260
+ tt3: CENTER ATOMS=191-225
261
+ tt4: CENTER ATOMS=226-260
262
+
263
+ torsion2: TORSION ATOMS=tt1,tt2,tt3,tt4
264
+
265
+
266
+ # PBMetaD
267
+ PBMETAD ...
268
+ LABEL=pb
269
+ ARG=torsion1,torsion2
270
+ SIGMA=1000
271
+ SIGMA_MIN=0.05,0.05
272
+ SIGMA_MAX=0.1,0.1
273
+ ADAPTIVE=DIFF
274
+ HEIGHT=0.5
275
+ PACE=200
276
+ BIASFACTOR=35
277
+ GRID_MIN=-pi,-pi
278
+ GRID_MAX=pi,pi
279
+ GRID_WSTRIDE=5000
280
+ WALKERS_MPI
281
+ TEMP=298
282
+ ... PBMETAD
283
+
284
+ METAINFERENCE ...
285
+ ARG=(distance_rest_domains.*),pb.bias REWEIGHT
286
+ PARARG=(af_dist_rest.*)
287
+ SIGMA_MEAN0=1
288
+ NOISETYPE=MGAUSS OPTSIGMAMEAN=SEM AVERAGING=200
289
+ SIGMA0=10.0 SIGMA_MIN=0.0001 SIGMA_MAX=10.0 DSIGMA=0.1
290
+ MC_STEPS=10
291
+ MC_CHUNKSIZE=20
292
+ WRITE_STRIDE=10000
293
+ TEMP=298
294
+ LABEL=af_mi_rest_domains
295
+ ... METAINFERENCE
296
+
297
+ FLUSH STRIDE=200
298
+ PRINT FILE=ENERGY ARG=pb.bias STRIDE=200
299
+ PRINT ARG=af_mi_rest_domains.* STRIDE=200 FILE=BAYES_rest_domains
300
+ ENDPLUMED
data/scripts_prep/plumed_analysis_TDP-43.dat ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ RESTART
2
+ MOLINFO MOLTYPE=protein STRUCTURE=input_af.pdb
3
+ WHOLEMOLECULES ENTITY0=1-414
4
+
5
+ Rg: GYRATION TYPE=RADIUS ATOMS=1-414
6
+ Rg1: GYRATION TYPE=RADIUS ATOMS=1-2
7
+ Rg2: GYRATION TYPE=RADIUS ATOMS=80-103
8
+ Rg3: GYRATION TYPE=RADIUS ATOMS=179-190
9
+ Rg4: GYRATION TYPE=RADIUS ATOMS=261-414
10
+ RMSD1: RMSD REFERENCE=struct1.pdb TYPE=OPTIMAL
11
+ RMSD2: RMSD REFERENCE=struct2.pdb TYPE=OPTIMAL
12
+ RMSD3: RMSD REFERENCE=struct3.pdb TYPE=OPTIMAL
13
+
14
+ t1: CENTER ATOMS=3-40
15
+ t2: CENTER ATOMS=41-79
16
+ t3: CENTER ATOMS=104-140
17
+ t4: CENTER ATOMS=141-178
18
+
19
+ torsion1: TORSION ATOMS=t1,t2,t3,t4
20
+
21
+ tt1: CENTER ATOMS=104-140
22
+ tt2: CENTER ATOMS=141-178
23
+ tt3: CENTER ATOMS=191-225
24
+ tt4: CENTER ATOMS=226-260
25
+
26
+ torsion2: TORSION ATOMS=tt1,tt2,tt3,tt4
27
+
28
+
29
+ # PBMetaD
30
+ PBMETAD ...
31
+ LABEL=pb
32
+ ARG=torsion1,torsion2
33
+ SIGMA=1000
34
+ SIGMA_MIN=0.05,0.05
35
+ SIGMA_MAX=0.1,0.1
36
+ ADAPTIVE=DIFF
37
+ HEIGHT=0.5
38
+ PACE=200
39
+ BIASFACTOR=35
40
+ GRID_MIN=-pi,-pi
41
+ GRID_MAX=pi,pi
42
+ GRID_WSTRIDE=20000000
43
+ WALKERS_MPI
44
+ TEMP=298
45
+ ... PBMETAD
46
+
47
+
48
+ PRINT ARG=pb.bias FILE=FULLBIAS STRIDE=1
49
+ PRINT FILE=COLVAR ARG=Rg,Rg1,Rg2,Rg3,Rg4,torsion1,torsion2,RMSD1,RMSD2,RMSD3 STRIDE=1
50
+ ENDPLUMED
51
+
data/scripts_prep/prepare_run.ipynb ADDED
The diff for this file is too large to render. See raw diff
 
data/scripts_prep/pulchra.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from mpi4py import MPI
2
+ import sys
3
+ import os
4
+ from glob import glob
5
+ import numpy as np
6
+
7
+ ntot=60000
8
+
9
+ k_file = open('k.dat',mode='r')
10
+ k = k_file.read().replace("\n","")
11
+ k_file.close()
12
+ k=int(k)
13
+ pdb_files = glob('./segment_'+str(k)+'_input_af_*.pdb')
14
+ print(pdb_files)
15
+ split=int(np.ceil(len(pdb_files)/5))
16
+ print ('SPLIT='+str(split))
17
+ start=0
18
+ end=int(np.ceil(len(pdb_files)))
19
+ print('end',end)
20
+ for j in range(start,len(pdb_files),2):
21
+ print('In j loop', j,'lenpdb',len(pdb_files))
22
+ name='segment_'+str(k)+'_input_af_'+str(j)
23
+ os.system("pulchra -v {name}.pdb".format(name=name))
24
+ os.system('echo "6 \n 7" | gmx pdb2gmx -f {name}.rebuilt.pdb -o {name}_sys.pdb -p topol_{name}.top -i {name}.itp'.format(name=name))
25
+ os.system("rm topol_{name}.top {name}.itp em_{j}.trr em_{j}.tpr em_{j}.log em_{j}.edr conf_box_{j}.gro ".format(j=j,name=name))
26
+ os.system('echo "0"|gmx trjconv -f {name}_sys.pdb -s {name}_sys.pdb -o {name}.rebuilt.xtc'.format(j=j,name=name))
27
+
data/scripts_prep/pulchra.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ for i in $(echo 5);do
3
+ echo $i > k.dat
4
+ python pulchra.py
5
+ done
data/scripts_prep/resample.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import itertools
2
+ import os
3
+ from pathlib import Path
4
+
5
+ import numpy as np
6
+ from matplotlib import rc
7
+ import matplotlib.pyplot as plt
8
+ #from matplotlib.colors import LinearSegmentedColormap
9
+ #from mpl_toolkits.axes_grid1 import make_axes_locatable
10
+ import mdtraj as md
11
+ #import seaborn as sns
12
+ #from scipy.stats import gaussian_kde
13
+
14
+ #rc("font", **{"family": "sans-serif",
15
+ #colors = sns.husl_palette()
16
+
17
+ #get_ipython().run_line_magic('matplotlib', 'inline')
18
+ #get_ipython().run_line_magic('config', "InlineBackend.figure_format = 'retina'")
19
+
20
+
21
+ # In[5]:
22
+
23
+
24
+ #from typing import Union, List, Callable
25
+
26
+
27
+ KBT = 2.494339 # kJ/mol, 300K
28
+ n_replica = 1
29
+ top_file = "input_af.pdb"
30
+ biased_cvs = {}
31
+ time=np.loadtxt("FULLBIAS")[:, 0]
32
+ bias=np.loadtxt("FULLBIAS")[:, 1]
33
+ bias10=bias
34
+ print(len(bias10))
35
+ weights = np.exp(bias10/ KBT)
36
+ weights /= weights.sum()
37
+ nframes = {weights.shape[0]}
38
+
39
+
40
+ # ## Clustering Full Protein
41
+ # Gromos clustering with a trajectory subsample, based on CA RMSD. We first evaluate different cutoffs:
42
+ # gmx trjconv -f cat_traj_recon.gro -s structure.pdb -o cat_traj_recon_noh_skip10_noh.gro -skip 10
43
+ #
44
+
45
+ # In[15]:
46
+
47
+
48
+ #traj = md.load_xtc("conf_0_recon.xtc",top='output.pdb')
49
+ traj = md.load("conf_0_recon.gro",stride=1)
50
+
51
+
52
+ # In[25]:
53
+
54
+
55
+ N = 1000
56
+ n_rounds = 5
57
+
58
+ folder = Path(f"./")
59
+ n_frames = traj.n_frames
60
+ inds = np.arange(n_frames)
61
+
62
+ for i in range(n_rounds):
63
+ (folder / f"r{i}").mkdir(exist_ok=True)
64
+ inds_sample = np.random.choice(inds, size=N, replace=False,
65
+ p=weights / weights.sum())
66
+ traj[inds_sample].save_xtc((folder / f"r{i}" / f"conf-protein.xtc").as_posix())
data/scripts_prep/residues.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ three,one,MW,lambdas,sigmas,q,CALVADOS1,CALVADOS2
2
+ ARG,R,156.19,0.7307624767517166,0.6559999999999999,1,0.7249915947715212,0.7307624767517166
3
+ ASP,D,115.09,0.0416040480605567,0.5579999999999999,-1,0.0291821237763497,0.0416040480605567
4
+ ASN,N,114.1,0.4255859009787713,0.568,0,0.4383272997027284,0.4255859009787713
5
+ GLU,E,129.11,0.0006935460962935,0.5920000000000001,-1,0.0061002816086497,0.0006935460962935
6
+ LYS,K,128.17,0.1790211738990582,0.636,1,0.0586171731586979,0.1790211738990582
7
+ HIS,H,137.14,0.4663667290557992,0.608,0,0.4651948082346978,0.4663667290557992
8
+ GLN,Q,128.13,0.3934318551056041,0.602,0,0.3268188050525212,0.3934318551056041
9
+ SER,S,87.08,0.4625416811611541,0.518,0,0.4648570130065605,0.4625416811611541
10
+ CYS,C,103.14,0.5615435099141777,0.5479999999999999,0,0.610362354303913,0.5615435099141777
11
+ GLY,G,57.05,0.7058843733666401,0.45,0,0.7012713677972457,0.7058843733666401
12
+ THR,T,101.11,0.3713162976273964,0.562,0,0.5379777613307019,0.3713162976273964
13
+ ALA,A,71.07,0.2743297969040348,0.504,0,0.0011162643859539,0.2743297969040348
14
+ MET,M,131.2,0.5308481134337497,0.618,0,0.7458993420826714,0.5308481134337497
15
+ TYR,Y,163.18,0.9774611449343455,0.6459999999999999,0,0.9950108229594324,0.9774611449343455
16
+ VAL,V,99.13,0.2083769608174481,0.5860000000000001,0,0.4185006852559869,0.2083769608174481
17
+ TRP,W,186.22,0.9893764740371644,0.6779999999999999,0,0.9844235478393932,0.9893764740371644
18
+ LEU,L,113.16,0.6440005007782226,0.618,0,0.5563020305733198,0.6440005007782226
19
+ ILE,I,113.16,0.5423623610671892,0.618,0,0.6075268330845265,0.5423623610671892
20
+ PRO,P,97.12,0.3593126576364644,0.5559999999999999,0,0.3729641853599348,0.3593126576364644
21
+ PHE,F,147.18,0.8672358982062975,0.636,0,0.9216959832175944,0.8672358982062975
data/scripts_prep/script.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ nrep=$1
3
+ rm COLVAR* HILLS* FULLBIAS
4
+ cp ../HILLS.* .
5
+ cp ../GRID* .
6
+ cp ../BAYES* .
7
+
8
+ rm segment*pdb segment*xtc
9
+ #Convert dcds to xtc
10
+ python dcd2xtc.py $nrep
11
+ for ((c=0;c<$nrep;c++))
12
+ do
13
+
14
+ for part in $(ls output_"$c".xtc)
15
+ do
16
+ echo $part
17
+ gmx trjconv -f $part -s ../input_af.pdb -o nosolv_$c.xtc <<EOF
18
+ 0
19
+ EOF
20
+ done
21
+ done
22
+
23
+ #concatenate xtcs to a single xtc
24
+ gmx trjcat -f nosolv_*.xtc -cat -o cat_trjcat.xtc -settime
25
+
26
+ plumed driver --plumed plumed_analysis.dat --mf_xtc cat_trjcat.xtc
27
+ plumed --no-mpi driver --plumed reconstruct.dat --mf_xtc cat_trjcat.xtc --timestep 1
28
+
29
+ #Sample the structural ensemble by weights.
30
+ python resample.py
31
+
32
+
33
+ #Backmap from coarse-grained to atomistic
34
+ python backmap.py $nrep
35
+ sh pulchra.sh
36
+ sh keepH.sh
data/scripts_prep/simulate.py ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #python simulate.py 7.4 298
2
+ from openmm.app import *
3
+ from openmm import *
4
+ from openmm.unit import *
5
+ from sys import stdout
6
+ import pandas as pd
7
+ import numpy as np
8
+ import pickle
9
+ import mdtraj as md
10
+ from mpi4py import MPI
11
+ from openmmplumed import PlumedForce
12
+ import time
13
+ comm1 = MPI.COMM_SELF
14
+ comm2 = MPI.COMM_WORLD
15
+
16
+ from sys import stdout, argv
17
+ platform = Platform.getPlatformByName('CPU')
18
+ #properties={}
19
+ #properties["Threads"]="1"
20
+
21
+ residues = pd.read_csv("residues.csv").set_index('one')
22
+ fasta_file = open('sequence.dat',mode='r')
23
+ fasta = fasta_file.read().replace("\n","")
24
+ fasta_file.close()
25
+
26
+ pH = float(argv[1])
27
+ temp = float(argv[2])
28
+ #fasta = """
29
+ #MSEYIRVTEDENDEPIEIPSEDDGTVLLSTVTAQFPGACGLRYRNPVSQCMRGVRLVEGILHAPDAGAGNLVYVVNYPKDNKRKMDETDASSAVKVKRAVQKTSDLIVLGLPAKTTEQDLKEYFSTFGEVLMVQVKKDLKTGHSKGFGFVRFTEYETQVKVMSQRHMIDGRACDCKLPNSKQSQDEPLRSRKVFVGRCTEDMTEDELREFFSQYGDVMDVFIPKPFRAFAFVTFADDQIAQSLCGEDLIIKGISVHISNAEPKHNSNRQLERSGRFGGNPGGFGNQGGFGNSRGGGAGLGNNQGSNMGGGMNFGAFSINPAMMAAAQAALQSSAGMMGMLASQQNQSGPSGNNQNQGNMQREPNQAFGSGNNSYSGSNSGAAIGAGSASNAGSGSGFNGGFGSSMDSKSSGAGM""".replace('\n', '')
30
+
31
+ def adjust_terminals_HIS(r,pH,fasta):
32
+ r.loc['H','q'] = 1. / ( 1 + 10**(pH-6) )
33
+ r.loc['X'] = r.loc[fasta[0]]
34
+ r.loc['X','q'] = r.loc[fasta[0],'q'] + 1.
35
+ r.loc['X','MW'] = r.loc[fasta[0],'MW'] + 2.
36
+ r.loc['X','three'] = 'X'
37
+
38
+ r.loc['Z'] = r.loc[fasta[-1]]
39
+ r.loc['Z','q'] = r.loc[fasta[-1],'q'] - 1.
40
+ r.loc['Z','MW'] = r.loc[fasta[-1],'MW'] + 16.
41
+ r.loc['Z','three'] = 'Z'
42
+
43
+ return r.set_index('three')
44
+
45
+ residues = adjust_terminals_HIS(residues,pH,fasta)
46
+
47
+
48
+ atomic_number = 117
49
+ for i,r in residues.iterrows():
50
+ name = 'carbon-{}'.format(i)
51
+ symbol = 'C-{}'.format(i)
52
+ new_element = Element(atomic_number,name,symbol,r.MW*dalton)
53
+ atomic_number += 1
54
+
55
+ pdb = PDBFile('input_af.pdb')
56
+
57
+ top = pdb.topology
58
+
59
+ for chain in top._chains:
60
+ for residue in chain._residues:
61
+ for atom in residue._atoms:
62
+ atom.element = Element._elements_by_symbol['C-{}'.format(residue.name)]
63
+
64
+ atoms = list(top.atoms())
65
+
66
+ for i in range(len(fasta)-1):
67
+ top.addBond(atoms[i],atoms[i+1])
68
+
69
+ forcefield = ForceField("forcefield.xml")
70
+
71
+ system = forcefield.createSystem(top,nonbondedMethod=CutoffNonPeriodic)
72
+
73
+ system.removeForce(3)
74
+
75
+
76
+ with open('r1_excl.pkl', 'rb') as fp:
77
+ r1_exclusions = pickle.load(fp)
78
+
79
+ forces = system.getForces()
80
+
81
+ forces[1].setCutoffDistance(4*nanometers)
82
+ for bond in r1_exclusions:
83
+ forces[1].addExclusion(bond[0],bond[1])
84
+
85
+ forces[2].setForceGroup(1)
86
+ forces[2].setCutoffDistance(2*nanometers)
87
+ for bond in r1_exclusions:
88
+ forces[2].addExclusion(bond[0],bond[1])
89
+
90
+ #open text file in read mode
91
+ plumed_file = open("plumed.dat", "r")
92
+ script= plumed_file.read()
93
+ plumed_file.close()
94
+ script = "".join(script)
95
+ print(script)
96
+
97
+ system.addForce(PlumedForce(script, comm1, comm2))
98
+
99
+ N_res = len(fasta)
100
+ N_save = 3000 if N_res < 100 else int(np.ceil(3e-4*N_res**2)*1000)
101
+ N_steps = 1100*N_save
102
+
103
+
104
+ DCD_output_file = "output_{}.dcd".format(comm2.Get_rank())
105
+ #DCD_output_file = "output.dcd".format(comm2.Get_rank())
106
+ stats_output_file = "stats_{}.csv".format(comm2.Get_rank())
107
+ #stats_output_file = "stats.csv".format(comm2.Get_rank())
108
+ integrator = LangevinIntegrator(temp*kelvin, 0.01/picosecond, 0.005*picoseconds)
109
+
110
+
111
+ #simulation = Simulation(top, system, integrator,platform,properties)
112
+ simulation = Simulation(top, system, integrator,platform)
113
+
114
+ simulation.context.setPositions(pdb.positions)
115
+
116
+ #simulation.minimizeEnergy()
117
+
118
+ simulation.loadCheckpoint("checkpoint")
119
+
120
+ #simulation.reporters.append(DCDReporter(DCD_output_file, N_save))
121
+ simulation.reporters.append(DCDReporter(DCD_output_file, 3000))
122
+
123
+ simulation.reporters.append(StateDataReporter(stats_output_file, N_save, step=True, potentialEnergy=True, temperature=True))
124
+ time1=time.time()
125
+ #simulation.step(N_steps)
126
+ simulation.step(3000000)
127
+ time2=time.time()
128
+ print(time2-time1)
129
+