Commit e4bc0f36 authored by Penom Nom's avatar Penom Nom
Browse files

Phix bug with non-chimeras and chimeras count.

parent e69ee25b
......@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{if $analyse_results|@count > 1 }
<td>{$sample|get_description:$descriptions}</td>
{/if}
{$nb_reads_sample=$nb_reads_begining+$sample_results["default"].nb_non_chimeras+$sample_results["default"].nb_chimeras}
{$nb_reads_sample=$sample_results["default"].nb_non_chimeras+$sample_results["default"].nb_chimeras}
{$nb_reads_begining=$nb_reads_begining+$nb_reads_sample}
{$nb_reads_end=$nb_reads_end+$sample_results["default"].nb_non_chimeras}
{$filtered=$filtered+$sample_results["default"].nb_chimeras}
......
......@@ -74,11 +74,11 @@ class UsearchChimera (Analysis):
line = line.strip()
matches = re.search("(\d+) chimeras$", line)
if matches is not None:
nb_chimeras = matches.group(0)
nb_chimeras = matches.group(1)
else:
matches = re.search("\d+ non-chimeras", line)
matches = re.search("(\d+) non-chimeras$", line)
if matches is not None:
nb_non_chimeras = matches.group(0)
nb_non_chimeras = matches.group(1)
stderr_fh.close()
return nb_chimeras, nb_non_chimeras
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment