Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.1'
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
sb43 committed Mar 31, 2021
2 parents e158cf4 + 1e01471 commit 33695bd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 190 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ MANIFEST
out*
test.txt
tmpout
tests/test_*/*.vcf
*.log

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

## 1.2.1
* updated documentation and README
## 1.2.0
* Added json config paramter to accept filtering paramaters
* removed commandline paramaters that are now read from config file
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ USER root

MAINTAINER [email protected]

ENV ANNOTATEVCF_VER '1.2.0'
ENV ANNOTATEVCF_VER '1.2.1'

# install system tools
RUN apt-get -yq update
Expand Down Expand Up @@ -40,7 +40,7 @@ RUN pip3 install --install-option="--prefix=$CGP_OPT/python-lib" dist/$(ls -1 di
FROM ubuntu:20.04

LABEL uk.ac.sanger.cgp="Cancer Genome Project, Wellcome Sanger Institute" \
version="1.2.0" \
version="1.2.1" \
description="Tool to perform vcf file annotation"

### security upgrades and cleanup
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ Various exceptions can occur for malformed input files.
* ```input_vcf.gz``` snv or indel vcf file annotated using [VAGrENT]
* ```normal_panel.vcf.gz``` normal panel to tag germline variants [VAGrENT]
* ```lof_genes.txt ``` list of known loss of function [LoF] genes along with previous gene symbols ( to make sure all gene synonyms were matched with input vcf)
* ```consequence types``` lof consequence types to restrict driver gene annotations
* ```filters.json``` filters to be applied during driver annotations ( see default file ```filters.josn``` in config folder)
* ```driver_mutations.tsv.gz``` tab separated driver mutations along with consequence type
* ```info.header``` vcf header INFO line

### outputFormat

* ```<input>.drv.vcf.gz ``` output vcf file with DRV info field and consequence type if known, LoF in case annotated using LoF gene list.
* ```<input>_drv.vcf.gz ``` output vcf file with DRV info field and consequence type if known, LoF in case annotated using LoF gene list.

## INSTALL
Installing via `pip install`. Simply execute with the path to the compiled 'whl' found on the [release page][annotateVcf-releases]:
Expand Down
6 changes: 2 additions & 4 deletions annotate/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ def main():
default=None, help="vcf_file to annotate")

optional.add_argument("-filters", "--vcf_filters", type=str, dest="vcf_filters", required=False,
default=filters_json, help="Include vcf filters \
configuration file in json (param:value) format \
default=filters_json, help="Include vcf filters file in json format \
[please refer bcftools documentation for more details \
: http://samtools.github.io/bcftools/bcftools.html#expressions]")

optional.add_argument("-np", "--normal_panel", type=str, dest="normal_panel", required=False,
default=None, help="normal panel file to flag germline variant sites")

optional.add_argument("-g", "--lof_genes", type=str, dest="lof_genes", required=False,
default=None, help="LoF gene name file to use annotations")
default=None, help="Known LoF genes file to annotate LoF variants")

optional.add_argument("-m", "--mutations", type=str, dest="mutations", required=False,
default=None, help="driver mutations file to use for driver variant annotations")
Expand Down Expand Up @@ -70,6 +69,5 @@ def main():
with formatter.tempdir(outdir_path['outdir']) as base_dir:
annotator.VcfAnnotator(my_formatter, base_dir)


if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

config = {
'version': '1.2.0',
'version': '1.2.1',
'name': 'annotateVcf',
'description': 'Tool to annotate and filter vcf files...',
'author': 'Shriram Bhosle',
Expand Down
97 changes: 0 additions & 97 deletions tests/test_output_no_vaf_vcf/input_genes.vcf

This file was deleted.

84 changes: 0 additions & 84 deletions tests/test_output_no_vaf_vcf/input_genes_lof.vcf

This file was deleted.

0 comments on commit 33695bd

Please sign in to comment.