Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nickjcroucher/gubbins
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Jun 7, 2024
2 parents b5fdf82 + cc72c81 commit 15a0c3e
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies with conda
Expand All @@ -25,9 +25,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies with conda
Expand All @@ -40,6 +40,6 @@ jobs:
run: |
source $CONDA/etc/profile.d/conda.sh && conda activate gubbins_env && export LDFLAGS="-L${CONDA_PREFIX}/lib/ -Wl,-rpath,${CONDA_PREFIX}/lib/ --coverage" && export CFLAGS="-I${CONDA_PREFIX}/include/ --coverage" && export PATH=$PATH:/lib/python3.9/site-packages/ && export NUMBA_DISABLE_JIT=1 && autoreconf -i && ./configure --prefix=$CONDA_PREFIX --exec_prefix $CONDA_PREFIX -enable-code-coverage CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --host=x86_64-linux-gnu --build=x86_64-linux-gnu && make && make install && export CODE_COVERAGE_OUTPUT_FILE="gubbins_coverage.info" && make check && make check-code-coverage
- name: Upload python code coverage analysis
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
files: ./python/coverage.xml,gubbins_coverage.info
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1
3.3.5
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ channels:
- r
dependencies:
# python
- python>=3.8
- python>=3.8,<3.11
# installation
- autoconf
- automake
Expand Down
3 changes: 3 additions & 0 deletions python/gubbins/PreProcessFasta.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8

import sys
import hashlib
from Bio import AlignIO
Expand Down
3 changes: 3 additions & 0 deletions python/gubbins/ValidateFastaAlignment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8

import os
import re
import sys
Expand Down
3 changes: 2 additions & 1 deletion python/gubbins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /usr/bin/env python3
#!/usr/bin/env python
# encoding: utf-8

"""
Imports into the `gubbins` namespace all fundamental
Expand Down
4 changes: 3 additions & 1 deletion python/gubbins/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
#
# Wellcome Trust Sanger Institute
# Copyright (C) 2013 Wellcome Trust Sanger Institute
#
Expand Down Expand Up @@ -224,7 +226,7 @@ def parse_and_run(input_args, program_description=""):
printer.print("...done. Run time: {:.2f} s".format(time.time() - start_time))

# Find all SNP sites with Gubbins
gubbins_command = " ".join([gubbins_exec, input_args.alignment_filename])
gubbins_command = f"{gubbins_exec} \"{input_args.alignment_filename}\""
printer.print(["\nRunning Gubbins to detect SNPs...", gubbins_command])
try:
subprocess.check_call(gubbins_command, shell=True)
Expand Down
5 changes: 3 additions & 2 deletions python/gubbins/pyjar.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

#!/usr/bin/env python
# encoding: utf-8
#
# pyjar written by Simon Harris
# code modified from https://github.com/simonrharris/pyjar
# pyjar is free software, licensed under GPLv3.
Expand Down
2 changes: 1 addition & 1 deletion python/gubbins/run_gubbins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# encoding: utf-8
#
# Wellcome Trust Sanger Institute
Expand Down
2 changes: 2 additions & 0 deletions python/gubbins/treebuilders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
#
# Wellcome Trust Sanger Institute
# Copyright (C) 2013 Wellcome Trust Sanger Institute
#
Expand Down
2 changes: 2 additions & 0 deletions python/gubbins/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
#
# Wellcome Trust Sanger Institute
# Copyright (C) 2013 Wellcome Trust Sanger Institute
#
Expand Down

0 comments on commit 15a0c3e

Please sign in to comment.