Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
8b5a107
fix tuning table syntax errors
steve-fischer-200 Dec 9, 2025
46f440f
fix intronjunction queries (#130)
steve-fischer-200 Dec 9, 2025
d305fea
avoid use of dots.nasequence (#128)
steve-fischer-200 Dec 9, 2025
a44fa1b
use partition keys for taxonspecies_p (#124)
steve-fischer-200 Dec 9, 2025
47429a3
Merge pull request #131 from VEuPathDB/cellular-location-eda
bgajria Dec 9, 2025
624fc68
add get only syntenic orthologs (inner join) and add union for unity …
jbrestel Dec 10, 2025
7303ce1
Merge branch 'master' of github.com:VEuPathDB/ApiCommonModel
jbrestel Dec 10, 2025
4a56b4f
filter metatable by taxa
jbrestel Dec 10, 2025
baca6e5
adjust MetaTable query
steve-fischer-200 Dec 10, 2025
a5ff61a
TODO : add cellularLocalizationWdkAttributes attr in attributeList, f…
Dec 10, 2025
8cbbd22
first pass at replace study and studylink with claude
jbrestel Dec 10, 2025
e12b4d4
fix TFBSGene_p.psql
steve-fischer-200 Dec 10, 2025
4bddc85
add maxRecommended msg to org params
steve-fischer-200 Dec 10, 2025
4a9c67d
fix all remianing instances of study.studylink
jbrestel Dec 11, 2025
fce42ed
changed the remaining study.study and studylink to nodeset and nodeno…
jbrestel Dec 11, 2025
a04c607
we dont want to show Genetic variation section in gene pages
Dec 11, 2025
250811e
add index to apidbtuning.transcriptattributes
steve-fischer-200 Dec 11, 2025
bbd6971
add ProteinAttributes tuning table
steve-fischer-200 Dec 11, 2025
21fb3b3
fix post cache queries
steve-fischer-200 Dec 11, 2025
6c0794e
fix proteinattributes index
steve-fischer-200 Dec 11, 2025
fbfbf62
Merge pull request #133 from VEuPathDB/node-node-set
bgajria Dec 12, 2025
8122ae9
replace study and studylink, and deal with investigation_id
Dec 12, 2025
ece6cbe
replace study and studylink, and deal with investigation_id in DST files
Dec 12, 2025
5a4fd2e
Merge branch 'node-node-set'
Dec 12, 2025
434482e
replace study with nodeset
Dec 12, 2025
d91a89c
fix expression confidence queries
steve-fischer-200 Dec 12, 2025
c06815a
fix bug in apidbtuning.Profile
steve-fischer-200 Dec 13, 2025
dec6a7c
use transattr tuning tbl as needed
steve-fischer-200 Dec 14, 2025
dee4bf5
fix sense/antisense query
steve-fischer-200 Dec 15, 2025
9835cba
Fix attributes list for EuPath
ryanrdoherty Dec 15, 2025
006167d
Merge branch 'master' of github.com:VEuPathDB/ApiCommonModel
ryanrdoherty Dec 15, 2025
259eb33
fix rnaseq Similarity query
steve-fischer-200 Dec 15, 2025
e31b3f5
fix cellXgene query
steve-fischer-200 Dec 15, 2025
ad953ba
add in the internalDependency for Profile table
Dec 16, 2025
0623c42
add index to transattr
steve-fischer-200 Dec 16, 2025
20048cc
speed up user comments query
steve-fischer-200 Dec 16, 2025
e742f99
add categoryIri for wgcna (this is a temporary fix)
jbrestel Dec 17, 2025
8a82937
make sure to set the profilegraph help as it is used in a template
jbrestel Dec 17, 2025
a16eafb
Merge branch 'master' of github.com:VEuPathDB/ApiCommonModel
jbrestel Dec 17, 2025
f4aa3e7
fix eQTL query
steve-fischer-200 Dec 17, 2025
8ef2f6a
use unpartitioned table for bfmv
steve-fischer-200 Dec 17, 2025
d9425f2
move org_abbrev filter out of join condition to fix partition explosion.
mvnural Dec 17, 2025
56abee8
add missing org_abbrev filter to IntronSupportLevel_p
mvnural Dec 17, 2025
aee928a
speed eQTL query
steve-fischer-200 Dec 17, 2025
5aa5bd9
add Steve-ish modified HTML-structured maxRecommendedMsg
bobular Dec 17, 2025
5ee43b5
Remove quotes from value interpolations
bobular Dec 17, 2025
eec2e9b
try another CDATA wrapper
bobular Dec 17, 2025
55bec7f
remove quotes around maxRecommended too
bobular Dec 17, 2025
314af4a
update y2h Category for internal question
jbrestel Dec 18, 2025
8a0f27b
Merge branch 'master' of github.com:VEuPathDB/ApiCommonModel
jbrestel Dec 18, 2025
0d4fe95
fix other datasetCategories (quant proteomics and longreadrnaseq)
jbrestel Dec 18, 2025
f29ea09
Tweak organism gate message
bobular Dec 18, 2025
917fa40
fix interpro attr query
steve-fischer-200 Dec 18, 2025
cb31e43
rna url query to use datasetdatasource
jbrestel Dec 18, 2025
2217b1d
Merge branch 'master' of github.com:VEuPathDB/ApiCommonModel
jbrestel Dec 18, 2025
32192e5
fix pathways queries and add tuning table
steve-fischer-200 Dec 19, 2025
115fd3a
filter on project_id
steve-fischer-200 Dec 19, 2025
ab276ff
fix PathwayGenes TT
steve-fischer-200 Dec 19, 2025
9edf93d
speed gene seq table query
steve-fischer-200 Dec 19, 2025
20d71e5
gene source_id and project not being returned correctly. fixes nc rna…
jbrestel Dec 19, 2025
036e7af
comment out postCacheUpdateSql
steve-fischer-200 Dec 19, 2025
987b289
use unpartitioned for bfmv
steve-fischer-200 Dec 20, 2025
0e3ab07
use unpartitioned for postcacheupdate
steve-fischer-200 Dec 20, 2025
ad5b2d2
speed long read query
steve-fischer-200 Dec 20, 2025
34d2b36
add questions to UniDB; fix some bugs
steve-fischer-200 Dec 29, 2025
4ee5915
fix enrichmentAnalysis.
mvnural Oct 2, 2025
2b7ce40
fix oracle-specific sql
steve-fischer-200 Jan 5, 2026
ee04671
Comply with new SQLRunner API
ryanrdoherty Jan 7, 2026
601087c
fix typo bug
steve-fischer-200 Jan 7, 2026
f2cc379
Merge branch 'master' into master-rocky9
ryanrdoherty Jan 7, 2026
9db34bd
speed up go enrich
steve-fischer-200 Jan 8, 2026
de6dff7
add GoTermSummary TT and speed some TTs
steve-fischer-200 Jan 8, 2026
5304936
fix pathway search default
steve-fischer-200 Jan 8, 2026
fff4426
fix Horn pheno query
steve-fischer-200 Jan 9, 2026
6e76a2c
fix a couple of queries needed for graphs
Jan 9, 2026
d6589d8
fix profile_set query
Jan 12, 2026
e6c416f
add pathway enrichment in VEuPathDB
Jan 13, 2026
134ce6d
some sql fixes
Jan 13, 2026
654f118
not allow PaGE profile sets in "profile_set_names" sql
Jan 13, 2026
8ff801f
change buildNumber to 69, so as to point to webservices files built f…
Jan 14, 2026
1978bb1
SubcellularGeneList Q for multiple projects
Jan 14, 2026
0f6ce1c
update genomic repeat,tandemrepeat and lowcomplexity queries to use b…
jbrestel Jan 15, 2026
a6283a0
remove mr4 reagent question and tables (omar confirmed)
jbrestel Jan 15, 2026
7f6d19e
update SequencePieces query to use apidb.agpPiece table
jbrestel Jan 15, 2026
75817ea
remove Plasmo GenesBySubcellularLocalization Q; this is replaced by G…
Jan 15, 2026
116c6b3
add TranscriptPathway tuning tbl
steve-fischer-200 Jan 15, 2026
8c1ee3e
tuning table typo
steve-fischer-200 Jan 15, 2026
bd68763
tuning table typo
steve-fischer-200 Jan 15, 2026
6f2366d
include LOPIT in UniDB
steve-fischer-200 Jan 15, 2026
d8984d8
update SequencePieces query to use apidb.agpPiece table
jbrestel Jan 16, 2026
1767208
includeProject Unidb for genelist tables
jbrestel Jan 17, 2026
5d68fad
include UniDB for LongRead RNASeq
jbrestel Jan 17, 2026
101cd48
add include for Mobile element for UniDB
jbrestel Jan 17, 2026
ce29ed2
add Cellxgene table for UniDB gene pages
jbrestel Jan 17, 2026
d75332b
comment out GenesByCandidaCoexpression Q
Jan 18, 2026
5fd2884
Merge branch 'master-rocky9'
mvnural Jan 19, 2026
2b65d20
fix build error; (TEMp remove default attributes for phenotype quest…
Jan 20, 2026
bccadd2
add cleanDatasetName for rnaseq and microarray expresion attributes
Jan 20, 2026
3c35e0d
clean dataset name
jbrestel Jan 21, 2026
9d048be
use unpartitioned TranscriptPathway table
steve-fischer-200 Jan 20, 2026
6da7d6c
add org_abbrev to Profile table
steve-fischer-200 Jan 21, 2026
36db507
add org_abbrev index
steve-fischer-200 Jan 21, 2026
9a7fb84
add cleanDatasetName for rnaseq Qs
Jan 21, 2026
b2c3468
remove attributeList that is repeated twice for eupa
Jan 21, 2026
fb0f9ca
fix Profile typo
steve-fischer-200 Jan 21, 2026
b6f2863
Updated VAR_xxxx to VEUPATHDB_GENE_ID (#137)
bobular Jan 22, 2026
4bf74a6
fix the location of the config file
Jan 22, 2026
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
2 changes: 1 addition & 1 deletion Model/bin/enrichmentAnalysis
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def main(argv = None):
results = results[results.pValue <= pValueCutoff]

# sort on p-value asc
results.sort(columns = 'pValue', ascending = True, inplace = True)
results.sort_values(by = 'pValue', ascending = True, inplace = True)

# print results.shape

Expand Down
3 changes: 2 additions & 1 deletion Model/lib/dst/categories.dst
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ anchorFile=ApiCommonModel/Model/lib/wdk/ontology/individuals.txt
prop=presenterId
prop=datasetName
prop=profileSamplesHelp
prop=cleanDatasetName
>templateTextStart<
normalizedSampleValues${datasetName} DatasetRecordClasses.DatasetRecordClass.${presenterId} normalizedSampleValuesInternal${datasetName} normalized sample values ${profileSamplesHelp} internal
TranscriptAttributes.MetaProfileSamples${datasetName} normalizedSampleValues${datasetName} TranscriptRecordClasses.TranscriptRecordClass attributeMetaQuery MetaProfileSamples${datasetName} ${profileSamplesHelp} gene results download
TranscriptAttributes.MetaProfileSamples${cleanDatasetName} normalizedSampleValues${datasetName} TranscriptRecordClasses.TranscriptRecordClass attributeMetaQuery MetaProfileSamples${cleanDatasetName} ${profileSamplesHelp} gene results download
>templateTextEnd<


Expand Down
3 changes: 2 additions & 1 deletion Model/lib/dst/cellularLocalization.dst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ prop=cellularLocalizationWdkAttributes
<paramRef ref="geneParams.eda_dataset_id" default="${presenterId}" visible="false"/>
<paramRef ref="geneParams.eda_analysis_spec" allowEmpty="true" prompt="Filter genes based on cellular localization data"/>

<!-- TODO - add in attributesList, when available: ${cellularLocalizationWdkAttributes} -->
<attributesList
summary="organism,gene_location_text,gene_product,${cellularLocalizationWdkAttributes}"
summary="organism,gene_location_text,gene_product"
/>

<summary><![CDATA[
Expand Down
22 changes: 6 additions & 16 deletions Model/lib/dst/expression.dst
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,22 @@ prop=projectName
<column name="term"/>
<sql>
<![CDATA[
select s.study_id as internal
select distinct s.node_set_id as internal
, s.name as term
, s.name as display
from study.study s
where name = '${datasetName}'

/**
select distinct s.study_id as internal
, s.name as term
, REGEXP_REPLACE (s.name, '\[(.)+\]', '') AS display
, REGEXP_REPLACE (s.name, '\[(.)+\]', '') AS display
, d.name
from study.study s
, study.studylink sl
from study.nodeset s
, study.nodenodeset sl
, RESULTS.NAFEATUREDIFFRESULT dr
, SRES.EXTERNALDATABASERELEASE r
, sres.externaldatabase d
where
where
s.EXTERNAL_DATABASE_RELEASE_ID = r.EXTERNAL_DATABASE_RELEASE_ID
and r.EXTERNAL_DATABASE_ID = d.EXTERNAL_DATABASE_ID
and s.study_id = sl.study_id
and s.node_set_id = sl.node_set_id
and sl.PROTOCOL_APP_NODE_ID = dr.PROTOCOL_APP_NODE_ID
and s.INVESTIGATION_ID is null
and d.name = '${datasetName}'
ORDER BY s.name desc
**/

]]>
</sql>
</sqlQuery>
Expand Down
9 changes: 5 additions & 4 deletions Model/lib/dst/metaCycle.dst
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ prop=includeProjectsExcludeEuPathDB
<column name="term"/>
<sql>
<![CDATA[

SELECT s.name as internal, REPLACE (s.name, ' MetaCycle', '') as term
FROM STUDY.STUDY s, STUDY.STUDY i
WHERE i.name = '${datasetName}'
AND i.study_id = s.INVESTIGATION_ID and s.name like '%MetaCycle%'
FROM STUDY.nodeset s, sres.externaldatabase ed, sres.externaldatabaserelease edr
WHERE ed.name = '${datasetName}'
AND ed.external_database_id = edr.external_database_id
AND edr.external_database_release_id = s.external_database_release_id
AND node_type IN ('RNASeq','microarray')
]]>
</sql>
</sqlQuery>
Expand Down
2 changes: 1 addition & 1 deletion Model/lib/dst/phenotype.dst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ prop=phenotypeWdkAttributes
<paramRef ref="geneParams.eda_analysis_spec" allowEmpty="true" prompt="Filter genes based on phenotype data"/>

<attributesList
summary="organism,gene_location_text,gene_product,${phenotypeWdkAttributes}"
summary="organism,gene_location_text,gene_product"
/>

<summary><![CDATA[
Expand Down
13 changes: 8 additions & 5 deletions Model/lib/dst/profileGraphs.dst
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@ prop=isGraphCustom
name=profileAttributeQueries
anchorFile=ApiCommonModel/Model/lib/wdk/model/records/transcriptAttributeQueries.xml
prop=datasetName
prop=cleanDatasetName
prop=projectName
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<sqlQuery name="ProfileSamples${datasetName}" doNotTest="true" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${datasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="ProfileSamples${cleanDatasetName}" doNotTest="true" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${cleanDatasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="source_id"/>
<column name="gene_source_id"/>
<column name="project_id"/>
Expand All @@ -192,7 +193,7 @@ prop=includeProjectsExcludeEuPathDB
</sql>
</sqlQuery>

<sqlQuery name="MetaProfileSamples${datasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="MetaProfileSamples${cleanDatasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="name" />
<column name="display_name" />
<column name="help" />
Expand Down Expand Up @@ -259,8 +260,9 @@ prop=projectName
prop=sense
prop=antisense
prop=includeProjectsExcludeEuPathDB
prop=cleanDatasetName
>templateTextStart<
<sqlQuery name="ProfileSamples${datasetName}" doNotTest="true" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${datasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="ProfileSamples${cleanDatasetName}" doNotTest="true" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${cleanDatasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="source_id"/>
<column name="gene_source_id"/>
<column name="project_id"/>
Expand All @@ -287,7 +289,7 @@ prop=includeProjectsExcludeEuPathDB
</sql>
</sqlQuery>

<sqlQuery name="MetaProfileSamples${datasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="MetaProfileSamples${cleanDatasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="name" />
<column name="display_name" />
<column name="help" />
Expand Down Expand Up @@ -358,8 +360,9 @@ prop=datasetName
prop=presenterId
prop=includeProjectsExcludeEuPathDB
prop=projectName
prop=cleanDatasetName
>templateTextStart<
<attributeQueryRef ref="TranscriptAttributes.ProfileSamples${datasetName}" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${datasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
<attributeQueryRef ref="TranscriptAttributes.ProfileSamples${cleanDatasetName}" attributeMetaQueryRef="TranscriptAttributes.MetaProfileSamples${cleanDatasetName}" includeProjects="${includeProjectsExcludeEuPathDB}">
</attributeQueryRef>
>templateTextEnd<

Expand Down
10 changes: 5 additions & 5 deletions Model/lib/dst/quantProteomics.dst
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ prop=dataType
<column name="internal"/>
<column name="term"/>
<sql>
select distinct s.study_id as internal, s.name as term, s.name as display
from study.study s, sres.externaldatabase ed, sres.externaldatabaserelease edr
,results.nafeaturediffresult ndr, study.protocolappnode pan, study.studylink sl
select distinct s.node_set_id as internal, s.name as term, s.name as display
from study.nodeset s, sres.externaldatabase ed, sres.externaldatabaserelease edr
,results.nafeaturediffresult ndr, study.protocolappnode pan, study.nodenodeset sl
where ed.external_database_id=edr.external_database_id
and s.external_database_release_id = edr.external_database_release_id
and ed.name='${datasetName}'
and s.study_id = sl.study_id
and s.node_set_id = sl.node_set_id
and sl.protocol_app_node_id = pan.protocol_app_node_id
and ndr.protocol_app_node_id = pan.protocol_app_node_id
and s.name NOT like 'Quantitative Mass Spec%'
order by s.study_id
order by s.node_set_id
</sql>
</sqlQuery>

Expand Down
55 changes: 29 additions & 26 deletions Model/lib/dst/rnaSeqTemplates.dst
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ prop=organismAbbrevDisplay
name=rnaSeqFoldChangeQuestion
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/geneQuestions.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=datasetShortDisplayName
prop=projectName
Expand All @@ -190,8 +191,8 @@ prop=includeProjectsExcludeEuPathDB
searchCategory="Transcript Expression"
queryRef="GeneId.GenesByRnaSeqFoldChange"
recordClassRef="TranscriptRecordClasses.TranscriptRecordClass">
<paramRef ref="geneParams.profileset_generic" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${datasetName}RnaSeqProfiles"/>
<paramRef ref="geneParams.dataset_url" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${datasetName}DatasetUrl"/>
<paramRef ref="geneParams.profileset_generic" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${cleanDatasetName}RnaSeqProfiles"/>
<paramRef ref="geneParams.dataset_url" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${cleanDatasetName}DatasetUrl"/>
<paramRef ref="geneParams.hard_floor" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.hardFloorRnaSeq" visible="true"/>
<sqlParamValue name="isLogged">0</sqlParamValue>
<attributesList includeProjects="${includeProjectsExcludeEuPathDB}"
Expand Down Expand Up @@ -313,6 +314,7 @@ ${optionalQuestionDescription}
name=rnaSeqPercentileQuestion
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/geneQuestions.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=datasetShortDisplayName
prop=projectName
Expand All @@ -324,14 +326,14 @@ prop=optionalQuestionDescription
prop=organismAbbrevDisplay
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<question name="GenesByRNASeq${datasetName}Percentile" includeProjects="${includeProjects}" newBuild="${buildNumberIntroduced}"
<question name="GenesByRNASeq${cleanDatasetName}Percentile" includeProjects="${includeProjects}" newBuild="${buildNumberIntroduced}"
displayName="${organismAbbrevDisplay} ${datasetDisplayName} RNA-Seq (percentile)"
shortDisplayName="${datasetShortDisplayName} (%ile)"
searchCategory="Transcript Expression"
queryRef="GeneId.GenesByGenericPercentile"
recordClassRef="TranscriptRecordClasses.TranscriptRecordClass">

<paramRef ref="geneParams.profileset_generic" queryRef="GeneVQ.${datasetName}RnaSeqPctProfiles"/>
<paramRef ref="geneParams.profileset_generic" queryRef="GeneVQ.${cleanDatasetName}RnaSeqPctProfiles"/>

<attributesList includeProjects="${includeProjectsExcludeEuPathDB}"
summary="gene_product,min_percentile_chosen,max_percentile_chosen,${pctGraphAttr}"
Expand Down Expand Up @@ -385,6 +387,7 @@ ${optionalQuestionDescription}
name=rnaSeqDESeqQuestion
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/geneQuestions.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=datasetShortDisplayName
prop=projectName
Expand All @@ -395,13 +398,13 @@ prop=optionalQuestionDescription
prop=organismAbbrevDisplay
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<question name="GenesByRNASeq${datasetName}DESeq" newBuild="29"
<question name="GenesByRNASeq${cleanDatasetName}DESeq" newBuild="29"
displayName="${organismAbbrevDisplay} ${datasetDisplayName} RNA-Seq (Differential Expression)" includeProjects="${includeProjects}"
shortDisplayName="${datasetShortDisplayName} (de)"
searchCategory="Transcript Expression"
queryRef="GeneId.GenesByDESeqAnalysis"
recordClassRef="TranscriptRecordClasses.TranscriptRecordClass">
<paramRef ref="geneParams.profileset_generic" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${datasetName}DESeqProfiles"/>
<paramRef ref="geneParams.profileset_generic" groupRef="paramGroups.dynamicParams" queryRef="GeneVQ.${cleanDatasetName}DESeqProfiles"/>
<attributesList includeProjects="${includeProjectsExcludeEuPathDB}"
summary="organism,gene_product, fold_change, adj_p_value"
sorting="fold_change desc" />
Expand Down Expand Up @@ -596,13 +599,14 @@ prop=includeProjectsExcludeEuPathDB
name=rnaSeqProfileSetParamQuery
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/params/geneParams.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=projectName
prop=sense
prop=antisense
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<sqlQuery name="${datasetName}RnaSeqProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="${cleanDatasetName}RnaSeqProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="display"/>
<column name="internal"/>
<column name="term"/>
Expand Down Expand Up @@ -630,7 +634,7 @@ ORDER BY term desc
]]>
</sql>
</sqlQuery>
<processQuery name="${datasetName}RnaSeqProfiles" processName="org.apidb.apicomplexa.wsfplugin.apifed.ApiFedPlugin" includeProjects="EuPathDB">
<processQuery name="${cleanDatasetName}RnaSeqProfiles" processName="org.apidb.apicomplexa.wsfplugin.apifed.ApiFedPlugin" includeProjects="EuPathDB">
<wsColumn name="display" width="300"/>
<wsColumn name="internal" width="300"/>
<wsColumn name="term" width="300"/>
Expand All @@ -642,22 +646,23 @@ ORDER BY term desc
name=datasetUrlParamQuery
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/params/geneParams.xml
prop=datasetName
prop=cleanDatasetName
prop=projectName
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<sqlQuery name="${datasetName}DatasetUrl" includeProjects="${includeProjectsExcludeEuPathDB},Huh">
<sqlQuery name="${cleanDatasetName}DatasetUrl" includeProjects="${includeProjectsExcludeEuPathDB},Huh">
<column name="internal"/>
<column name="term"/>
<sql>
<![CDATA[
SELECT 'https://${projectName}.org/a/app/record/dataset/' || dataset_presenter_id as internal,
'https://${projectName}.org/a/app/record/dataset/' || dataset_presenter_id as term
FROM ApidbTuning.DatasetPresenter
FROM ApidbTuning.DatasetDatasource
WHERE name = '${datasetName}'
]]>
</sql>
</sqlQuery>
<processQuery name="${datasetName}DatasetUrl" processName="org.apidb.apicomplexa.wsfplugin.apifed.ApiFedPlugin" includeProjects="EuPathDB">
<processQuery name="${cleanDatasetName}DatasetUrl" processName="org.apidb.apicomplexa.wsfplugin.apifed.ApiFedPlugin" includeProjects="EuPathDB">
<wsColumn name="internal" width="300"/>
<wsColumn name="term" width="300"/>
</processQuery>
Expand All @@ -668,13 +673,14 @@ WHERE name = '${datasetName}'
name=rnaSeqPctProfileSetParamQuery
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/params/geneParams.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=projectName
prop=sense
prop=includeProjectsExcludeEuPathDB
prop=antisense
>templateTextStart<
<sqlQuery name="${datasetName}RnaSeqPctProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="${cleanDatasetName}RnaSeqPctProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="display"/>
<column name="internal"/>
<column name="term"/>
Expand Down Expand Up @@ -715,13 +721,14 @@ ORDER BY term desc
name=DESeqProfileSetParamQuery
anchorFile=ApiCommonModel/Model/lib/wdk/model/questions/params/geneParams.xml
prop=datasetName
prop=cleanDatasetName
prop=datasetDisplayName
prop=projectName
prop=sense
prop=antisense
prop=includeProjectsExcludeEuPathDB
>templateTextStart<
<sqlQuery name="${datasetName}DESeqProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<sqlQuery name="${cleanDatasetName}DESeqProfiles" includeProjects="${includeProjectsExcludeEuPathDB}">
<column name="display"/>
<column name="internal"/>
<column name="term"/>
Expand All @@ -734,14 +741,14 @@ SELECT study_id AS internal,
ELSE ps_name || sense END AS display
FROM (

SELECT DISTINCT s.study_id as study_id
SELECT DISTINCT s.node_set_id as study_id
, s.name as name
, REGEXP_REPLACE (s.name, '\[(.)+\]', '') AS ps_name
,REPLACE (REPLACE ( REPLACE ( REPLACE ( REGEXP_SUBSTR (s.name, ' \[\S+ ') , 'DESeq2Analysis', '') , 'unique' , '' ), '[', '') , '-', ' ' ) AS anal
,CASE WHEN REGEXP_LIKE (s.name, '${sense}') THEN '- Sense'
WHEN REGEXP_LIKE (s.name, ' ${antisense}') THEN '- Antisense'
ELSE 'unstranded' END AS sense
from study.study s
from study.nodeset s
, SRES.EXTERNALDATABASERELEASE r
, sres.externaldatabase d
where lower(s.name) like '%deseq%'
Expand Down Expand Up @@ -807,13 +814,8 @@ prop=includeProjectsExcludeEuPathDB
<![CDATA[
SELECT num AS internal, num ||' hours' AS term, num ||' hours' AS display
FROM
(SELECT Rownum num
CONNECT BY Rownum <= '${profileTimeShift}'
UNION
SELECT 0 num
UNION
SELECT Rownum * (-1) num
CONNECT BY Rownum <= '${profileTimeShift}'
(SELECT generate_series(-${profileTimeShift}.0::integer, ${profileTimeShift}.0::integer)
AS num ORDER BY num
) t
ORDER BY t.num ASC
]]>
Expand Down Expand Up @@ -1154,11 +1156,12 @@ prop=includeProjectsExcludeEuPathDB
<column name="term"/>
<sql>
<![CDATA[

SELECT s.name as internal, REPLACE (s.name, ' MetaCycle', '') as term
FROM STUDY.STUDY s, STUDY.STUDY i
WHERE i.name = '${datasetName}'
AND i.study_id = s.INVESTIGATION_ID and s.name like '%MetaCycle%'
FROM STUDY.nodeset s, sres.externaldatabase ed, sres.externaldatabaserelease edr
WHERE ed.name = '${datasetName}'
AND ed.external_database_id = edr.external_database_id
AND edr.external_database_release_id = s.external_database_release_id
AND node_type IN ('RNASeq')
]]>
</sql>
</sqlQuery>
Expand Down
2 changes: 1 addition & 1 deletion Model/lib/perl/JBrowseUtil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ my @tester = %{$args};
if($buildNumber && $webservicesDir && $nameForFileNames ) {
#todo: construct the path
#/var/www/Common/apiSiteFilesMirror/webServices/ToxoDB/build-68/TgondiiME49
my $webServicePropertiesFile = "$webservicesDir/$projectName/build-$buildNumber/$nameForFileNames/genomeAndProteome/config/jbrowse.conf";
my $webServicePropertiesFile = "$webservicesDir/$projectName/build-$buildNumber/$nameForFileNames/genomeBrowser/config/jbrowse.conf";
$webServicePropsHash = $self->makeProperties($webServicePropertiesFile);
}

Expand Down
Loading