Skip to content

Commit

Permalink
add 20A-I
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Lorenz-dev committed Jul 22, 2024
1 parent 346051c commit 96aa780
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions database/meta.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
19FIII 19F 19FIII 1 ref
19FIV 19F 19FIV 1 ref
20A 20A 20A 1 ref
20AI 20A 20AI 1 ref
20B 20A 20B 1 ref
21 21 21 1 ref
22A 22A 22A 1 ref
Expand Down
2 changes: 2 additions & 0 deletions database/reference.fasta

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion database/streptococcus-pneumoniae-ctvdb/reference.fasta

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions seroba/serotyping.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,14 @@ def run(self):
if '24B' in self.sero or '24F' in self.sero or '24C' in self.sero:
fobj.write(header)
fobj.write(f"{self.prefix},24B/24C/24F,24B/24C/24F,{flag}\n")
elif '20' in self.sero:
# early stop codon in whaF leads to no assembly of whaF, check this via file size comparison
gene_size = os.path.getsize(f"{self.prefix}/assembled_genes.fa")
fobj.write(header)
if gene_size == 0:
fobj.write(f"{self.prefix},20A,20A(20A-I),{flag}\n")
else:
fobj.write(f"{self.prefix},{self.sero},{self.sero},{flag}\n")
elif 'possible' in self.sero:
# catch uncertain serogroup 6 calls
fobj.write(header)
Expand Down

0 comments on commit 96aa780

Please sign in to comment.