Repository 'chasm_webservice'
hg clone https://toolshed.g2.bx.psu.edu/repos/saket-choudhary/chasm_webservice

Changeset 0:99d838cef41a (2014-10-07)
Commit message:
Uploaded
added:
chasm_webservice/README.rst
chasm_webservice/chasm_webservice.py
chasm_webservice/chasm_webservice.xml
chasm_webservice/test-data/chasm_input.txt
chasm_webservice/test-data/chasm_output_aminoacids.tabular
chasm_webservice/test-data/chasm_output_codons.tabular
chasm_webservice/test-data/chasm_output_errors.tabular
chasm_webservice/test-data/chasm_output_genes.tabular
chasm_webservice/test-data/chasm_output_variants.tabular
chasm_webservice/tool_dependencies.xml
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/README.rst
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/README.rst Tue Oct 07 19:23:27 2014 -0400
b
@@ -0,0 +1,34 @@
+Galaxy wrapper for the CHASM webservice 
+===================================================
+
+This tool is copyright 2014 by Saket Choudhary<saketkc@gmail.com>, Indian Institute of Technology Bombay
+All rights reserved. MIT licensed.
+
+Licence (MIT)
+=============
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+Citations
+===========
+
+
+If you use this Galaxy tool in work leading to a scientific publication please cite:
+
+Douville C, Carter H, Kim R, Niknafs N, Diekhans M, Stenson PD, Cooper DN, Ryan M, Karchin R (2013). CRAVAT: Cancer-Related Analysis of VAriants Toolkit Bioinformatics, 29(5):647-648.
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/chasm_webservice.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/chasm_webservice.py Tue Oct 07 19:23:27 2014 -0400
[
b'@@ -0,0 +1,285 @@\n+#!/usr/bin/python\n+"""\n+The MIT License (MIT)\n+\n+Copyright (c) 2014 Saket Choudhary, <saketkc@gmail.com>\n+\n+Permission is hereby granted, free of charge, to any person obtaining a copy\n+of this software and associated documentation files (the \'Software\'), to deal\n+in the Software without restriction, including without limitation the rights\n+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+copies of the Software, and to permit persons to whom the Software is\n+furnished to do so, subject to the following conditions:\n+\n+The above copyright notice and this permission notice shall be included in\n+all copies or substantial portions of the Software.\n+\n+THE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+THE SOFTWARE.\n+\n+"""\n+import sys\n+import requests\n+import argparse\n+import time\n+from functools import wraps\n+import json\n+import zipfile\n+import tempfile\n+import ntpath\n+import shutil\n+import xlrd\n+import csv\n+import os\n+sheet_map = {0: \'Variant_Analysis.csv\',\n+             1: \'Amino_Acid_Level_Analysis.csv\', 2: \'Gene_Level_Analysis.csv\'}\n+\n+\n+def retry(ExceptionToCheck, tries=40000, delay=3, backoff=2, logger=None):\n+    \'\'\'Retry calling the decorated function using an exponential backoff.\n+\n+    http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/\n+    original from: http://wiki.python.org/moin/PythonDecoratorLibrary#Retry\n+\n+    :param ExceptionToCheck: the exception to check. may be a tuple of\n+        exceptions to check\n+    :type ExceptionToCheck: Exception or tuple\n+    :param tries: number of times to try (not retry) before giving up\n+    :type tries: int\n+    :param delay: initial delay between retries in seconds\n+    :type delay: int\n+    :param backoff: backoff multiplier e.g. value of 2 will double the delay\n+        each retry\n+    :type backoff: int\n+    :param logger: logger to use. If None, print\n+    :type logger: logging.Logger instance\n+    \'\'\'\n+    def deco_retry(f):\n+\n+        @wraps(f)\n+        def f_retry(*args, **kwargs):\n+            mtries, mdelay = tries, delay\n+            while mtries > 1:\n+                try:\n+                    return f(*args, **kwargs)\n+                except ExceptionToCheck, e:\n+                    #msg = \'%s, Retrying in %d seconds...\' % (str(e), mdelay)\n+                    msg = \'Retrying in %d seconds...\' % (mdelay)\n+                    if logger:\n+                        logger.warning(msg)\n+                    else:\n+                        print msg\n+                    time.sleep(mdelay)\n+                    mtries -= 1\n+                    mdelay *= backoff\n+            return f(*args, **kwargs)\n+\n+        return f_retry  # true decorator\n+\n+    return deco_retry\n+CANCERTYPES = [\'Bladder\', \'Blood-Lymphocyte\', \'Blood-Myeloid\',\n+               \'Brain-Cerebellum\', \'Brain-Glioblastoma_Multiforme\',\n+               \'Brain-Lower_Grade_Glioma\', \'Breast\', \'Cervix\',\n+               \'Colon\', \'Head_and_Neck\', \'Kidney-Chromophobe\',\n+               \'Kidney-Clear_Cell\', \'Kidney-Papiallary_Cell\',\n+               \'Liver-Nonviral\', \'Liver-Viral\', \'Lung-Adenocarcinoma\',\n+               \'Lung-Squamous_Cell\', \'Melanoma\', \'Other\', \'Ovary\',\n+               \'Pancreas\', \'Prostate-Adenocarcinoma\', \'Rectum\',\n+               \'Skin\', \'Stomach\', \'Thyroid\', \'Uterus\']\n+\n+__URL__ = \'http://www.cravat.us/rest/service/submit\'\n+\n+\n+def stop_err(msg):\n+    sys.stderr.write(\'%s\\n\' % msg)\n+    sys.exit()\n+\n+\n+class CHASMWeb:\n+\n+    def __init__(self,\n+                 mutationbox=None, filepath=None,\n+                 is_hg_18=None, analysis_type=None'..b"              c.writerow(sh.row_values(r))\n+        shutil.rmtree(self.tmp_dir)\n+        fh.close()\n+\n+\n+def main(params):\n+\n+    parser = argparse.ArgumentParser()\n+    parser.add_argument('-i', '--input',\n+                        type=str, dest='mutationbox',\n+                        help='Input variants')\n+    parser.add_argument('--path', type=str,\n+                        dest='input_file_location',\n+                        help='Input file location')\n+    parser.add_argument('--hg18', dest='hg18',\n+                        action='store_true')\n+    parser.add_argument('--analysis_type', dest='analysis_type',\n+                        type=str,\n+                        choices=['driver', 'functional',\n+                                 'geneannotationonly'],\n+                        default='driver')\n+    parser.add_argument('--chosendb', dest='chosendb',\n+                        type=str, nargs='*',\n+                        choices=['CHASM', 'SnvGet'],\n+                        default='CHASM')\n+    parser.add_argument('--cancertype', dest='cancer_type',\n+                        type=str, choices=CANCERTYPES,\n+                        required=True)\n+    parser.add_argument('--email', dest='email',\n+                        required=True, type=str)\n+    parser.add_argument('--annotate', dest='annotate',\n+                        action='store_true', default=None)\n+    parser.add_argument('--tsv_report', dest='tsv_report',\n+                        action='store_true', default=None)\n+    parser.add_argument('--mupit_out', dest='mupit_out',\n+                        action='store_true', default=None)\n+    parser.add_argument('--gene_analysis_out', dest='gene_analysis_out',\n+                        type=str, required=True)\n+    parser.add_argument('--variant_analysis_out',\n+                        dest='variant_analysis_out',\n+                        type=str, required=True)\n+    parser.add_argument('--amino_acid_level_analysis_out',\n+                        dest='amino_acid_level_analysis_out',\n+                        type=str, required=True,)\n+    parser.add_argument('--codon_level_analysis_out',\n+                        dest='codon_level_analysis_out',\n+                        type=str, required=True,)\n+    parser.add_argument('--error_file', dest='error_file_out',\n+                        type=str, required=True)\n+    parser.add_argument('--snv_box_out', dest='snv_box_out',\n+                        type=str, required=False)\n+    parser.add_argument('--snv_features', dest='snv_features_out',\n+                        type=str, required=False)\n+    args = parser.parse_args(params)\n+    chasm_web = CHASMWeb(mutationbox=args.mutationbox,\n+                         filepath=args.input_file_location,\n+                         is_hg_18=args.hg18,\n+                         analysis_type=args.analysis_type,\n+                         chosendb=args.chosendb,\n+                         cancer_type=args.cancer_type,\n+                         email=args.email,\n+                         annotate_genes=args.annotate,\n+                         text_reports=args.tsv_report,\n+                         mupit_out=args.mupit_out)\n+    job_id = chasm_web.make_request()\n+    file_map = {'Amino_Acid_Level_Analysis.Result.tsv': args.amino_acid_level_analysis_out,\n+                'SNVBox.tsv': args.snv_box_out,\n+                'Variant_Analysis.Result.tsv': args.variant_analysis_out,\n+                'Gene_Level_Analysis.Result.tsv': args.gene_analysis_out,\n+                'SnvGet Feature Description.xls': args.snv_features_out,\n+                'error.txt': args.error_file_out,\n+                'Codon_Level_Analysis.Result.tsv': args.codon_level_analysis_out,\n+                }\n+    url = chasm_web.zip_exists(job_id)\n+    download = chasm_web.download_zip(url, job_id)\n+    if download:\n+        chasm_web.move_files(file_map=file_map)\n+    else:\n+        stop_err('Unable to download from the server')\n+\n+if __name__ == '__main__':\n+    main(sys.argv[1:])\n"
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/chasm_webservice.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/chasm_webservice.xml Tue Oct 07 19:23:27 2014 -0400
b
b'@@ -0,0 +1,294 @@\n+<tool id="chasm_webservice" name="CHASM Webservice" version="1.0.0" hidden="false">\n+    <requirements>\n+        <requirement type="package" version="2.2.1">requests</requirement>\n+        <requirement type="package" version="0.9.3">xlrd</requirement>\n+        <requirement type="python-module">requests</requirement>\n+        <requirement type="python-module">xlrd</requirement>\n+    </requirements>\n+    <description>CHASM score using CRAVAT webservice</description>\n+    <command interpreter="python">\n+        chasm_webservice.py --path $input\n+                            --analysis_type $analysis_type\n+                            --cancertype $tissue_type\n+                            --email $__user_email__\n+                            --gene_analysis_out $gene_analysis_out\n+                            --variant_analysis_out $variant_analysis_out\n+                            --amino_acid_level_analysis_out $amino_acid_level_analysis_out\n+                            --codon_level_analysis_out $codon_level_analysis_out\n+                            --error_file $error_file\n+\n+    </command>\n+    <inputs>\n+        <param format="txt" name="input" type="data" label="Variants File" />\n+        <param name="analysis_type" type="select" label="Choose analysis type" help="\n+                                                                    Cancer driver analysis predicts whether\\\n+                                                                    the submitted variants are cancer drivers.\\\n+                                                                    Functional effect analysis predicts whether\\\n+                                                                    the submitted variants will have any\\\n+                                                                    functional effect on their translated proteins.\\\n+                                                                    Annotation only provides\\\n+                                                                    GeneCard and PubMed information on\\\n+                                                                    the genes containing the submitted variants.">\n+            <option value="driver">Cancer driver analysis</option>\n+            <option value="functional">Functional effect analysis</option>\n+            <option value="geneannotationonly">Annotation only</option>\n+        </param>\n+\n+        <param name="gene_annotation" type="select" label="Include Gene annotation">\n+            <option value="no">No</option>\n+            <option value="yes">Yes</option>\n+        </param>\n+\n+        <param name="tissue_type" type="select" label="Tissue Type">\n+            <option value="Bladder">Bladder</option>\n+            <option value="Blood-Lymphocyte">Blood-Lymphocyte</option>\n+            <option value="Blood-Myeloid">Blood-Myeloid</option>\n+            <option value="Brain-Cerebellum">Brain-Cerebellum</option>\n+            <option value="Brain-Glioblastoma_Multiforme">Brain-Glioblastoma_Multiforme</option>\n+            <option value="Brain-Lower_Grade_Glioma">Brain-Lower_Grade_Glioma</option>\n+            <option value="Breast">Breast</option>\n+            <option value="Cervix">Cervix</option>\n+            <option value="Colon">Colon</option>\n+            <option value="Head_and_Neck">Head_and_Neck</option>\n+            <option value="Kidney-Chromophobe">Kidney-Chromophobe</option>\n+            <option value="Kidney-Clear_Cell">Kidney-Clear_Cell</option>\n+            <option value="Kidney-Papiallary_Cell">Kidney-Papiallary_Cell</option>\n+            <option value="Liver-Nonviral">Liver-Nonviral</option>\n+            <option value="Liver-Viral">Liver-Viral</option>\n+            <option value="Lung-Adenocarcinoma">Lung-Adenocarcinoma</option>\n+            <option value="Lung-Squamous_Cell">Lung-Squamous_Cell</option>\n+            <option value="Melanoma">Melanoma</option>\n+            <option value="Other" selected="true">Other</option>\n+    '..b' your reported reference base matches the base in the reported position in the\n+        hg19 reference sequence (or hg18 if you checked hg18 checkbox).\n+\n+        .. class:: infomark\n+\n+        Amino-acid residue substitution format (separated by a tab or a space):\n+\n+\n+        # UID / Transcript / AA change / Sample ID (optional)\n+\n+\n+        TR1\tNM_001126116.1\tD127Y\tTCGA-02-0231\n+\n+\n+        TR2\tNM_001144919.1\tR162Q\tTCGA-02-3512\n+\n+\n+        TR3\tNM_000321.2\tQ702K\tTCGA-02-3532\n+\n+\n+        TR4\tNM_000245.2\tA1108S\tTCGA-02-1523\n+\n+\n+        TR5\tNM_004333.4\tV600E\tTCGA-02-0023\n+\n+\n+        TR6\tNM_001005862.1\tG746V\tTCGA-02-0252\n+\n+\n+        trascript identifier can be from either NCBI Refseq, CCDS, or Ensembl.\n+        Refseq and CCDS accessions can be specified without version numbers.\n+        The format of "AA change" column is (reference AA)(AA position)(alternate AA), without "(" and ")".\n+        Reference and alternate AAs should be from the 20 essential amino acids and each of them should be one amino acid-long.\n+\n+\n+        **Analysis**\n+\n+\n+        .. class:: infomark\n+\n+\n+        Analysis Type:\n+\n+\n+        -*Cancer driver analysis*: This analysis predicts whether the submitted variants are cancer drivers or not.\n+\n+\n+        -*Functional effect analysis*: This analysis predicts whether the submitted variants will have any functional effect on their translated proteins or not.\n+\n+\n+        -*Gene annotation only*: This analysis provides GeneCard and PubMed information on the genes containing the submitted variants.\n+\n+\n+        Currently, the following tissue types can be chosen at CRAVAT.\n+\n+\n+        Name\tFull name\tSource\tDate\n+\n+\n+        Bladder\tBladder Urothelial Carcinoma\tBLCA (TCGA)\tJun 2013\n+\n+\n+        Blood-Lymphocyte\tChronic Lymphocytic Leukemia\tCLL (ICGC)\tMar 2013\n+\n+\n+        Blood-Myeloid\tAcute Myeloid Leukemia\tLAML (TCGA)\tJun 2013\n+\n+\n+        Brain-Cerebellum\tMedulloblastoma\tMB (mixed source)\tDec 2010\n+\n+\n+        Brain-Glioblastoma-Multiforme\tGlioblastoma Multiforme\tGBM (TCGA)\tJun 2013\n+\n+\n+        Brain-Lower-Grade-Glioma\tBrain Lower Grade Glioma\tLGG (TCGA)\tJun 2013\n+\n+\n+        Breast\tBreast Invasive Carcinoma\tBRCA (TCGA)\tJun 12012\n+\n+\n+        Cervix\tCervical Squamous Cell Carcinoma and Endocervical Adenocarcinoma\tCESC (TCGA)\tJun 2013\n+\n+\n+        Colon\tColon Adenocarcinoma\tCOAD (TCGA)\tJun 2013\n+\n+\n+        Head and Neck\tHead and Neck Squamous Cell Carcinoma\tHNSC (TCGA)\tJun 2013\n+\n+\n+        Kidney-Chromophobe\tKidney Chromophobe\tKICH (TCGA)\tJun 2013\n+\n+\n+        Kidney-Clear-Cell\tKidney Renal Clear Cell Carcinoma\tKIRC (TCGA)\tJun 2013\n+\n+\n+        Kidney-Papillary-Cell\tKidney Renal Papillary Cell Carcinoma\tKIRP (TCGA)\tJun 2013\n+\n+\n+        Liver-Nonviral\tHepatocellular Carcinoma (Secondary to Alcohol and Adiposity)\tHCCA (ICGC)\tMar 2013\n+\n+\n+        Liver-Viral\tHepatocellular Carcinoma (Viral)\tHCCV (ICGC)\tMar 2013\n+\n+\n+        Lung-Adenocarcinoma\tLung Adenocarcinoma\tLUAD (TCGA)\tJun 2013\n+\n+\n+        Lung-Squamous Cell\tLung Squamous Cell Carcinoma\tLUSC (TCGA)\tJun 2013\n+\n+\n+        Melanoma\tMelanoma\tML (Yardena Samuels lab)\tDec 2011\n+\n+\n+        Other\tGeneral purpose\tOV (TCGA)\tJun 2013\n+\n+\n+        Ovary\tOvarian Serous Cystadenocarcinoma\tOV (TCGA)\tJun 2013\n+\n+\n+        Pancreas\tPancreatic Cancer\tPNCC (ICGC))\tMar 2013\n+\n+\n+        Prostate-Adenocarcinoma\tProstate Adenocarcinoma\tPRAD (TCGA)\tJun 2013\n+\n+\n+        Rectum\tRectum Adenocarcinoma\tREAD (TCGA)\tJun 2013\n+\n+\n+        Skin\tSkin Cutaneous Melanoma\tSKCM (TCGA)\tJun 2013\n+\n+\n+        Stomach\tStomach Adenocarcinoma\tSTAD (TCGA)\tJun 2013\n+\n+\n+        Thyroid\tThyroid Carcinoma\tTHCA (TCGA)\tJun 2013\n+\n+\n+        Uterus\tUterine Corpus Endometriod Carcinoma\tUCEC (TCGA)\tJun 2013\n+\n+        **Citation**\n+\n+        If  you use this tool please cite:\n+\n+        Douville C, Carter H, Kim R, Niknafs N, Diekhans M, Stenson PD, Cooper DN, Ryan M, Karchin R (2013). CRAVAT: Cancer-Related Analysis of VAriants Toolkit Bioinformatics, 29(5):647-648.\n+\n+    </help>\n+</tool>\n'
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/test-data/chasm_input.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/test-data/chasm_input.txt Tue Oct 07 19:23:27 2014 -0400
b
@@ -0,0 +1,5 @@
+TR1 chr22 30421786 + A T
+TR2 chr22 29446079 + A G
+TR3 chr22 29446079 + A G
+TR4 chr22 40814500 - A G
+TR5 chr22 40815256 + C T
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/test-data/chasm_output_codons.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/test-data/chasm_output_codons.tabular Tue Oct 07 19:23:27 2014 -0400
[
@@ -0,0 +1,14 @@
+#Amino Acid Level Analysis Report
+#2014-08-28 22:54:22.487446
+#CRAVAT version: 3.1
+#Analysis done at http://www.cravat.us.
+#Input file: dataset_1.dat
+#This report shows analysis results at amino acid level.
+#Input coordinate was hg19 genomic.
+#For more information on CRAVAT, visit http://www.cravat.us.
+#
+Transcript Amino acid position Sequence Ontology Reference amino acid(s) Protein sequence change HUGO symbol Other transcripts Occurrences in study [amino acid change] Transcript in COSMIC Protein sequence change in COSMIC Occurrences in COSMIC [amino acid change] Occurrences in COSMIC by primary sites [amino acid change]
+NM_021090.3 1198 MS N I MTMR3 NM_153051.2:aAc>aTc:N1161I, NM_153050.2:aAc>aTc:N1170I, ENST00000323630:aAc>aTc:N1062I, ENST00000351488:aAc>aTc:N1161I, ENST00000333027:aAc>aTc:N1170I, ENST00000406629:aAc>aTc:N1170I, ENST00000401950:aAc>aTc:N1198I 1 0
+NM_001206998.1 637 MS H R ZNRF3 NM_032173.3:cAc>cGc:H537R, ENST00000406323:cAc>cGc:H537R, ENST00000332811:cAc>cGc:H537R, ENST00000402174:cAc>cGc:H537R, ENST00000544604:cAc>cGc:H637R 2 0
+NM_020831.3 648 MS S G MKL1 ENST00000396617:Agc>Ggc:S648G, ENST00000402042:Agc>Ggc:S598G, ENST00000407029:Agc>Ggc:S648G, ENST00000355630:Agc>Ggc:S648G 1 ENST00000355630 p.S648G (stomach 1) 1 stomach(1)
+NM_020831.3 396 MS A T MKL1 ENST00000396617:Gcc>Acc:A396T, ENST00000402042:Gcc>Acc:A346T, ENST00000407029:Gcc>Acc:A396T, ENST00000355630:Gcc>Acc:A396T 1 0
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/test-data/chasm_output_errors.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/test-data/chasm_output_errors.tabular Tue Oct 07 19:23:27 2014 -0400
b
@@ -0,0 +1,1 @@
+# End of input format error output. If nothing is above this line, there was no format error in the input.
\ No newline at end of file
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/test-data/chasm_output_genes.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/test-data/chasm_output_genes.tabular Tue Oct 07 19:23:27 2014 -0400
[
@@ -0,0 +1,15 @@
+#Gene Level Analysis Report
+#2014-08-28 22:54:22.487967
+#CRAVAT version: 3.1
+#Analysis done at http://www.cravat.us.
+#Input file: dataset_1.dat
+#This report shows analysis results at gene level.
+#The composite p-value (Stouffer's combined p-value) and composite FDR of a gene show how probable it is to get the same p-value distribution for the gene as that obtained from the input variants by chance.
+#Input coordinate was hg19 genomic.
+#Tissue type for CHASM analysis: Other
+#For more information on CRAVAT, visit http://www.cravat.us.
+#
+HUGO symbol Driver Genes TARGET Best driver score from representative transcripts Occurrences in study [gene mutated] Occurrences in COSMIC [gene mutated] Occurrences in COSMIC by primary sites [gene mutated] MuPIT link
+MTMR3 0.582 1 103 upper_aerodigestive_tract(2);large_intestine(24);haematopoietic_and_lymphoid_tissue(5);endometrium(12);urinary_tract(4);oesophagus(1);breast(6);skin(17);lung(17);ovary(5);NS(1);prostate(2);kidney(4);liver(3)  
+ZNRF3 0.524 2 73 upper_aerodigestive_tract(2);large_intestine(19);autonomic_ganglia(1);haematopoietic_and_lymphoid_tissue(2);endometrium(12);urinary_tract(2);lung(16);liver(5);skin(1);oesophagus(3);ovary(2);NS(1);prostate(2);kidney(3);breast(2)  
+MKL1 0.668 2 68 large_intestine(15);stomach(2);central_nervous_system(1);haematopoietic_and_lymphoid_tissue(3);endometrium(13);urinary_tract(1);lung(19);breast(3);skin(1);ovary(5);kidney(4);liver(1)  
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/test-data/chasm_output_variants.tabular
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/test-data/chasm_output_variants.tabular Tue Oct 07 19:23:27 2014 -0400
[
@@ -0,0 +1,16 @@
+#Variant Level Analysis Report
+#2014-08-28 22:54:22.488508
+#CRAVAT version: 3.1
+#Analysis done at http://www.cravat.us.
+#Input file: dataset_1.dat
+#This report shows analysis results at variant level.
+#Input coordinate was hg19 genomic.
+#Tissue type for CHASM analysis: Other
+#For more information on CRAVAT, visit http://www.cravat.us.
+#
+ID Chromosome Position Strand Reference base Alternate base Sample ID HUGO symbol Transcript Transcript strand Codon change Amino acid position Sequence Ontology Reference amino acid(s) Protein sequence change Other transcripts Mappability Warning Driver Genes TARGET Driver score of representative transcript (driver mutations close to 0) Empirical p-value FDR (Benjamini-Hochberg) (not available with less than 10 unique mutations) Best driver score and transcript All transcripts and driver scores dbSNP 1000 Genomes allele frequency ESP6500 allele frequency (European American) ESP6500 allele frequency (African American) Occurrences in study [exact nucleotide change] Transcript in COSMIC Protein sequence change in COSMIC Occurrences in COSMIC [exact nucleotide change] Occurrences in COSMIC by primary sites [exact nucleotide change] MuPIT Link
+TR1 chr22 30421786 + A T No_sample_ID MTMR3 NM_021090.3 + aAc>aTc 1198 MS N I NM_153051.2:aAc>aTc:N1161I, NM_153050.2:aAc>aTc:N1170I, ENST00000323630:aAc>aTc:N1062I, ENST00000351488:aAc>aTc:N1161I, ENST00000333027:aAc>aTc:N1170I, ENST00000406629:aAc>aTc:N1170I, ENST00000401950:aAc>aTc:N1198I 0.582(NM_021090.3:N1198I:&) 0.2972   0.572(ENST00000351488:N1161I:=) ENST00000323630:N1062I:=(0.594),ENST00000406629:N1170I:=(0.602),ENST00000401950:N1198I:=(0.592),ENST00000351488:N1161I:=(0.572),NM_153050.2:N1170I:=(0.582),ENST00000333027:N1170I:=(0.582),NM_021090.3:N1198I:&(0.582),NM_153051.2:N1161I:=(0.582) rs75623810 0.00778388278388 0 0.0226963 1  
+TR2 chr22 29446079 + A G No_sample_ID ZNRF3 NM_001206998.1 + cAc>cGc 637 MS H R NM_032173.3:cAc>cGc:H537R, ENST00000406323:cAc>cGc:H537R, ENST00000332811:cAc>cGc:H537R, ENST00000402174:cAc>cGc:H537R, ENST00000544604:cAc>cGc:H637R 0.524(NM_001206998.1:H637R:&) 0.1872   0.442(ENST00000544604:H637R:=) ENST00000544604:H637R:=(0.442),NM_032173.3:H537R:=(0.524),ENST00000402174:H537R:=(0.524),ENST00000406323:H537R:=(0.514),NM_001206998.1:H637R:&(0.524),ENST00000332811:H537R:=(0.524) rs62641746 0 0.00598145 0.00104004 2  
+TR3 chr22 29446079 + A G No_sample_ID ZNRF3 NM_001206998.1 + cAc>cGc 637 MS H R NM_032173.3:cAc>cGc:H537R, ENST00000406323:cAc>cGc:H537R, ENST00000332811:cAc>cGc:H537R, ENST00000402174:cAc>cGc:H537R, ENST00000544604:cAc>cGc:H637R 0.524(NM_001206998.1:H637R:&) 0.1872   0.442(ENST00000544604:H637R:=) ENST00000544604:H637R:=(0.442),NM_032173.3:H537R:=(0.524),ENST00000402174:H537R:=(0.524),ENST00000406323:H537R:=(0.514),NM_001206998.1:H637R:&(0.524),ENST00000332811:H537R:=(0.524) rs62641746 0 0.00598145 0.00104004 2  
+TR4 chr22 40814500 - A G No_sample_ID MKL1 NM_020831.3 - Agc>Ggc 648 MS S G ENST00000396617:Agc>Ggc:S648G, ENST00000402042:Agc>Ggc:S598G, ENST00000407029:Agc>Ggc:S648G, ENST00000355630:Agc>Ggc:S648G 0.728(NM_020831.3:S648G:&) 0.6890   0.704(ENST00000402042:S598G:=) ENST00000407029:S648G:=(0.728),NM_020831.3:S648G:&(0.728),ENST00000396617:S648G:=(0.728),ENST00000355630:S648G:=(0.728),ENST00000402042:S598G:=(0.704) rs878756 0.419871794872 0.396977 0.860645 1 ENST00000355630 p.S648G (stomach 1) 1 stomach(1)  
+TR5 chr22 40815256 + C T No_sample_ID MKL1 NM_020831.3 - Gcc>Acc 396 MS A T ENST00000396617:Gcc>Acc:A396T, ENST00000402042:Gcc>Acc:A346T, ENST00000407029:Gcc>Acc:A396T, ENST00000355630:Gcc>Acc:A396T 0.668(NM_020831.3:A396T:&) 0.5102   0.668(ENST00000407029:A396T:=) ENST00000407029:A396T:=(0.668),NM_020831.3:A396T:&(0.668),ENST00000396617:A396T:=(0.668),ENST00000355630:A396T:=(0.668),ENST00000402042:A346T:=(0.67) rs34736200 0.0201465201465 0.00127937 0.0834091 1  
b
diff -r 000000000000 -r 99d838cef41a chasm_webservice/tool_dependencies.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/chasm_webservice/tool_dependencies.xml Tue Oct 07 19:23:27 2014 -0400
b
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="requests" version="2.2.1">
+        <repository changeset_revision="04c9eef6c14b" name="package_requests_2_2_1" owner="saket-choudhary" toolshed="http://toolshed.g2.bx.psu.edu" />
+        <repository changeset_revision="581d3f7a46d3" name="package_xlrd_0_9_3" owner="saket-choudhary" toolshed="http://toolshed.g2.bx.psu.edu" />
+    </package>
+</tool_dependency>