Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ target

# JBrowse
/Model/lib/jbrowse/auto_generated/
.worktrees
456 changes: 354 additions & 102 deletions Model/lib/dst/antibodyArray.dst

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions Model/lib/wdk/model/records/geneRecord.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,46 @@ name" internal="true"/>
</table>


<table name="EdaAntibodyArrayDatasets"
displayName="Antibody Array Datasets"
inReportMaker="false"
includeProjects="PlasmoDB,UniDB"
queryRef="GeneTables.EdaAntibodyArrayDatasets">

<columnAttribute internal="true" displayName="source_id" name="source_id"/>
<columnAttribute internal="true" displayName="project_id" name="project_id"/>
<columnAttribute internal="true" displayName="project_id_url" name="project_id_url"/>
<columnAttribute internal="true" displayName="graph_ids" name="graph_ids"/>
<columnAttribute internal="true" displayName="genus_species" name="genus_species"/>
<columnAttribute internal="true" displayName="mainOpen" name="mainOpen"/>
<columnAttribute internal="true" displayName="dataOpen" name="dataOpen"/>
<columnAttribute displayName="Name" name="display_name"/>
<columnAttribute internal="true" displayName="description" name="description"/>
<columnAttribute internal="true" displayName="has_graph_data" name="has_graph_data"/>
<columnAttribute internal="true" displayName="has_meta_data" name="has_meta_data"/>
<columnAttribute internal="true" displayName="meta_data_categories" name="meta_data_categories"/>
<columnAttribute internal="true" displayName="dataset_name" name="dataset_name"/>
<columnAttribute internal="true" displayName="dataset_id" name="dataset_id"/>
<columnAttribute displayName="Summary" name="summary"/>
<columnAttribute displayName="Attribution" name="short_attribution"/>
<columnAttribute displayName="Assay Type" name="assay_type"/>
<columnAttribute internal="true" displayName="DefaultGraphId" name="default_graph_id"/>
<columnAttribute internal="true" displayName="Plots" name="plot_configs_json"/>

<propertyList name="hideDatasetLink"><value>true</value></propertyList>
</table>


<table name="EdaAntibodyArrayGraphsDataTable"
inReportMaker="false"
displayName="Antibody Array Graphs Data Table"
includeProjects="PlasmoDB,UniDB"
queryRef="GeneTables.EdaAntibodyArrayGraphsDataTable">
<columnAttribute name="dataset_id" displayName="Dataset" internal="true"/>
<columnAttribute name="variable" displayName="Variable"/>
<columnAttribute name="value" displayName="Value"/>
</table>

