Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixed bug with negative values in predicted rna features #138

Merged
merged 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
4 widgets/widget.collection_overview.js
@@ -305,6 +305,10 @@
var ann_aa_reads = (ann_reads && (ann_reads > ann_rna_reads)) ? ann_reads - ann_rna_reads : 0;
var unkn_aa_reads = aa_reads - ann_aa_reads;
var unknown_all = raw_seqs - (qc_fail_seqs + unkn_aa_reads + ann_aa_reads + ann_rna_reads);
+ if (raw_seqs < (qc_fail_seqs + ann_rna_reads)) {
+ var diff = (qc_fail_seqs + ann_rna_reads) - raw_seqs;
+ unknown_all = (diff > unknown_all) ? 0 : unknown_all - diff;
+ }
// fuzzy math
if (is_rna) {
qc_fail_seqs = raw_seqs - qc_rna_seqs;
View
4 widgets/widget.metagenome_overview.js
@@ -378,6 +378,10 @@
var ann_aa_reads = (ann_reads && (ann_reads > ann_rna_reads)) ? ann_reads - ann_rna_reads : 0;
var unkn_aa_reads = aa_reads - ann_aa_reads;
var unknown_all = raw_seqs - (qc_fail_seqs + unkn_aa_reads + ann_aa_reads + ann_rna_reads);
+ if (raw_seqs < (qc_fail_seqs + ann_rna_reads)) {
+ var diff = (qc_fail_seqs + ann_rna_reads) - raw_seqs;
+ unknown_all = (diff > unknown_all) ? 0 : unknown_all - diff;
+ }
// fuzzy math
if (is_rna) {
qc_fail_seqs = raw_seqs - qc_rna_seqs;
Something went wrong with that request. Please try again.