Repository 'bio3d_pca'
hg clone https://toolshed.g2.bx.psu.edu/repos/chemteam/bio3d_pca

Changeset 3:ddef4de91df6 (2019-03-27)
Previous changeset 2:5892927664be (2019-02-26) Next changeset 4:994c509873db (2019-04-03)
Commit message:
planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tree/master/tools/bio3d commit 125359d8080653f896089c28cce5308450336f93
modified:
macros.xml
added:
dccm.R
test-data/DCCM_raw_data.csv
test-data/dccm_plot.png
b
diff -r 5892927664be -r ddef4de91df6 dccm.R
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dccm.R Wed Mar 27 15:15:54 2019 -0400
[
@@ -0,0 +1,46 @@
+#!/usr/bin/env Rscript
+
+options(stringAsfactors = FALSE)
+args <- commandArgs(trailingOnly = TRUE)
+
+library(bio3d)
+require(lattice)
+
+dcdfile <- args[1]
+pdbfile <- args[2]
+
+dcd <- read.dcd(dcdfile)
+pdb <- read.pdb(pdbfile)
+
+selection <- args[3]
+domain <- args[4]
+
+output <- args[5]
+dccm_plot <- args[6]
+
+dcd <- read.dcd(dcdfile)
+pdb <- read.pdb(pdbfile)
+
+if (selection == "string") {
+    inds <- atom.select(pdb, string = domain)
+}
+if (selection == "elety") {
+    inds <- atom.select(pdb, elety = domain)
+}
+if (selection == "resid") {
+    inds <- atom.select(pdb, resid = domain)
+}
+if (selection == "segid") {
+    inds <- atom.select(pdb, segid = domain)
+}
+
+xyz <- fit.xyz(fixed=pdb$xyz, mobile=dcd, fixed.inds=inds$xyz, mobile.inds=inds$xyz)
+cij<-dccm(xyz[,inds$xyz])
+
+write.table(cij, file = output, row.names = TRUE, col.names = FALSE, quote =FALSE, sep="\t")
+
+png(dccm_plot)
+plot(cij)
+dev.off()
+
+
b
diff -r 5892927664be -r ddef4de91df6 macros.xml
--- a/macros.xml Tue Feb 26 08:27:55 2019 -0500
+++ b/macros.xml Wed Mar 27 15:15:54 2019 -0400
b
@@ -3,8 +3,7 @@
     <xml name="requirements">
         <requirements>
             <requirement type="package" version="2.3_3">r-bio3d</requirement>
-            <requirement type="package" version="1.16">r-ncdf4</requirement>
-            <requirement type="package" version="0.20_35">r-lattice</requirement>
+            <requirement type="package" version="0.20_35">r-lattice </requirement>
             <yield/>
         </requirements>
     </xml>
@@ -20,6 +19,7 @@
     </xml>
     <xml name="citations">
         <citations>
+            <citation type="doi">10.1093/bioinformatics/btz107</citation>
             <citation type="doi">10.1093/bioinformatics/btl461</citation>
         </citations>
     </xml>
b
diff -r 5892927664be -r ddef4de91df6 test-data/DCCM_raw_data.csv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/DCCM_raw_data.csv Wed Mar 27 15:15:54 2019 -0400
b
b'@@ -0,0 +1,433 @@\n+1\t1\t0.691065292348728\t0.589348686585723\t0.236045354930275\t0.508465893991715\t0.638148301685827\t-0.118612984239525\t0.0743985680207872\t0.319311728558448\t0.36290271732767\t-0.0175725637994063\t0.0716229297232773\t0.207027241996561\t0.36134759549461\t0.444456724391512\t0.604147791091188\t0.440858723973518\t0.635717435448336\t0.520437233119168\t0.57269885260177\t0.457434611495693\t0.31168371454048\t0.325953235325711\t-0.0278297773976536\t0.178318301748021\t0.645902445562543\t0.585539281854598\t0.617377828843604\t0.483191062006721\t0.367408322677559\t0.630906964953705\t0.559965299474959\t0.310454319514794\t0.561967921854519\t0.560684792670571\t-0.0956059490179072\t-0.315657375845221\t-0.362555771975295\t-0.554789074284161\t-0.368807463171367\t-0.420003869532897\t-0.234088460250866\t-0.273634264056951\t-0.341778492139641\t-0.121722349074337\t0.035225555601033\t-0.468173152442153\t-0.274333642687356\t-0.29885227570727\t-0.26299065762425\t0.0321153734914605\t0.0468561508716261\t-0.129638021283158\t0.00172387958140377\t0.351615170654174\t0.27015267126915\t0.418370735864701\t0.613338092447419\t0.314288674779987\t0.354374994756798\t0.571003695336637\t0.595918265542049\t0.45352500292653\t0.489447108851714\t0.348783695162751\t0.29784882067793\t0.434742117111045\t0.525100338816466\t0.194015211589615\t0.410642290165701\t0.535511296493427\t0.455724112683755\t0.351986582513225\t0.243161775206923\t0.211602167140908\t-0.080110678316488\t-0.295988039247873\t-0.494644339859026\t-0.252580708731541\t-0.116656924675663\t0.0855121384523617\t-0.32513802078951\t0.0650826018523889\t-0.374651753933081\t-0.152379195464396\t-0.147212934424996\t0.489485714911076\t0.263573725106828\t0.357921093280358\t-0.00269226407194326\t-0.0613048555803416\t0.0852329020085704\t-0.0682174552469013\t-0.267787961327975\t0.283150668098544\t0.122415926985608\t0.363291442626966\t0.233705978336839\t0.284021829183353\t0.373786356066346\t0.454757678538935\t0.184486132542861\t-0.163144696978154\t-0.511567115094746\t-0.451470377721944\t-0.138390628912033\t0.306306705587117\t0.283531524464187\t0.222642002144811\t0.167534826605747\t0.216478518611475\t0.109791631067291\t-0.0829226559513725\t-0.0188140900739142\t0.039976618037574\t0.0856721382160642\t0.181578853487543\t0.369341179262228\t-0.0880270301876756\t0.0267895289264931\t-0.0325532125601135\t0.424653174464703\t0.747470679190232\t0.723184339916162\t0.683342577899801\t0.499263889133236\t0.339417980503334\t0.214838694014568\t0.480947171530347\t0.147821159178746\t-0.216732984042626\t-0.074018853264019\t0.0194997613320622\t0.19541149904133\t0.00808410251569992\t-0.230475682099325\t-0.0486184636650717\t-0.006357925273018\t0.109990807591709\t0.190040283392862\t0.559208301149291\t-0.0857251616516372\t0.0150413525230425\t-0.0918162775801517\t-0.0242909229955529\t-0.0761665956222323\t0.110942064118848\t0.0698639012926365\t0.155521284998874\t0.308464285993867\t0.419075003843005\t0.300031961565361\t0.129302034948053\t0.145754687838091\t-0.0516041775884185\t-0.138783335046642\t0.137655072834913\t0.371965438257242\t0.769498233237739\t0.72505786765245\t0.691928841326943\t0.548123851001295\t0.469651386512279\t-0.00762445621549042\t0.0786161283283978\t0.0685386316856405\t0.240028163694387\t0.415046859376107\t-0.136195724111188\t-0.185868324430486\t-0.20694800807086\t-0.155297551241786\t-0.169629740241724\t0.0491993370574038\t-0.0299185434165692\t0.195565947405398\t0.1190218040038\t0.128024656292002\t-0.00940506129796716\t-0.239515966406603\t0.114663660033419\t-0.0455893322841668\t-0.263239716305763\t-0.0170588264330359\t0.134413695811918\t0.191654221666237\t0.044987599815751\t0.299731591181335\t0.572356412599856\t0.535179427348579\t0.614067042260611\t0.673436921520445\t0.506367257671703\t0.397116616254075\t0.372777028385424\t0.0741694012882679\t-0.0148415993122276\t-0.093113817051854\t-0.0368547632674481\t-0.0691921650735635\t0.426558661084507\t0.569697235398789\t0.464041336012971\t0.191335633539699\t-0.0784210662570763\t-0.147040364304879\t-0.106954353973779\t-0.323900776207685\t0.423668431533684\t0.545570142223388\t0.0225371379880002\t-0.0387764497303981\t-0.0228254131003067\t-0.256457800030219\t-0.229332585993936\t-0.43575363088'..b'.0219305879964244\t-0.044459794994965\t0.110470492441532\t0.0354893259118264\t-0.0542623479568523\t-0.118354789400273\t-0.0442732662575273\t0.228823411266238\t0.251019930723728\t0.430082225144953\t0.389687607395083\t0.176478247363982\t0.313753951398341\t0.293359984533151\t0.119467330767131\t0.180464121977937\t0.0259116753672251\t0.0338332492911152\t-0.0648565456843235\t0.0544858735562418\t-0.0327532023903127\t-0.117331890944756\t-0.0363544245289753\t0.00508195076573611\t0.0974364053631652\t-0.212875043145728\t-0.145863497692205\t0.149312936819096\t0.264709664686742\t-0.0830243392595307\t-0.0485142275921077\t-0.0697405739576264\t-0.00336413167279386\t-0.0730916747802761\t-0.0352551348834548\t0.341693405563648\t0.206624043077802\t0.194420945896377\t0.150154039516723\t0.082433341283851\t0.0673084287946265\t-0.00482408643931169\t0.224051071542902\t0.0753083468696069\t-0.264201993094182\t-0.0899445037962015\t0.1316638960865\t0.297460881047364\t0.138692162331095\t-0.381175370420839\t-0.27629054232835\t-0.05843033611389\t-0.028915301594866\t-0.159444119726506\t-0.0180410312859099\t0.150965982344692\t-0.0990010031754618\t-0.14730319556571\t-0.216243228824745\t-0.30586047344599\t-0.328164848919477\t-0.265284913698303\t-0.130877293773591\t0.00106847418761192\t-0.202001193460272\t-0.0495198984860995\t-0.0781357176649335\t-0.145218950568958\t0.0269660142746029\t-0.220897607782368\t0.0145120859167453\t0.278048150506775\t0.342044396816217\t0.247086359956054\t0.2255983576606\t0.162106896014182\t0.14092522333288\t0.0125612665413251\t-0.0176723172651776\t0.020927713917282\t0.150639400187636\t-0.0181289686626771\t-0.276575210237434\t-0.370410645226669\t-0.166741254824803\t-0.0898668956799023\t-0.189461468684442\t-0.269064007786349\t-0.356677324397091\t-0.3347839032399\t-0.376971557112726\t-0.575146032447792\t-0.495818514702908\t-0.225525033097602\t0.151102559826335\t0.275871797690724\t0.248737166531935\t0.0998839646713505\t-0.305462887493429\t-0.451328519390025\t-0.133741479341545\t-0.0270407422949503\t-0.13334081788784\t-0.206384886540441\t-0.104203009026444\t0.0776103476154766\t-0.0553130119109148\t-0.105243924931288\t-0.165075675544882\t-0.0729590077313824\t-0.0262955406696555\t0.0402592634562257\t-0.00988772191091494\t-0.0247855669267561\t-0.00264170376697942\t0.0536038087465276\t0.100250989937825\t0.129552120841272\t-0.0731346232999061\t-0.0996332688429144\t-0.165689627398054\t0.12350335881085\t0.261071951499233\t-0.00536362036666797\t0.112517778393745\t0.128128591652403\t0.17174344968273\t0.326594803679246\t0.27883844589134\t0.172452752023513\t0.113346845863549\t0.124586282274444\t0.213370477138327\t0.261190611927676\t0.07884895455503\t-0.0406527583823209\t-0.0115349572947063\t0.136681299656729\t-0.156480587733191\t-0.123271937819696\t-0.219827705159154\t0.0629081080037101\t0.166942646690164\t0.115695069223654\t0.147561177588498\t0.0199666726411509\t-0.0119661484276648\t0.0616486292987692\t-0.42452142092258\t-0.269250574734784\t-0.0970487874258371\t-0.111139587958304\t-0.100367322843042\t-0.180834003899134\t-0.166990624217984\t-0.0116980668877188\t0.214774100338466\t0.16981327400393\t0.238629570138357\t0.013078378549409\t0.197053779282123\t0.0556929552565396\t0.0851756154314191\t0.0534139837016385\t0.102355884579083\t0.110954209688842\t-0.142316290167739\t-0.1146975337457\t-0.0705503167479372\t0.0389325805145638\t0.18483345990644\t0.137655312195244\t0.0826801838132703\t0.105521199753775\t-0.0818920944590125\t0.117786278095302\t0.129318940917125\t0.0541433443944776\t-0.394408079515429\t-0.249819863454612\t-0.359231975632391\t-0.23865293023525\t0.00872471313582372\t-0.069180399693684\t-0.0676946561609436\t-0.0848972586693904\t-0.345659025730265\t-0.502432683033731\t-0.331392508520783\t-0.380310364382296\t-0.554030954800094\t-0.536000369127417\t-0.529265314494851\t-0.368724195235894\t-0.186473169863007\t-0.0391954196027626\t0.0131009577086288\t0.00120361394560121\t0.241995744342471\t0.269612714222892\t-0.0382021132805468\t0.179699702491611\t0.336039443453956\t0.213397197799908\t0.232219400877832\t0.216534408200705\t-0.0237556320779905\t0.326886531704668\t0.578257978668815\t0.421463738849925\t0.71002862799338\t0.474843586584823\t0.744357653353684\t1\n'
b
diff -r 5892927664be -r ddef4de91df6 test-data/dccm_plot.png
b
Binary file test-data/dccm_plot.png has changed