Repository 'vapper'
hg clone https://toolshed.g2.bx.psu.edu/repos/johnheap/vapper

Changeset 11:c4463e84a7ea (2019-06-03)
Previous changeset 10:6450a72e8f6b (2019-06-03) Next changeset 12:491102c84b20 (2019-06-03)
Commit message:
Uploaded
modified:
Vap.py
b
diff -r 6450a72e8f6b -r c4463e84a7ea Vap.py
--- a/Vap.py Mon Jun 03 14:11:12 2019 -0400
+++ b/Vap.py Mon Jun 03 14:12:06 2019 -0400
[
b'@@ -1,91 +1,1165 @@\n-"""\r\n- * Copyright 2018 University of Liverpool\r\n- * Author: John Heap, Computational Biology Facility, UoL\r\n- * Based on original scripts of Sara Silva Pereira, Institute of Infection and Global Health, UoL\r\n- *\r\n- * Licensed under the Apache License, Version 2.0 (the "License");\r\n- * you may not use this file except in compliance with the License.\r\n- * You may obtain a copy of the License at\r\n- *\r\n- * http://www.apache.org/licenses/LICENSE-2.0\r\n- *\r\n- * Unless required by applicable law or agreed to in writing, software\r\n- * distributed under the License is distributed on an "AS IS" BASIS,\r\n- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n- * See the License for the specific language governing permissions and\r\n- * limitations under the License.\r\n- *\r\n- """\r\n-#import subprocess\r\n-#import re\r\n-import os\r\n-import sys\r\n-#import pandas as pd\r\n-#import numpy as np\r\n-#import seaborn as sns\r\n-#import matplotlib.pyplot as plt\r\n-#from matplotlib.mlab import PCA\r\n-import Tryp_G\r\n-import Tryp_T\r\n-import Tryp_V\r\n-import argparse\r\n-#Entry .sort out the arguments\r\n-\r\n-pdfExport = False\r\n-#parser = argparse.ArgumentParser(description=\'Variant Antigen Profiler - the VAP.\')\r\n-#parser.add_argument(\'name\')\r\n-#parser.add_argument(\'-t\',\'-T\', action = \'store_true\', default = False, help = "Transciptomic Pathway")\r\n-#parser.add_argument(\'-p\',\'-P\', action = \'store_true\', default = False, help = "Export PDFs to HTML directory")\r\n-#parser.add_argument(\'strain\')\r\n-#parser.add_argument(\'Forward_Read_File\')\r\n-#parser.add_argument(\'Reverse_Read_File\')\r\n-#parser.add_argument(\'htmlfile\')\r\n-#parser.add_argument(\'htmlresource\')\r\n-#parser.add_argument(\'heatmapFile\')\r\n-#parser.add_argument(\'PCAFile\')\r\n-#parser.add_argument(\'devheatmapFile\')\r\n-#args = parser.parse_args()\r\n-\r\n-#we have numerous parameters....\r\n-#hard code it for differnt types?\r\n-\r\n-\r\n-arguments = sys.argv\r\n-htmldir = arguments[len(arguments)-1]   #last argument is always html_resource\r\n-if not os.path.exists(htmldir):\r\n-    os.mkdir(htmldir)\r\n-\r\n-if arguments[1] == \'g_assemble\':\r\n-    argdict = {\'name\':2, \'pdfexport\':3, \'kmers\':4,\'inslen\':5, \'covcut\':6, \'forward\':7, \'reverse\':8, \'html_file\':9, \'html_resource\':10}\r\n-    Tryp_G.assemble(arguments,argdict)\r\n-if arguments[1] == \'g_contigs\':\r\n-    argdict = {\'name\':2, \'pdfexport\':3, \'contigs\':4, \'html_file\':5, \'html_resource\':6}\r\n-    Tryp_G.contigs(arguments,argdict)\r\n-if arguments[1] == \'transcipt\':\r\n-    argdict = {\'name\':2, \'pdfexport\': 3, \'strain\': 4, \'forward\': 5, \'reverse\': 6, \'html_file\': 7, \'html_resource\': 8}\r\n-    Tryp_T.transcriptomicProcess(arguments,argdict)\r\n-if arguments[1] == \'v_assemble\':\r\n-    argdict = {\'name\':2, \'pdfexport\':3, \'kmers\':4,\'inslen\':5, \'covcut\':6, \'forward\':7, \'reverse\':8, \'html_file\':9, \'html_resource\':10}\r\n-    Tryp_V.vivax_assemble(arguments,argdict)\r\n-if arguments[1] == \'v_contigs\':\r\n-    argdict = {\'name\':2, \'pdfexport\':3, \'contigs\':4, \'html_file\':5, \'html_resource\':6}\r\n-    Tryp_V.vivax_contigs(arguments,argdict)\r\n-\r\n-\r\n-sys.exit()\r\n-\r\n-\r\n-\r\n-#if not os.path.exists(args.htmlresource):\r\n-#    os.mkdir(args.htmlresource)\r\n-#if args.p:\r\n-#    pdfExport = True\r\n-#if args.t:\r\n-#    print ("Transcriptomic Pathway")\r\n-#    Tryp_T.transcriptomicProcess(args.name, pdfExport, args.strain, args.Forward_Read_File, args.Reverse_Read_File, args.htmlfile, args.htmlresource)\r\n-#else:\r\n-    #print (\'Genomic Pathway\')\r\n-    #Tryp_G.test_output(args.name, args.htmlfile, args.htmlresource, args.heatmapFile, args.PCAFile,args.devheatmapFile)\r\n-#    Tryp_G.genomicProcess(args.name, pdfExport, args.Forward_Read_File, args.Reverse_Read_File, args.htmlfile, args.htmlresource)\r\n-\r\n-\r\n+\n+\n+\n+\n+\n+\n+<!DOCTYPE html>\n+<html lang="en">\n+  <head>\n+    <meta charset="utf-8">\n+  <link rel="dns-prefetch" href="https://github.githubassets.com">\n+  <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">\n+  <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">\n+  <l'..b'a-click="Footer, go to about, text:about" href="https://github.com/about">About</a></li>\n+\n+    </ul>\n+  </div>\n+  <div class="d-flex flex-justify-center pb-6">\n+    <span class="f6 text-gray-light"></span>\n+  </div>\n+</div>\n+\n+\n+\n+  <div id="ajax-error-message" class="ajax-error-message flash flash-error">\n+    <svg class="octicon octicon-alert" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"/></svg>\n+    <button type="button" class="flash-close js-ajax-error-dismiss" aria-label="Dismiss error">\n+      <svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48L7.48 8z"/></svg>\n+    </button>\n+    You can\xe2\x80\x99t perform that action at this time.\n+  </div>\n+\n+\n+    <script crossorigin="anonymous" integrity="sha512-EPrD+nddbyhpiLL8l3M8VfJpZr4J2EWQLaPXZ+6A3VDJKzS5HeZ3dkMVieHSdvIPHsMbWPyVlY42SWKoS4XTfA==" type="application/javascript" src="https://github.githubassets.com/assets/compat-bootstrap-831f12d4.js"></script>\n+    <script crossorigin="anonymous" integrity="sha512-oFBEYscCdWEyvUQehaYyaCSiKtIN4UvpfFHNpIXLUTSQ35JcacPNj86R8fgJfI1e7BOjbLZPTv1nJg3TECiMLw==" type="application/javascript" src="https://github.githubassets.com/assets/frameworks-7af24171.js"></script>\n+    \n+    <script crossorigin="anonymous" async="async" integrity="sha512-b9BDH7EZq1yaR2fUH08I378zVkToScLiQ//L0gdyPviliuwpWiVFkB8uW0K8zZszdeLeBpib7wGBLkPiIFgyHg==" type="application/javascript" src="https://github.githubassets.com/assets/github-bootstrap-2a8c2b54.js"></script>\n+    \n+    \n+    \n+  <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner" hidden\n+    >\n+    <svg class="octicon octicon-alert" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"/></svg>\n+    <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>\n+    <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>\n+  </div>\n+  <template id="site-details-dialog">\n+  <details class="details-reset details-overlay details-overlay-dark lh-default text-gray-dark hx_rsm" open>\n+    <summary role="button" aria-label="Close dialog"></summary>\n+    <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_rsm-dialog hx_rsm-modal">\n+      <button class="Box-btn-octicon m-0 btn-octicon position-absolute right-0 top-0" type="button" aria-label="Close dialog" data-close-dialog>\n+        <svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48L7.48 8z"/></svg>\n+      </button>\n+      <div class="octocat-spinner my-6 js-details-dialog-spinner"></div>\n+    </details-dialog>\n+  </details>\n+</template>\n+\n+  <div class="Popover js-hovercard-content position-absolute" style="display: none; outline: none;" tabindex="0">\n+  <div class="Popover-message Popover-message--bottom-left Popover-message--large Box box-shadow-large" style="width:360px;">\n+  </div>\n+</div>\n+\n+  <div aria-live="polite" class="js-global-screen-reader-notice sr-only"></div>\n+\n+  </body>\n+</html>\n+\n'