Skip to content

Commit

Permalink
Revert "Bump mlst version (#23)" (#24)
Browse files Browse the repository at this point in the history
This reverts commit dbe554b.
  • Loading branch information
dfornika authored May 9, 2024
1 parent dbe554b commit 5d3898c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/data/expected_sequence_types.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sample_id,scheme,sequence_type
NC-000913.3,ecoli_achtman_4,10
NC-016845.1,klebsiella,11
NC-000913.3,ecoli,10
NC-016845.1,kpneumoniae,11
NZ-LR890181.1,cfreundii,8
4 changes: 2 additions & 2 deletions .github/scripts/prepare_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ artifacts_dir="artifacts"

echo "Prepare artifacts .." >> ${artifacts_dir}/test.log

mkdir -p ${artifacts_dir}/assemblies
mkdir -p ${artifacts_dir}/fastq

cp -r .github/data/assemblies/* ${artifacts_dir}/assemblies
mv .github/data/fastq/*.fastq.gz ${artifacts_dir}/fastq

mkdir -p ${artifacts_dir}/pipeline_outputs

Expand Down
10 changes: 5 additions & 5 deletions bin/parse_alleles.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main(args):
if args.sample_id:
sample_id = args.sample_id
else:
sample_id = sample['id']
sample_id = sample

print(','.join([
'sample_id',
Expand All @@ -26,11 +26,11 @@ def main(args):
'score',
]))

if not sample['alleles']:
if not mlst[sample]['alleles']:
continue
num_alleles = len(sample['alleles'])
scheme = sample['scheme']
for locus, allele in sample['alleles'].items():
num_alleles = len(mlst[sample]['alleles'])
scheme = mlst[sample]['scheme']
for locus, allele in mlst[sample]['alleles'].items():
perfect_match = True
novel_allele = False
score = round(90 / num_alleles, 2)
Expand Down
4 changes: 2 additions & 2 deletions environments/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: mlst-nf
name: mlst
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- python=3
- mlst=2.23.0
- mlst=2.16.1
- quast=5.0.2

0 comments on commit 5d3898c

Please sign in to comment.