Skip to content

Commit

Permalink
Merge pull request #45 from sanger-pathogens/v0.0.11
Browse files Browse the repository at this point in the history
Change mlst columns from int64 to string obj
  • Loading branch information
blue-moon22 authored Aug 3, 2021
2 parents f07cbb6 + 17572c9 commit d5be122
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions bin/combine_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def get_all_content(id, sero_file, res_file_inc, res_file_var, mlst_file, surf_t
mlst['ST'] = mlst['ST'].astype(str)
st_value = 'ST-' + mlst.iloc[0]['ST']
mlst.at[0,'ST'] = st_value
mlst = mlst.astype(str)

# Clean resistance incidence
res_inc = pd.read_csv(res_file_inc, sep='\t', lineterminator='\n')
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Dependencies docker image
process.container = 'quay.io/sangerpathogens/gbs-typer-sanger-nf:v0.0.10'
process.container = 'quay.io/sangerpathogens/gbs-typer-sanger-nf:v0.0.11'

manifest {
homePage = 'https://github.com/sanger-pathogens/GBS-Typer-sanger-nf'
Expand Down
14 changes: 7 additions & 7 deletions tests/combine_results_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ def test_get_all_content(self):
'Sample_id': {0: '25292_2#85'},
'cps_type': {0: 'III'},
'ST': {0: 'ST-1'},
'adhP': {0: 1},
'pheS': {0: 1},
'atr': {0: 2},
'glnA': {0: 1},
'sdhA': {0: 1},
'glcK': {0: 2},
'tkt': {0: 2},
'adhP': {0: '1'},
'pheS': {0: '1'},
'atr': {0: '2'},
'glnA': {0: '1'},
'sdhA': {0: '1'},
'glcK': {0: '2'},
'tkt': {0: '2'},
'23S1': {0: 'pos'},
'23S3': {0: 'pos'},
'CAT': {0: 'neg'},
Expand Down

0 comments on commit d5be122

Please sign in to comment.