diff --git a/Model/lib/wdk/model/questions/geneQuestions.xml b/Model/lib/wdk/model/questions/geneQuestions.xml index 7690d0569..d9b5e1ac1 100644 --- a/Model/lib/wdk/model/questions/geneQuestions.xml +++ b/Model/lib/wdk/model/questions/geneQuestions.xml @@ -931,6 +931,54 @@ In the analysis carried out by Alsford et al., pseudogenes, genes annotated as " + + + + + + + + + + + + + + + + + + + + + + + + + $$sequence_id$$:$$cluster_start$$-$$cluster_end$$ + ]]> + + + + + + + + + + diff --git a/Model/lib/wdk/model/questions/params/geneParams.xml b/Model/lib/wdk/model/questions/params/geneParams.xml index fa686ea6a..6d05bb687 100644 --- a/Model/lib/wdk/model/questions/params/geneParams.xml +++ b/Model/lib/wdk/model/questions/params/geneParams.xml @@ -5104,6 +5104,29 @@ products of your selected type (or types).

+ + + Select one or more secondary metabolite cluster categories. + + + + + Select an annotation. Options filter based on the selected category. + + + @@ -9711,6 +9734,62 @@ end as term + + + + + + + + + + + + + + + + + + + + + diff --git a/Model/lib/wdk/model/questions/params/organismParams.xml b/Model/lib/wdk/model/questions/params/organismParams.xml index 5fb56512b..d3dae0663 100644 --- a/Model/lib/wdk/model/questions/params/organismParams.xml +++ b/Model/lib/wdk/model/questions/params/organismParams.xml @@ -438,6 +438,21 @@ + + Select the organism(s) to search. + + pruneNodesWithSingleExtendingChild + showOnlyPreferredOrganisms + + + @@ -1170,6 +1185,31 @@ + + + + + + + + + diff --git a/Model/lib/wdk/model/questions/queries/geneQueries.xml b/Model/lib/wdk/model/questions/queries/geneQueries.xml index c0163792a..6202067fe 100644 --- a/Model/lib/wdk/model/questions/queries/geneQueries.xml +++ b/Model/lib/wdk/model/questions/queries/geneQueries.xml @@ -5769,6 +5769,85 @@ select distinct ta.gene_source_id + + + + + + + + + + + + + + + + + + + + ', + gc2.sequence_id, ':', gc2.cluster_start, '-', gc2.cluster_end, '' + ), + ', ' ORDER BY gc2.cluster_start + ) AS overlapping_clusters + FROM ranked r + JOIN gene_clusters gc2 + ON gc2.source_id = r.source_id + AND gc2.antismash_cluster_id != r.antismash_cluster_id + WHERE r.rn = 1 + GROUP BY r.source_id + ) + SELECT r.source_id, r.gene_source_id, r.project_id, + 10 AS wdk_weight, 'Y' AS matched_result, + r.category, r.antismash_annotation, r.cluster_start, r.cluster_end, r.sequence_id, + r.org_abbrev, + GREATEST(r.cluster_start - 1000, 1) AS cluster_context_start, + r.cluster_end + 1000 AS cluster_context_end, + COALESCE(go.overlapping_clusters, 'No') AS overlapping_clusters + FROM ranked r + LEFT JOIN gene_overlaps go ON go.source_id = r.source_id + WHERE r.rn = 1 + ]]> + + +