CFSAN-Biostatistics / shigatyper

CFSAN Shigella Typing Pipeline
Other
14 stars 6 forks source link

Boydii serotypes 6 and 10 depth issues #17

Closed gerisullivan closed 8 months ago

gerisullivan commented 8 months ago

Hi,

I have a Shigella boydii serotype 10 and it ran into python errors in the script.

When the wbaM depth is a double digit, the int(i) for i in a loop treats each digit separately and spits out an error with new line characters. This was fixed when I did a split of a with newline characters:

a = a.split("\n")
a = [int(i) for i in a]; average_a = sum(a)/len(a)

This will need to be implemented for a, b, c and d.

gerisullivan commented 8 months ago

Apologies, my version is not up to date and this has been implemented!