Skip to content

Commit

Permalink
Merge pull request #475 from cov-lineages/all_version_dev
Browse files Browse the repository at this point in the history
#467 potential fatovcf version print out
  • Loading branch information
aineniamh authored Jul 14, 2022
2 parents 1ff2899 + bfbf3b9 commit e2afeb8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pangolin/utils/initialising.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ def get_version(programs):
version = output.stdout.strip().split()[-1].strip('()v')
print(f"{program.split()[0]} {version}")

def print_faToVf_version():
output = subprocess.run("faToVcf -verbose=2 -h 2>&1 | grep '#'", shell=True, check=True,
stdout=subprocess.PIPE, encoding='utf-8')
version = output.stdout.split(' ')[-2]
print(f"faToVcf: {version}")

def print_conda_version(pkg_list):
for pkg in pkg_list:
try:
Expand Down Expand Up @@ -233,6 +239,7 @@ def print_versions_exit(config):
print(f"pangolin-assignment: {config[KEY_PANGOLIN_ASSIGNMENT_VERSION]}")
# Print versions of other important tools used by pangolin
get_version(['usher', 'gofasta', 'minimap2'])
print_faToVf_version()
# print_conda_version(['usher', 'ucsc-fatovcf', 'gofasta', 'minimap2'])
sys.exit(0)

Expand Down

0 comments on commit e2afeb8

Please sign in to comment.