# HG changeset patch # User johnheap # Date 1559592122 14400 # Node ID 26ec953069b37fb76da63c7d517159df2be29bc2 # Parent fe79425b1fa4ae684cd07a5f31fc2ac7777585ef Uploaded diff -r fe79425b1fa4 -r 26ec953069b3 Vap.py --- a/Vap.py Mon Jun 03 16:01:16 2019 -0400 +++ b/Vap.py Mon Jun 03 16:02:02 2019 -0400 @@ -1,1165 +1,80 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - VAPPER-Galaxy/Vap.py at master · johnheap/VAPPER-Galaxy · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Skip to content -
- - - - - - - - -
- -
- - -
- -
- - - -
-
-
- - +pdfExport = False +#parser = argparse.ArgumentParser(description='Variant Antigen Profiler - the VAP.') +#parser.add_argument('name') +#parser.add_argument('-t','-T', action = 'store_true', default = False, help = "Transciptomic Pathway") +#parser.add_argument('-p','-P', action = 'store_true', default = False, help = "Export PDFs to HTML directory") +#parser.add_argument('strain') +#parser.add_argument('Forward_Read_File') +#parser.add_argument('Reverse_Read_File') +#parser.add_argument('htmlfile') +#parser.add_argument('htmlresource') +#parser.add_argument('heatmapFile') +#parser.add_argument('PCAFile') +#parser.add_argument('devheatmapFile') +#args = parser.parse_args() - - - - - - - -
-
- - - -

- - /VAPPER-Galaxy - - -

- -
- - - -
- -
- - -
-
-
- - - - - - - - Permalink - - - - - -
- - -
- - Branch: - master - - - - - - - -
+arguments = sys.argv +htmldir = arguments[len(arguments)-1] #last argument is always html_resource +if not os.path.exists(htmldir): + os.mkdir(htmldir) -
- - Find file - - - Copy path - -
-
- - -
- - Find file - - - Copy path - -
-
- - - - -
- Fetching contributors… -
- -
- - Cannot retrieve contributors at this time -
-
- - - - - -
- -
- -
- 81 lines (72 sloc) - - 3.04 KB -
- -
- -
- Raw - Blame - History -
+if arguments[1] == 'g_assemble': + argdict = {'name':2, 'pdfexport':3, 'kmers':4,'inslen':5, 'covcut':6, 'forward':7, 'reverse':8, 'html_file':9, 'html_resource':10} + Tryp_G.assemble(arguments,argdict) +if arguments[1] == 'g_contigs': + argdict = {'name':2, 'pdfexport':3, 'contigs':4, 'html_file':5, 'html_resource':6} + Tryp_G.contigs(arguments,argdict) +if arguments[1] == 'transcipt': + argdict = {'name':2, 'pdfexport': 3, 'strain': 4, 'forward': 5, 'reverse': 6, 'html_file': 7, 'html_resource': 8} + Tryp_T.transcriptomicProcess(arguments,argdict) +if arguments[1] == 'v_assemble': + argdict = {'name':2, 'pdfexport':3, 'kmers':4,'inslen':5, 'covcut':6, 'forward':7, 'reverse':8, 'html_file':9, 'html_resource':10} + Tryp_V.vivax_assemble(arguments,argdict) +if arguments[1] == 'v_contigs': + argdict = {'name':2, 'pdfexport':3, 'contigs':4, 'html_file':5, 'html_resource':6} + Tryp_V.vivax_contigs(arguments,argdict) +if arguments[1] == 'v_transcript': + argdict = {'name':2, 'pdfexport': 3, 'refFastq': 4, 'forward': 5, 'reverse': 6, 'html_file': 7, 'html_resource': 8} + Tryp_V_T.transcriptomicProcess(arguments,argdict) -
- - - -
-
-
- - +sys.exit() -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"""
* Copyright 2018 University of Liverpool
* Author: John Heap, Computational Biology Facility, UoL
* Based on original scripts of Sara Silva Pereira, Institute of Infection and Global Health, UoL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
"""
#import subprocess
#import re
import os
import sys
#import pandas as pd
#import numpy as np
#import seaborn as sns
#import matplotlib.pyplot as plt
#from matplotlib.mlab import PCA
import Tryp_G
import Tryp_T
import Tryp_V
import Tryp_V_T
import argparse
#Entry .sort out the arguments
-
pdfExport = False
#parser = argparse.ArgumentParser(description='Variant Antigen Profiler - the VAP.')
#parser.add_argument('name')
#parser.add_argument('-t','-T', action = 'store_true', default = False, help = "Transciptomic Pathway")
#parser.add_argument('-p','-P', action = 'store_true', default = False, help = "Export PDFs to HTML directory")
#parser.add_argument('strain')
#parser.add_argument('Forward_Read_File')
#parser.add_argument('Reverse_Read_File')
#parser.add_argument('htmlfile')
#parser.add_argument('htmlresource')
#parser.add_argument('heatmapFile')
#parser.add_argument('PCAFile')
#parser.add_argument('devheatmapFile')
#args = parser.parse_args()
-
#we have numerous parameters....
#hard code it for differnt types?
-
-
arguments = sys.argv
htmldir = arguments[len(arguments)-1] #last argument is always html_resource
if not os.path.exists(htmldir):
os.mkdir(htmldir)
-
if arguments[1] == 'g_assemble':
argdict = {'name':2, 'pdfexport':3, 'kmers':4,'inslen':5, 'covcut':6, 'forward':7, 'reverse':8, 'html_file':9, 'html_resource':10}
Tryp_G.assemble(arguments,argdict)
if arguments[1] == 'g_contigs':
argdict = {'name':2, 'pdfexport':3, 'contigs':4, 'html_file':5, 'html_resource':6}
Tryp_G.contigs(arguments,argdict)
if arguments[1] == 'transcipt':
argdict = {'name':2, 'pdfexport': 3, 'strain': 4, 'forward': 5, 'reverse': 6, 'html_file': 7, 'html_resource': 8}
Tryp_T.transcriptomicProcess(arguments,argdict)
if arguments[1] == 'v_assemble':
argdict = {'name':2, 'pdfexport':3, 'kmers':4,'inslen':5, 'covcut':6, 'forward':7, 'reverse':8, 'html_file':9, 'html_resource':10}
Tryp_V.vivax_assemble(arguments,argdict)
if arguments[1] == 'v_contigs':
argdict = {'name':2, 'pdfexport':3, 'contigs':4, 'html_file':5, 'html_resource':6}
Tryp_V.vivax_contigs(arguments,argdict)
if arguments[1] == 'v_transcript':
argdict = {'name':2, 'pdfexport': 3, 'refFastq': 4, 'forward': 5, 'reverse': 6, 'html_file': 7, 'html_resource': 8}
Tryp_V_T.transcriptomicProcess(arguments,argdict)
-
-
sys.exit()
-
- - - -
- -
- - - -
- - -
- - -
-
- - - -
- -
- -
-
- - -
- - - - - - -
- - - You can’t perform that action at this time. -
- - - - - - - - - - - - - - -
- - - -