metageni / SUPER-FOCUS

A tool for agile functional analysis of shotgun metagenomic data
GNU General Public License v3.0
21 stars 12 forks source link

divide by zero error #25

Closed linsalrob closed 5 years ago

linsalrob commented 5 years ago

There is a divide by zero error when you have many samples that have different ss levels and one or a few that do not.

In this line:

relative_abundance = list((level_results[level]/normalizer) * 100)

normalizer is a numpy array that may contain zero's.