Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix/index-bgc-count #257

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions big_scape/output/html_template/output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,11 @@ <h3>Network</h3>
// pie chart: BGC per Accession
gbk_org_data = window.db.exec(`SELECT gbk.organism, COUNT(gbk.organism) FROM gbk
INNER JOIN bgc_record ON bgc_record.gbk_id==gbk.id
INNER JOIN bgc_record_family ON bgc_record.id==bgc_record_family.record_id
INNER JOIN family ON bgc_record_family.family_id==family.id
WHERE family.run_id==${run_id} AND family.cutoff==${cutoff}
WHERE bgc_record.id IN (
SELECT bgc_record_family.record_id FROM bgc_record_family
INNER JOIN family ON bgc_record_family.family_id==family.id
WHERE family.run_id==${run_id} AND family.cutoff==${cutoff}
)
GROUP BY gbk.organism`)[0]
if (gbk_org_data === undefined) {
throw Error("There were no networks created in this run;\nPlease select another run from the dropdown menu")
Expand Down Expand Up @@ -978,9 +980,11 @@ <h3>Network</h3>
});
// pie chart: BGC per Class
bgc_class_data = window.db.exec(`SELECT bgc_record.product, COUNT(bgc_record.product) as c
FROM bgc_record INNER JOIN bgc_record_family ON bgc_record.id==bgc_record_family.record_id
FROM bgc_record WHERE bgc_record.id IN (
SELECT bgc_record_family.record_id FROM bgc_record_family
INNER JOIN family ON bgc_record_family.family_id==family.id
WHERE family.run_id==${run_id} AND family.cutoff==${cutoff}
)
GROUP BY bgc_record.product ORDER BY c DESC`)[0].values
var pieLabels = [];
var pieData = [];
Expand Down
Loading