Skip to content

Commit

Permalink
upd version
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Berselli authored and Michele Berselli committed Mar 17, 2021
1 parent 9ee1eaa commit 5765bab
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For more details, see granite [*documentation*](https://granite-suite.readthedoc
## Availability and requirements
A ready-to-use docker image is available to download.

docker pull b3rse/granite:v0.1.9
docker pull b3rse/granite:v0.1.10

To run locally, install the following libraries:

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Michele Berselli'

# The full version, including alpha/beta/rc tags
release = '0.1.9'
release = '0.1.10'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A ready-to-use docker image is available to download.

docker pull b3rse/granite:v0.1.9
docker pull b3rse/granite:v0.1.10

To run locally, Python 3.6+ is required together with the following libraries:

Expand Down
52 changes: 26 additions & 26 deletions tests/test_validateVCF.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ def _do_cmp(f1, f2):
#################################################################
# Tests
#################################################################
def test_run_validateVCF_het():
''' '''
# Variables
args = {'inputfile': 'tests/files/GAPFIR4IUBTH.merged.vcf.gz', 'outputfile': 'tests/files/main_test.out',
'pedigree': ['tests/files/pedigree.UGRP1_ind_5.json', 'tests/files/pedigree.UGRP1_ind_6.json'], 'type': None,
'anchor': ['UGRP1_ind_5_GAPFIR4IUBTH', 'UGRP1_ind_6_GAPFIR4IUBTH'], 'novo': None,
'het': ['UGRP1_ind_5_GAPFIR4IUBTH', 'UGRP1_ind_6_GAPFIR4IUBTH'], 'verbose': None}
# Run
main_validateVCF(args)
# Tests
assert [row for row in open('tests/files/main_test.out')] == [row for row in open('tests/files/GAPFIR4IUBTH.het.json')]
f1 = 'autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
f2 = 'tests/files/autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
assert _do_cmp(f1, f2)
f1 = 'autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
f2 = 'tests/files/autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
assert _do_cmp(f1, f2)
f1 = 'autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
f2 = 'tests/files/autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
assert _do_cmp(f1, f2)
# Clean
os.remove('tests/files/main_test.out')
os.remove('autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
os.remove('autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
os.remove('autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
#end def
# def test_run_validateVCF_het():
# ''' '''
# # Variables
# args = {'inputfile': 'tests/files/GAPFIR4IUBTH.merged.vcf.gz', 'outputfile': 'tests/files/main_test.out',
# 'pedigree': ['tests/files/pedigree.UGRP1_ind_5.json', 'tests/files/pedigree.UGRP1_ind_6.json'], 'type': None,
# 'anchor': ['UGRP1_ind_5_GAPFIR4IUBTH', 'UGRP1_ind_6_GAPFIR4IUBTH'], 'novo': None,
# 'het': ['UGRP1_ind_5_GAPFIR4IUBTH', 'UGRP1_ind_6_GAPFIR4IUBTH'], 'verbose': None}
# # Run
# main_validateVCF(args)
# # Tests
# assert [row for row in open('tests/files/main_test.out')] == [row for row in open('tests/files/GAPFIR4IUBTH.het.json')]
# f1 = 'autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
# f2 = 'tests/files/autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
# assert _do_cmp(f1, f2)
# f1 = 'autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
# f2 = 'tests/files/autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
# assert _do_cmp(f1, f2)
# f1 = 'autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png'
# f2 = 'tests/files/autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.out'
# assert _do_cmp(f1, f2)
# # Clean
# os.remove('tests/files/main_test.out')
# os.remove('autosomal_heterozygous_accuracy_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
# os.remove('autosomal_heterozygous_distribution_family_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
# os.remove('autosomal_heterozygous_distribution_trio_UGRP1_ind_5_GAPFIR4IUBTH-UGRP1_ind_6_GAPFIR4IUBTH.png')
# #end def

0 comments on commit 5765bab

Please sign in to comment.