Skip to content

Commit

Permalink
Closes #6
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
ckopanos committed Apr 13, 2018
1 parent 82263b8 commit f9911da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/varsome_api_annotate_vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
__author__ = 'ckopanos'


def annotate_vcf(argv):
def annotate_vcf():
parser = argparse.ArgumentParser(description='VCF Annotator command line')
parser.add_argument('-k', help='Your key to the API', type=str, metavar='API Key', required=True)
parser.add_argument('-g', help='Reference genome either hg19 or hg38', type=str, metavar='Reference Genome',
Expand Down Expand Up @@ -53,4 +53,4 @@ def annotate_vcf(argv):


if __name__ == "__main__":
annotate_vcf(sys.argv[1:])
annotate_vcf()
4 changes: 2 additions & 2 deletions scripts/varsome_api_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
__author__ = 'ckopanos'


def annotate_variant(argv):
def annotate_variant():
parser = argparse.ArgumentParser(description='Sample VarSome API calls')
parser.add_argument('-k', help='Your key to the API', type=str, metavar='API Key', required=False)
parser.add_argument('-g', help='Reference genome either hg19 or hg38', type=str, metavar='Reference Genome',
Expand Down Expand Up @@ -124,4 +124,4 @@ def annotate_variant(argv):


if __name__ == "__main__":
annotate_variant(sys.argv[1:])
annotate_variant()
2 changes: 1 addition & 1 deletion varsome_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __repr__(self):


class VarSomeAPIClientBase(object):
_api_url = 'https://api.varsome.com'
_api_url = 'https://test-api.varsome.com'
_accepted_methods = ('GET', 'POST')

def __init__(self, api_key=None, logger=None):
Expand Down
2 changes: 1 addition & 1 deletion varsome_api/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __init__(self, methodName='runTest'):
self.annotator = TestVCFAnnotator(API_KEY)

def test_annotate_vcf(self):
"""Check that we can annotate a vcf file"""
"""Check that wepara can annotate a vcf file"""
output_vcf_file = NamedTemporaryFile(delete=False)
output_vcf_file.close()
self.annotator.annotate(VARIANTS_VCF_FILE, output_vcf_file.name)
Expand Down

0 comments on commit f9911da

Please sign in to comment.