<table name="PhenotypeScoreGraphs"
displayName="Phenotype Graphs"
inReportMaker="false"
Expand Down
105 changes: 105 additions & 0 deletions Model/lib/wdk/model/records/geneTableQueries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,111 @@ from (
</sqlQuery>


<sqlQuery name="EdaAntibodyArrayDatasets" includeProjects="PlasmoDB,UniDB">
<column name="source_id" />
<column name="project_id" />
<column name="project_id_url" />
<column name="graph_ids" />
<column name="default_graph_id" />
<column name="species" />
<column name="genus_species" />
<column name="mainOpen" />
<column name="dataOpen" />
<column name="display_name" />
<column name="description" />
<column name="has_graph_data"/>
<column name="has_meta_data"/>
<column name="meta_data_categories"/>
<column name="dataset_name"/>
<column name="dataset_id"/>
<column name="summary"/>
<column name="short_attribution"/>
<column name="assay_type"/>
<column name="plot_configs_json"/>
<sql>

<![CDATA[
select g.*
, CASE WHEN '@PROJECT_ID@' = 'UniDB' THEN 'EuPathDB' ELSE g.project_id END AS project_id_url
, regexp_substr(graph_ids, '[^,]*') as default_graph_id
from (
select ga.source_id, ga.project_id,
ga.organism as gene_organism, ga.genus_species ,
psgene.profile_graph_id as graph_ids,
case when psgene.profile_graph_id is null then 0 else 1 end as has_graph_data,
'TRUE' as mainOpen, 'FALSE' as dataOpen,
'FALSE' has_meta_data, '' as meta_data_categories,
graph_descrip.*, dp.summary, dp.short_attribution, dp.display_name,
dp.description, 'Antibody Array' as assay_type, dp.dataset_presenter_id as dataset_id, dp.name as dataset_name
from webready.GeneAttributes_p ga,
apidbtuning.DatasetDatasource dds,
apidbtuning.datasetPresenter dp
LEFT JOIN (
SELECT dataset_name as graph_dataset_name,
JSON_ARRAYAGG(
JSON_OBJECT(
'plotName' VALUE plot_name,
'plotType' VALUE plot_type,
'xAxisEntityId' VALUE x_axis_entity_id,
'yAxisEntityId' VALUE y_axis_entity_id,
'xAxisVariableId' VALUE x_axis_variable_id,
'yAxisVariableId' VALUE y_axis_variable_id,
'displaySpecVariableId' VALUE 'VEUPATHDB_GENE_ID',
'displayMode' VALUE 'highlight',
'xMin' VALUE x_min,
'xMax' VALUE x_max,
'yMin' VALUE y_min,
'yMax' VALUE y_max
)
) AS plot_configs_json
FROM apidbtuning.edagenegraph
GROUP BY graph_dataset_name
) graph_descrip ON graph_descrip.graph_dataset_name = dp.name,
(WITH dataset_genes as (
SELECT '' as dataset_name, '' as source_id
-- TEMPLATE_ANCHOR antibodyArrayEdaGeneTableSql
)
select ga.source_id, p.dataset_name, p.source_id as profile_graph_id
from dataset_genes p
join webready.geneid_p gi on gi.id = p.source_id and gi.org_abbrev IN (%%PARTITION_KEYS%%)
join webready.GeneAttributes_p ga on ga.source_id = gi.gene and ga.org_abbrev IN (%%PARTITION_KEYS%%)
) psgene
where ga.source_id = psgene.source_id
and psgene.dataset_name = dds.name
and dds.dataset_presenter_id = dp.dataset_presenter_id
and dds.category = 'Immunology'
) g
]]>
</sql>

</sqlQuery>


<sqlQuery name="EdaAntibodyArrayGraphsDataTable" isCacheable="false" includeProjects="PlasmoDB,UniDB">
<column name="source_id"/>
<column name="project_id"/>
<column name="dataset_id"/>
<column name="variable"/>
<column name="value"/>
<sql>
<![CDATA[
SELECT ga.source_id, ga.project_id, gd.variable, coalesce(gd.string_value, coalesce(round(gd.number_value, 4)::text, gd.date_value::text)) AS value, gd.dataset_id
FROM webready.GeneAttributes_p ga, (
SELECT '' as gene,
'' as variable,
'' as string_value,
0 as number_value,
DATE '2000-01-01' as date_value,
'HAPPY_BIRTHDAY' as dataset_id
-- TEMPLATE_ANCHOR antibodyArrayDataTableGeneTableSql
) gd
WHERE ga.source_id = gd.gene
AND ga.org_abbrev IN (%%PARTITION_KEYS%%)
]]>
</sql>
</sqlQuery>


<sqlQuery name="PhenotypeScoreGraphs" includeProjects="PlasmoDB,UniDB">
<column name="source_id" />
<column name="project_id" />
Expand Down
4 changes: 4 additions & 0 deletions Model/lib/wdk/model/records/transcriptAttributeQueries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@

<!-- TEMPLATE_ANCHOR cellularLocalizationEdaAttributeQueriesString -->

<!-- TEMPLATE_ANCHOR antibodyArrayEdaAttributeQueriesNumeric -->

<!-- TEMPLATE_ANCHOR antibodyArrayEdaAttributeQueriesNumericByDataset -->

<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!-- Transcripts per gene -->
<!-- ATTENTION: this SQL cannot be used by a boolean step because it does not have the matched_result dynamic column -->
Expand Down
4 changes: 4 additions & 0 deletions Model/lib/wdk/model/records/transcriptRecord.xml
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,10 @@

<!-- TEMPLATE_ANCHOR cellularLocalizationEdaAttributeRef -->

<!-- TEMPLATE_ANCHOR antibodyArrayEdaAttributeRef -->

<!-- TEMPLATE_ANCHOR antibodyArrayEdaAttributeRefByDataset -->


<attributeQueryRef ref="TranscriptAttributes.NaSequenceDatabaseName" >
<columnAttribute name="sequence_database_name" inReportMaker="false"/>
Expand Down
2 changes: 2 additions & 0 deletions Model/lib/wdk/ontology/individuals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,8 @@ derisi_timeseries_pie http://purl.obolibrary.org/obo/OBI_0001985 PathwayRecordC
## TEMPLATE_ANCHOR profileMinMaxAttributesRnaAntisenseCategory
## TEMPLATE_ANCHOR phenotypeEdaAttributeCategory
## TEMPLATE_ANCHOR cellularLocalizationEdaAttributeCategory
## TEMPLATE_ANCHOR antibodyArrayEdaAttributeCategory
## TEMPLATE_ANCHOR antibodyArrayEdaAttributeCategoryByDataset

## TEMPLATE_ANCHOR metaboliteGraphTextAttributeCategory
## TEMPLATE_ANCHOR graphTextAttributeCategoryPathwayRecord
Expand Down