Next changeset 1:cdcaa40e5e45 (2021-12-06) |
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/vcfanno/ commit d962b44c5d3fecd1a315d6fbda8831d6de1b2801" |
added:
macros.xml test-data/ex.bam test-data/ex.bam.bai test-data/exac.vcf.gz test-data/fitcons.bed test-data/query.vcf.gz test-data/vcfanno_result.vcf vcfanno.xml |
b |
diff -r 000000000000 -r fb20fa735dfe macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Thu Jan 21 10:33:49 2021 +0000 |
[ |
@@ -0,0 +1,69 @@ +<?xml version="1.0"?> +<macros> + <token name="@TOOL_VERSION@">0.3.2</token> + <token name="@VERSION_SUFFIX@">0</token> + <token name="@PROFILE@">20.01</token> + <xml name="requirements"> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">vcfanno</requirement> + <requirement type="package">tabix</requirement> + <requirement type="package">samtools</requirement> + </requirements> + </xml> + <xml name="version_command"> + <version_command>vcfanno --help</version_command> + </xml> + <xml name="citations"> + <citations> + <citation type="bibtex">@online{vcfanno, + author = {Brent S. Pedersen}, + title = {vcfanno}, + year = 2016, + url = {https://github.com/brentp/vcfanno}, + urldate = {2020-12-03} + }</citation> + <citation type="doi">10.1186/s13059-016-0973-5</citation> + </citations> + </xml> + <xml name="xrefs"> + <xrefs> + <xref type="bio.tools">vcfanno</xref> + </xrefs> + </xml> + + <!-- + Inputs + --> + <macro name = "ops"> + <option value="self" selected="true">self - pull directly from the annotation and handle multi-allelics</option> + <option value="concat">concat - comma delimited list of output</option> + <option value="count">count - count the number of overlaps</option> + <option value="div2">div2 - given two values a and b, return a / b</option> + <option value="first">first - take only the first value</option> + <option value="flag">flag - presense/absence via VCF flag</option> + <option value="max">max (numbers only)</option> + <option value="mean">mean (numbers only)</option> + <option value="min">min (numbers only)</option> + <option value="sum">sum (numbers only)</option> + <option value="uniq">uniq - comma-delimited list of uniq values</option> + <option value="by_alt">by_alt - comma-delimited by alt (Number=A), pipe-delimited (|) for multiple annos for the same alt.</option> + <yield/> + </macro> + + <!-- + Help + --> + + <token name="@WID@"><![CDATA[ +*vcfanno* allows you to quickly annotate your VCF with any number of INFO fields from any number of VCFs or BED files. It uses a simple conf file to allow the user to specify the source annotation files and fields and how they will be added to the info of the query VCF. + + - For VCF, values are pulled by name from the INFO field with special-cases of ID and FILTER to pull from those VCF columns. + + - For BED, values are pulled from (1-based) column number. + + - For BAM, depth (count), "mapq" and "seq" are currently supported. + ]]></token> + <token name="@REFERENCES@"><![CDATA[ +More information are available in the `mailing list <https://groups.google.com/g/vcfanno>`_ and `github <https://github.com/brentp/vcfanno>`_. + ]]></token> +</macros> |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/ex.bam |
b |
Binary file test-data/ex.bam has changed |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/ex.bam.bai |
b |
Binary file test-data/ex.bam.bai has changed |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/exac.vcf.gz |
b |
Binary file test-data/exac.vcf.gz has changed |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/fitcons.bed --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/fitcons.bed Thu Jan 21 10:33:49 2021 +0000 |
b |
b'@@ -0,0 +1,537 @@\n+1\t1\t10000\t0.061011\n+1\t10000\t10154\t0.070013\n+1\t10154\t10200\t0.126639\n+1\t10400\t10535\t0.053691\n+1\t10535\t10625\t0.078448\n+1\t10625\t11084\t0.053691\n+1\t11084\t11159\t0.078448\n+1\t11159\t11325\t0.053691\n+1\t11325\t11400\t0.078448\n+1\t11400\t11404\t0.053691\n+1\t11404\t11538\t0.078448\n+1\t11538\t11577\t0.053691\n+1\t11577\t11679\t0.078448\n+1\t11679\t11695\t0.053691\n+1\t11695\t11786\t0.078448\n+1\t11786\t11818\t0.053691\n+1\t11818\t11952\t0.078448\n+1\t11952\t12001\t0.053691\n+1\t12001\t12200\t0.078448\n+1\t12200\t12219\t0.053691\n+1\t12219\t12399\t0.078448\n+1\t12399\t12407\t0.053691\n+1\t12407\t12482\t0.078448\n+1\t12482\t12529\t0.053691\n+1\t12529\t12604\t0.078448\n+1\t12604\t12671\t0.053691\n+1\t12671\t12939\t0.078448\n+1\t12939\t13170\t0.053691\n+1\t13170\t13310\t0.078448\n+1\t13310\t13330\t0.053691\n+1\t13330\t13626\t0.078448\n+1\t13626\t13798\t0.053691\n+1\t13798\t13911\t0.078448\n+1\t13911\t13986\t0.053691\n+1\t13986\t14251\t0.078448\n+1\t14251\t14261\t0.053691\n+1\t14261\t14390\t0.078448\n+1\t14390\t14403\t0.162113\n+1\t14403\t14404\t0.078448\n+1\t14404\t14463\t0.162113\n+1\t14463\t14833\t0.262962\n+1\t14833\t14834\t0.162113\n+1\t14834\t14835\t0.262962\n+1\t14835\t14836\t0.162113\n+1\t14836\t14854\t0.262962\n+1\t14854\t14871\t0.162113\n+1\t14871\t15094\t0.262962\n+1\t15094\t15113\t0.162113\n+1\t15113\t15180\t0.262962\n+1\t15180\t15428\t0.162113\n+1\t15428\t15492\t0.262962\n+1\t15492\t15727\t0.162113\n+1\t15727\t15800\t0.262962\n+1\t15800\t15823\t0.184171\n+1\t15823\t15882\t0.262962\n+1\t15882\t15901\t0.184171\n+1\t15901\t15905\t0.162113\n+1\t15905\t15906\t0.092769\n+1\t15906\t15918\t0.078448\n+1\t15918\t15935\t0.162113\n+1\t15935\t15948\t0.184171\n+1\t15948\t15977\t0.092769\n+1\t15977\t15990\t0.162113\n+1\t15990\t16000\t0.184171\n+1\t16000\t16007\t0.256867\n+1\t16007\t16037\t0.255825\n+1\t16037\t16039\t0.115753\n+1\t16039\t16047\t0.255825\n+1\t16047\t16062\t0.115753\n+1\t16062\t16070\t0.069865\n+1\t16070\t16078\t0.115753\n+1\t16078\t16114\t0.255825\n+1\t16114\t16124\t0.115753\n+1\t16124\t16127\t0.255825\n+1\t16127\t16199\t0.256867\n+1\t16199\t16239\t0.255825\n+1\t16239\t16282\t0.115753\n+1\t16282\t16311\t0.069865\n+1\t16311\t16355\t0.115753\n+1\t16355\t16400\t0.256867\n+1\t16400\t16430\t0.295142\n+1\t16430\t16497\t0.156188\n+1\t16497\t16600\t0.295142\n+1\t16600\t16709\t0.294411\n+1\t16709\t16730\t0.164513\n+1\t16730\t16757\t0.074636\n+1\t16757\t16766\t0.164513\n+1\t16766\t16782\t0.074636\n+1\t16782\t16804\t0.061011\n+1\t16804\t16849\t0.074636\n+1\t16849\t16899\t0.164513\n+1\t16899\t17110\t0.294411\n+1\t17110\t17111\t0.164513\n+1\t17111\t17194\t0.294411\n+1\t17194\t17195\t0.164513\n+1\t17195\t17434\t0.294411\n+1\t17434\t17438\t0.164513\n+1\t17438\t17443\t0.294411\n+1\t17443\t17453\t0.164513\n+1\t17453\t17743\t0.294411\n+1\t17743\t17748\t0.164513\n+1\t17748\t17765\t0.074636\n+1\t17765\t17860\t0.164513\n+1\t17860\t17866\t0.294411\n+1\t17866\t17867\t0.164513\n+1\t17867\t18062\t0.294411\n+1\t18062\t18234\t0.164513\n+1\t18234\t18408\t0.294411\n+1\t18408\t18426\t0.164513\n+1\t18426\t18440\t0.074636\n+1\t18440\t18550\t0.164513\n+1\t18550\t18555\t0.294411\n+1\t18555\t18557\t0.164513\n+1\t18557\t18567\t0.294411\n+1\t18567\t18568\t0.164513\n+1\t18568\t18569\t0.294411\n+1\t18569\t18576\t0.164513\n+1\t18576\t18585\t0.294411\n+1\t18585\t18593\t0.164513\n+1\t18593\t18700\t0.294411\n+1\t18700\t18702\t0.164513\n+1\t18702\t18786\t0.294411\n+1\t18786\t18837\t0.164513\n+1\t18837\t18863\t0.074636\n+1\t18863\t18926\t0.164513\n+1\t18926\t19166\t0.294411\n+1\t19166\t19216\t0.164513\n+1\t19216\t19246\t0.074636\n+1\t19246\t19251\t0.164513\n+1\t19251\t19255\t0.074636\n+1\t19255\t19306\t0.164513\n+1\t19306\t19584\t0.294411\n+1\t19584\t19588\t0.164513\n+1\t19588\t19591\t0.294411\n+1\t19591\t19701\t0.164513\n+1\t19701\t19712\t0.294411\n+1\t19712\t19772\t0.164513\n+1\t19772\t19789\t0.074636\n+1\t19789\t19811\t0.164513\n+1\t19811\t19896\t0.294411\n+1\t19896\t19899\t0.164513\n+1\t19899\t20088\t0.294411\n+1\t20088\t20159\t0.164513\n+1\t20159\t20176\t0.294411\n+1\t20176\t20199\t0.164513\n+1\t20199\t20204\t0.294411\n+1\t20204\t20246\t0.164513\n+1\t20246\t20737\t0.294411\n+1\t20737\t20749\t0.164513\n+1\t20749\t20879\t0.294411\n+1\t20879\t20880\t0.164513\n+1\t20880\t20950\t0.294411\n+1\t20950\t21004\t0.164513\n+1\t21004\t21028\t0.074636\n+1\t21028\t21043\t0.164513\n+1\t21043\t21563\t0.294411\n+1\t21563\t21611\t0.164513\n+1\t21611\t21627\t0.294411\n+1\t21627\t21639\t0.164513\n+1\t21639\t21645\t0.294411\n+1\t21645\t21656\t0.164513\n+1\t21656\t21849\t0.294411\n+1\t21849\t21875\t0.164513\n+1\t21875\t21876\t0.294411\n+1\t21876\t21877\t0.164513\n+1\t21877\t21952\t0.294411\n+'..b'8464\t0.074636\n+1\t38464\t38528\t0.061011\n+1\t38528\t38603\t0.074636\n+1\t38603\t38618\t0.061011\n+1\t38618\t38693\t0.074636\n+1\t38693\t38730\t0.061011\n+1\t38730\t38805\t0.074636\n+1\t38805\t38808\t0.061011\n+1\t38808\t38883\t0.074636\n+1\t38883\t38907\t0.061011\n+1\t38907\t39016\t0.074636\n+1\t39016\t39146\t0.061011\n+1\t39146\t39221\t0.074636\n+1\t39221\t39263\t0.061011\n+1\t39263\t39457\t0.074636\n+1\t39457\t39568\t0.061011\n+1\t39568\t39643\t0.074636\n+1\t39643\t39660\t0.061011\n+1\t39660\t39735\t0.074636\n+1\t39735\t40310\t0.061011\n+1\t40310\t40539\t0.074636\n+1\t40539\t45275\t0.061011\n+1\t45275\t45421\t0.074636\n+1\t45421\t46259\t0.061011\n+1\t46259\t46334\t0.074636\n+1\t46334\t48954\t0.061011\n+1\t48954\t49029\t0.074636\n+1\t49029\t49074\t0.061011\n+1\t49074\t49149\t0.074636\n+1\t49149\t49824\t0.061011\n+1\t49824\t49899\t0.074636\n+1\t49899\t49923\t0.061011\n+1\t49923\t49998\t0.074636\n+1\t49998\t51613\t0.061011\n+1\t51613\t51697\t0.074636\n+1\t51697\t53048\t0.061011\n+1\t53048\t53067\t0.487112\n+1\t53067\t53347\t0.061011\n+1\t53347\t53422\t0.074636\n+1\t53422\t53451\t0.061011\n+1\t53451\t53526\t0.074636\n+1\t53526\t54829\t0.061011\n+1\t54829\t54933\t0.487112\n+1\t54933\t64424\t0.061011\n+1\t64424\t64499\t0.074636\n+1\t64499\t69090\t0.061011\n+1\t69090\t70005\t0.487112\n+1\t70005\t73583\t0.061011\n+1\t73583\t73658\t0.074636\n+1\t73658\t73694\t0.061011\n+1\t73694\t73769\t0.074636\n+1\t73769\t74399\t0.061011\n+1\t74399\t74474\t0.074636\n+1\t74474\t74573\t0.061011\n+1\t74573\t74683\t0.074636\n+1\t74683\t75347\t0.061011\n+1\t75347\t75422\t0.074636\n+1\t75422\t76321\t0.061011\n+1\t76321\t76396\t0.074636\n+1\t76396\t82816\t0.061011\n+1\t82816\t82891\t0.074636\n+1\t82891\t87331\t0.061011\n+1\t87331\t87431\t0.074636\n+1\t87431\t87451\t0.061011\n+1\t87451\t87540\t0.074636\n+1\t87540\t87583\t0.061011\n+1\t87583\t87671\t0.074636\n+1\t87671\t87717\t0.061011\n+1\t87717\t87803\t0.074636\n+1\t87803\t87854\t0.061011\n+1\t87854\t87943\t0.074636\n+1\t87943\t87970\t0.061011\n+1\t87970\t88168\t0.074636\n+1\t88168\t88221\t0.061011\n+1\t88221\t88296\t0.074636\n+1\t88296\t88313\t0.061011\n+1\t88313\t88388\t0.074636\n+1\t88388\t88464\t0.061011\n+1\t88464\t88625\t0.074636\n+1\t88625\t88635\t0.164513\n+1\t88635\t88815\t0.074636\n+1\t88815\t88851\t0.061011\n+1\t88851\t89035\t0.074636\n+1\t89035\t89044\t0.061011\n+1\t89044\t89148\t0.074636\n+1\t89148\t89154\t0.061011\n+1\t89154\t89299\t0.074636\n+1\t89299\t89302\t0.061011\n+1\t89302\t89514\t0.074636\n+1\t89514\t89521\t0.061011\n+1\t89521\t89556\t0.074636\n+1\t89556\t89601\t0.164513\n+1\t89601\t89755\t0.074636\n+1\t89755\t89766\t0.061011\n+1\t89766\t89909\t0.074636\n+1\t89909\t89950\t0.061011\n+1\t89950\t90096\t0.074636\n+1\t90096\t90103\t0.061011\n+1\t90103\t90237\t0.074636\n+1\t90237\t90238\t0.061011\n+1\t90238\t90416\t0.074636\n+1\t90416\t90455\t0.164513\n+1\t90455\t90565\t0.074636\n+1\t90565\t90582\t0.164513\n+1\t90582\t90786\t0.074636\n+1\t90786\t90822\t0.061011\n+1\t90822\t91089\t0.074636\n+1\t91089\t91363\t0.061011\n+1\t91363\t91400\t0.074636\n+1\t91400\t91584\t0.070351\n+1\t91584\t91600\t0.055872\n+1\t91600\t91698\t0.061011\n+1\t91698\t91773\t0.074636\n+1\t91773\t92089\t0.061011\n+1\t92089\t92183\t0.074636\n+1\t92183\t92227\t0.164513\n+1\t92227\t92585\t0.074636\n+1\t92585\t92694\t0.061011\n+1\t92694\t92769\t0.074636\n+1\t92769\t93882\t0.061011\n+1\t93882\t93957\t0.074636\n+1\t93957\t94133\t0.061011\n+1\t94133\t94208\t0.074636\n+1\t94208\t94336\t0.061011\n+1\t94336\t94412\t0.074636\n+1\t94412\t94418\t0.061011\n+1\t94418\t94517\t0.074636\n+1\t94517\t94557\t0.061011\n+1\t94557\t94632\t0.074636\n+1\t94632\t94734\t0.061011\n+1\t94734\t94809\t0.074636\n+1\t94809\t95290\t0.061011\n+1\t95290\t95365\t0.074636\n+1\t95365\t95374\t0.061011\n+1\t95374\t95449\t0.074636\n+1\t95449\t95453\t0.061011\n+1\t95453\t95692\t0.074636\n+1\t95692\t96458\t0.061011\n+1\t96458\t96534\t0.074636\n+1\t96534\t96644\t0.061011\n+1\t96644\t96719\t0.074636\n+1\t96719\t96751\t0.061011\n+1\t96751\t96860\t0.074636\n+1\t96860\t97057\t0.061011\n+1\t97057\t97442\t0.074636\n+1\t97442\t97698\t0.061011\n+1\t97698\t97782\t0.074636\n+1\t97782\t97801\t0.061011\n+1\t97801\t97907\t0.074636\n+1\t97907\t98141\t0.061011\n+1\t98141\t98216\t0.074636\n+1\t98216\t98247\t0.061011\n+1\t98247\t98378\t0.074636\n+1\t98378\t98392\t0.061011\n+1\t98392\t98542\t0.074636\n+1\t98542\t98780\t0.061011\n+1\t98780\t98855\t0.074636\n+1\t98855\t98939\t0.061011\n+1\t98939\t99014\t0.074636\n+1\t99014\t99043\t0.061011\n+1\t99043\t99118\t0.074636\n+1\t99118\t99203\t0.061011\n+1\t99203\t99330\t0.074636\n+1\t99330\t99762\t0.061011\n+1\t99762\t99843\t0.074636\n+1\t99843\t99846\t0.061011\n+1\t99846\t100000\t0.074636\n' |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/query.vcf.gz |
b |
Binary file test-data/query.vcf.gz has changed |
b |
diff -r 000000000000 -r fb20fa735dfe test-data/vcfanno_result.vcf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/vcfanno_result.vcf Thu Jan 21 10:33:49 2021 +0000 |
b |
b'@@ -0,0 +1,487 @@\n+##fileformat=VCFv4.1\n+##contig=<ID=1>\n+##contig=<ID=10>\n+##contig=<ID=11>\n+##contig=<ID=12>\n+##contig=<ID=13>\n+##contig=<ID=14>\n+##contig=<ID=15>\n+##contig=<ID=16>\n+##contig=<ID=17>\n+##contig=<ID=18>\n+##contig=<ID=19>\n+##contig=<ID=2>\n+##contig=<ID=20>\n+##contig=<ID=21>\n+##contig=<ID=22>\n+##contig=<ID=3>\n+##contig=<ID=4>\n+##contig=<ID=5>\n+##contig=<ID=6>\n+##contig=<ID=7>\n+##contig=<ID=8>\n+##contig=<ID=9>\n+##contig=<ID=GL000191.1>\n+##contig=<ID=GL000192.1>\n+##contig=<ID=GL000193.1>\n+##contig=<ID=GL000194.1>\n+##contig=<ID=GL000195.1>\n+##contig=<ID=GL000196.1>\n+##contig=<ID=GL000197.1>\n+##contig=<ID=GL000198.1>\n+##contig=<ID=GL000199.1>\n+##contig=<ID=GL000200.1>\n+##contig=<ID=GL000201.1>\n+##contig=<ID=GL000202.1>\n+##contig=<ID=GL000203.1>\n+##contig=<ID=GL000204.1>\n+##contig=<ID=GL000205.1>\n+##contig=<ID=GL000206.1>\n+##contig=<ID=GL000207.1>\n+##contig=<ID=GL000208.1>\n+##contig=<ID=GL000209.1>\n+##contig=<ID=GL000210.1>\n+##contig=<ID=GL000211.1>\n+##contig=<ID=GL000212.1>\n+##contig=<ID=GL000213.1>\n+##contig=<ID=GL000215.1>\n+##contig=<ID=GL000216.1>\n+##contig=<ID=GL000217.1>\n+##contig=<ID=GL000218.1>\n+##contig=<ID=GL000219.1>\n+##contig=<ID=GL000221.1>\n+##contig=<ID=GL000222.1>\n+##contig=<ID=GL000223.1>\n+##contig=<ID=GL000224.1>\n+##contig=<ID=GL000225.1>\n+##contig=<ID=GL000227.1>\n+##contig=<ID=GL000228.1>\n+##contig=<ID=GL000230.1>\n+##contig=<ID=GL000231.1>\n+##contig=<ID=GL000233.1>\n+##contig=<ID=GL000235.1>\n+##contig=<ID=GL000236.1>\n+##contig=<ID=GL000238.1>\n+##contig=<ID=GL000240.1>\n+##contig=<ID=GL000242.1>\n+##contig=<ID=GL000243.1>\n+##contig=<ID=GL000244.1>\n+##contig=<ID=GL000246.1>\n+##contig=<ID=GL000247.1>\n+##contig=<ID=GL000248.1>\n+##contig=<ID=GL000249.1>\n+##contig=<ID=MT>\n+##contig=<ID=X>\n+##contig=<ID=Y>\n+##FILTER=<ID=PASS,Description="All filters passed">\n+##INFO=<ID=AB,Number=A,Type=Float,Description="Allele balance at heterozygous sites: a number between 0 and 1 representing the ratio of reads showing the reference allele to all reads, considering only reads from individuals called as heterozygous">\n+##INFO=<ID=ABP,Number=A,Type=Float,Description="Allele balance probability at heterozygous sites: Phred-scaled upper-bounds estimate of the probability of observing the deviation between ABR and ABA given E(ABR/ABA) ~ 0.5, derived using Hoeffding\'s inequality">\n+##INFO=<ID=AC,Number=A,Type=Integer,Description="Total number of alternate alleles in called genotypes">\n+##INFO=<ID=AC_AFR,Number=A,Type=Integer,Description="African/African American Allele Counts (from input_0.vcf.gz)">\n+##INFO=<ID=AC_AMR,Number=A,Type=Integer,Description="American Allele Counts (from input_0.vcf.gz)">\n+##INFO=<ID=AC_EAS,Number=A,Type=Integer,Description="East Asian Allele Counts (from input_0.vcf.gz)">\n+##INFO=<ID=AF,Number=A,Type=Float,Description="Estimated allele frequency in the range (0,1]">\n+##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes">\n+##INFO=<ID=AO,Number=A,Type=Integer,Description="Alternate allele observations, with partial observations recorded fractionally">\n+##INFO=<ID=CIGAR,Number=A,Type=String,Description="The extended CIGAR representation of each alternate allele, with the exception that \'=\' is replaced by \'M\' to ease VCF parsing. Note that INDEL alleles do not have the first matched base (which is provided by default, per the spec) referred to by the CIGAR.">\n+##INFO=<ID=CSQ,Number=.,Type=String,Description="Consequence type as predicted by VEP. Format: Consequence|Codons|Amino_acids|Gene|SYMBOL|Feature|EXON|PolyPhen|SIFT|Protein_position|BIOTYPE">\n+##INFO=<ID=DP,Number=1,Type=Integer,Description="Total read depth at the locus">\n+##INFO=<ID=DPB,Number=1,Type=Float,Description="Total read depth per bp at the locus; bases in reads overlapping / bases in haplotype">\n+##INFO=<ID=DPRA,Number=A,Type=Float,Description="Alternate allele depth ratio. Ratio between depth in samples with each called alternate allele and those without.">\n+##INFO=<ID=EFF,Number=.,Type=String,'..b'6471;AN=34;AO=101;CIGAR=1X;TYPE=snp;mapq=33.5;coverage=4;xdp2=4,0\tGT:DP:RO:QR:AO:QA:GL\t0/1:94:76:2505:18:295:-10,0,-10\t0/0:22:20:520:2:37:0,-0.744048,-10\t0/0:48:39:1379:9:107:-4.52401,0,-10\n+1\t94824\t.\tC\tT\t6727.2\t.\tAB=0.423369;ABP=36.6236;AC=17;AF=0.5;AN=34;AO=279;CIGAR=1X;TYPE=snp;mapq=33.5;coverage=4;xdp2=4,0\tGT:DP:RO:QR:AO:QA:GL\t0/1:107:78:2566:29:706:-10,0,-10\t0/1:26:19:535:7:195:-10,0,-10\t0/1:48:32:1112:16:437:-10,0,-10\n+1\t94861\t.\tG\tT\t35.0\t.\tAB=0.4;ABP=3.87889;AC=1;AF=0.0294118;AN=34;AO=6;CIGAR=1X;TYPE=snp;mapq=37;coverage=1;xdp2=1,0\tGT:DP:RO:QR:AO:QA:GL\t0/0:56:53:1764:0:0:0,-10,-10\t0/1:10:6:174:4:132:-10,0,-10\t0/0:24:21:714:0:0:0,-6.32163,-10\n+1\t94893\t.\tA\tG\t35.0\t.\tAB=1;ABP=11.6962;AC=1;AF=0.0357143;AN=28;AO=15;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:68:68:2470:0:0:0,-10,-10\t0/1:4:0:0:4:135:-10,-1.20412,0\t0/0:27:25:880:2:23:0,-3.3975,-10\n+1\t94991\t.\tG\tA\t683.9\t.\tAB=0.351351;ABP=17.2129;AC=2;AF=0.111111;AN=18;AO=26;CIGAR=1X;TYPE=snp;mapq=40.1429;coverage=7;xdp2=3,4\tGT:DP:RO:QR:AO:QA:GL\t0/1:74:48:1608:26:918:-10,0,-10\t.:.:.:.:.:.:.\t0/0:26:26:868:0:0:0,-7.82678,-10\n+1\t95006\t.\tA\tT\t1209.5\t.\tAB=0.274611;ABP=88.1703;AC=16;AF=0.470588;AN=34;AO=71;CIGAR=1X;TYPE=snp;mapq=39;coverage=2;xdp2=1,1\tGT:DP:RO:QR:AO:QA:GL\t0/0:86:83:2850:3:106:0,-10,-10\t0/1:4:0:0:4:152:-10,-1.20412,0\t0/1:33:29:1025:4:128:-6.51795,0,-10\n+1\t95011\t.\tT\tG\t674.6\t.\tAB=0.47619;ABP=3.94093;AC=12;AF=0.352941;AN=34;AO=111;CIGAR=1X1M;TYPE=snp;mapq=21.6667;coverage=3;xdp2=2,1\tGT:DP:RO:QR:AO:QA:GL\t0/0:84:79:2791:3:19:0,-10,-10\t0/1:10:3:49:6:64:-4.76644,0,-3.48501\t0/0:34:29:1054:3:26:0,-3.75548,-10\n+1\t95054\t.\tG\tA\t201.1\t.\tAB=0.25;ABP=24.725;AC=1;AF=0.0294118;AN=34;AO=10;CIGAR=1X;TYPE=snp;mapq=28.6667;coverage=3;xdp2=1,2\tGT:DP:RO:QR:AO:QA:GL\t0/0:85:85:2938:0:0:0,-10,-10\t0/0:16:16:558:0:0:0,-4.81648,-10\t0/0:49:49:1618:0:0:0,-10,-10\n+1\t95611\t.\tG\tA\t36.8\t.\tAB=0.235294;ABP=13.3567;AC=1;AF=0.0294118;AN=34;AO=4;CIGAR=1X;TYPE=snp;mapq=20;coverage=3;xdp2=3,0\tGT:DP:RO:QR:AO:QA:GL\t0/0:17:17:620:0:0:0,-5.11751,-10\t0/0:2:2:70:0:0:0,-0.60206,-6.65\t0/0:7:7:252:0:0:0,-2.10721,-10\n+1\t96594\t.\tC\tT\t953.0\t.\tAB=0.355556;ABP=19.3205;AC=2;AF=0.111111;AN=18;AO=32;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/1:90:58:2040:32:1200:-10,0,-10\t.:.:.:.:.:.:.\t0/0:18:18:623:0:0:0,-5.41854,-10\n+1\t97164\t.\tA\tG\t353.7\t.\tAB=0;ABP=0;AC=12;AF=1;AN=12;AO=12;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t1/1:3:0:0:3:102:-9.52,-0.90309,0\t.:.:.:.:.:.:.\t1/1:1:0:0:1:35:-3.5,-0.30103,0\n+1\t97587\t.\tG\tC\t303.7\t.\tAB=0.285714;ABP=19.7617;AC=1;AF=0.05;AN=20;AO=12;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/1:42:30:1120:12:451:-10,0,-10\t0/0:1:1:40:0:0:0,-0.30103,-4\t0/0:21:21:796:0:0:0,-6.32163,-10\n+1\t97661\t.\tT\tC\t33.4\t.\tAB=0.3;ABP=6.48466;AC=1;AF=0.0333333;AN=30;AO=5;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:19:18:629:1:41:0,-0.340816,-10\t0/0:2:2:74:0:0:0,-0.60206,-7.03\t0/0:8:8:292:0:0:0,-2.40824,-10\n+1\t97937\t.\tT\tA\t12.3\t.\tAB=0.428571;ABP=3.32051;AC=2;AF=0.0588235;AN=34;AO=5;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:26:26:899:0:0:0,-7.82678,-10\t0/0:3:3:113:0:0:0,-0.90309,-10\t0/0:7:7:248:0:0:0,-2.10721,-10\n+1\t97953\t.\tA\tG\t1000.6\t.\tAB=0.401709;ABP=12.8283;AC=13;AF=0.382353;AN=34;AO=48;CIGAR=1X;TYPE=snp;mapq=20.5;coverage=2;xdp2=2,0\tGT:DP:RO:QR:AO:QA:GL\t0/0:32:32:1102:0:0:0,-9.63296,-10\t0/1:6:4:155:2:77:-6.68491,0,-10\t0/0:10:10:355:0:0:0,-3.0103,-10\n+1\t98683\t.\tG\tA\t610.5\t.\tAB=0.282443;ABP=56.8661;AC=11;AF=0.34375;AN=32;AO=45;CIGAR=1X;TYPE=snp;AC_AFR=0;AC_AMR=0;AC_EAS=0\tGT:DP:RO:QR:AO:QA:GL\t0/0:73:71:2641:2:78:0,-10,-10\t0/0:1:0:0:1:34:-3.4,-0.30103,0\t0/1:33:29:1059:4:139:-7.53545,0,-10\n+1\t98688\t.\tG\t<DEL>\t610.5\t.\tCIEND=-4,2;SVLEN=10;AB=0.282443;ABP=56.8661;AC=11;AF=0.34375;AN=32;AO=45;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:73:71:2641:2:78:0,-10,-10\t0/0:1:0:0:1:34:-3.4,-0.30103,0\t0/1:33:29:1059:4:139:-7.53545,0,-10\n+2\t98688\t.\tG\t<DEL>\t610.5\t.\tCIEND=-4,2;SVLEN=10;AB=0.282443;ABP=56.8661;AC=11;AF=0.34375;AN=32;AO=45;CIGAR=1X;TYPE=snp\tGT:DP:RO:QR:AO:QA:GL\t0/0:73:71:2641:2:78:0,-10,-10\t0/0:1:0:0:1:34:-3.4,-0.30103,0\t0/1:33:29:1059:4:139:-7.53545,0,-10\n' |
b |
diff -r 000000000000 -r fb20fa735dfe vcfanno.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vcfanno.xml Thu Jan 21 10:33:49 2021 +0000 |
[ |
b'@@ -0,0 +1,266 @@\n+<?xml version="1.0"?>\n+<tool id="vcfanno" name="vcfanno" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">\n+ <description>VCF annotation</description>\n+ <macros>\n+ <import>macros.xml</import>\n+ </macros>\n+\n+ <expand macro="xrefs"/>\n+\n+ <expand macro="requirements"/>\n+\n+ <expand macro="version_command"/>\n+\n+ <!--\n+ In future versions - figure out how to safely add in lua support without posing security risk\n+ (Should be doable but requires writing some lua unfortunately to make custom sandboxes)\n+ -->\n+ <command detect_errors="exit_code"><![CDATA[\n+ ln -s \'$config_toml\' config.toml &&\n+ ln -s \'$input_vcf\' input.vcf &&\n+\n+ #for $i, $annotation in enumerate($annotations):\n+ #set $ext = str($annotation.type.type_select)\n+ ln -s \'$annotation.type.annotation\' \'input_${i}.${ext}\' &&\n+ ### These sets of conversions etc shouldn\'t be necessary but the vcfanno in Galaxy looks for an index file regardless of compression for some reason and if not present fails.\n+ #if $ext == \'vcf\' or $ext == \'bed\':\n+ bgzip \'input_${i}.${ext}\' &&\n+ #set $ext = $ext + ".gz"\n+ #end if\n+ #if \'.gz\' in $ext[-3:]:\n+ tabix -p vcf \'input_${i}.${ext}\' &&\n+ #elif $ext == \'bam\':\n+ ln -s \'${annotation.type.annotation.metadata.bam_index}\' input_${i}.bam.bai &&\n+ #end if\n+ #end for\n+ vcfanno -p \\${GALAXY_SLOTS:-4}\n+#if $ends:\n+ \'$ends\'\n+#end if\n+#if $permissive_overlap:\n+ \'$permissive_overlap\'\n+#end if\n+ config.toml\n+ input.vcf\n+ >\n+ \'$out_vcf\'\n+ ]]></command>\n+ <configfiles>\n+ <configfile name="config_toml">#\n+#for $i, $annotation in enumerate($annotations):\n+ #set $ext = $annotation.type.type_select\n+ #if $ext == \'vcf\' or $ext == \'bed\':\n+ #set $ext = $ext + ".gz"\n+ #end if\n+ #if $ext == \'vcf.gz\' or $ext == \'bam\':\n+ #set $annotation_names = list()\n+ #set $annotation_fields = list()\n+ #set $annotation_ops = list()\n+ #for $field in $annotation.type.fields:\n+ #silent $annotation_names.append(\'"%s"\' %(str($field.name)))\n+ #silent $annotation_fields.append(\'"%s"\' %(str($field.field)))\n+ #silent $annotation_ops.append(\'"%s"\' %(str($field.op)))\n+ #end for\n+ #set $names = "names= [%s]" % (", ".join($annotation_names))\n+ #set $fields = "fields= [%s]" % (", ".join($annotation_fields))\n+ #set $ops = "ops= [%s]" % (", ".join($annotation_ops))\n+ #elif $ext == \'bed.gz\':\n+ #set $annotation_names = list()\n+ #set $annotation_columns = list()\n+ #set $annotation_ops = list()\n+ #for $field in $annotation.type.fields:\n+ #silent $annotation_names.append(\'"%s"\' %(str($field.name)))\n+ #silent $annotation_columns.append( str($field.columns))\n+ #silent $annotation_ops.append(\'"%s"\' %(str($field.op)))\n+ #end for\n+ #set $names = "names= [%s]" % (", ".join($annotation_names))\n+ #set $fields = "columns= [%s]" % (", ".join($annotation_columns))\n+ #set $ops = "ops= [%s]" % (", ".join($annotation_ops))\n+ #end if \n+[[annotation]]\n+file="input_${i}.${ext}"\n+${names}\n+${fields}\n+${ops}\n+\n+#end for\n+ </configfile>\n+ </configfiles>\n+ <inputs>\n+ <param name="input_vcf" type="data" format="vcf,vcf_bgzip" label="VCF to be annotated"/>\n+ <param argument="-ends" type="boolean" checked="false" truevalue="-ends" falsevalue="" label="annotate the start and end as well as the interval itself?"/>\n+ <param argument="-permissive-overlap" type="boolean" checked="false" truevalue="-permissive-overlap" falsevalue="" label="annotate with an overlapping variant even it doesn\'t share the same ref and alt alleles." help="Default is to require exact match between variants."/>\n+ <repeat name="annotations" title="Input annotations" min="1">\n+ <conditional '..b' <param name="field" value="AC_AFR" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="AC_AMR" />\n+ <param name="field" value="AC_AMR" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="AC_EAS" />\n+ <param name="field" value="AC_EAS" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="ID" />\n+ <param name="field" value="ID" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ </conditional>\n+ </repeat>\n+ <repeat name="annotations">\n+ <conditional name="type">\n+ <param name="type_select" value="bam" />\n+ <param name="annotation" value="ex.bam" />\n+ <repeat name="fields">\n+ <param name="name" value="mapq" />\n+ <param name="field" value="mapq" />\n+ <param name="op" value="mean" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="coverage" />\n+ <param name="field" value="coverage" />\n+ <param name="op" value="sum" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="xdp2" />\n+ <param name="field" value="DP2" />\n+ <param name="op" value="self" />\n+ </repeat>\n+ </conditional>\n+ </repeat>\n+ <repeat name="annotations">\n+ <conditional name="type">\n+ <param name="type_select" value="bed" />\n+ <param name="annotation" value="fitcons.bed" />\n+ <repeat name="fields">\n+ <param name="name" value="lua_start" />\n+ <param name="columns" value="4" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="lua_end" />\n+ <param name="columns" value="4" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="lua_len" />\n+ <param name="columns" value="4" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="lua_mean" />\n+ <param name="columns" value="4" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ <repeat name="fields">\n+ <param name="name" value="lua_loc" />\n+ <param name="columns" value="4" />\n+ <param name="op" value="first" />\n+ </repeat>\n+ </conditional>\n+ </repeat>\n+ <output name="out_vcf" file="vcfanno_result.vcf"/>\n+ </test>\n+ </tests>\n+ <help><![CDATA[\n+.. class:: infomark\n+\n+**What it does**\n+\n+@WID@\n+\n+Note this version of vcfanno does not support lua code functionality\n+\n+**Input**\n+\n+- VCF file to be annotated\n+\n+- BAM / BED / VCF files to annotate with\n+\n+**Output**\n+\n+- Annotated VCF\n+\n+**References**\n+\n+@REFERENCES@\n+ ]]></help>\n+ <expand macro="citations"/>\n+</tool>\n' |