Skip to content

Commit

Permalink
Add download for GMT
Browse files Browse the repository at this point in the history
  • Loading branch information
yxngl committed Jan 2, 2019
1 parent 0ac237e commit 201e728
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/createReport.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ createReport <- function(hostName, outputDirectory, organism="hsapiens", project
dagJson <- list()
if(organism!="others"){
#####Summary Tab########
bodyContent <- summaryDescription(projectName, organism, interestGeneFile, interestGene, interestGeneType, enrichMethod, enrichDatabase, enrichDatabaseFile, enrichDatabaseType, enrichDatabaseDescriptionFile, interestingGeneMap, referenceGeneList, referenceGeneFile, referenceGene, referenceGeneType, referenceSet, minNum, maxNum, sigMethod, fdrThr, topThr, fdrMethod, enrichedSig, dNum, perNum, geneSet)
bodyContent <- summaryDescription(projectName, organism, interestGeneFile, interestGene, interestGeneType, enrichMethod, enrichDatabase, enrichDatabaseFile, enrichDatabaseType, enrichDatabaseDescriptionFile, interestingGeneMap, referenceGeneList, referenceGeneFile, referenceGene, referenceGeneType, referenceSet, minNum, maxNum, sigMethod, fdrThr, topThr, fdrMethod, enrichedSig, dNum, perNum, geneSet, hostName)

if (!is.null(enrichedSig) && dNum < nrow(enrichedSig)) {
if (enrichMethod == "ORA") {
Expand Down
4 changes: 2 additions & 2 deletions R/summaryDescription.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summaryDescription <- function(projectName, organism, interestGeneFile, interestGene, interestGeneType, enrichMethod, enrichDatabase, enrichDatabaseFile, enrichDatabaseType, enrichDatabaseDescriptionFile, interestingGeneMap, referenceGeneList, referenceGeneFile, referenceGene, referenceGeneType, referenceSet, minNum, maxNum, sigMethod, fdrThr, topThr, fdrMethod, enrichedSig, dNum, perNum, geneSet) {
summaryDescription <- function(projectName, organism, interestGeneFile, interestGene, interestGeneType, enrichMethod, enrichDatabase, enrichDatabaseFile, enrichDatabaseType, enrichDatabaseDescriptionFile, interestingGeneMap, referenceGeneList, referenceGeneFile, referenceGene, referenceGeneType, referenceSet, minNum, maxNum, sigMethod, fdrThr, topThr, fdrMethod, enrichedSig, dNum, perNum, geneSet, hostName) {
if(enrichMethod=="ORA"){
methodSpecificContent <- specificParameterSummaryOra(organism,referenceGeneList,geneSet,referenceGeneFile,referenceGene,referenceGeneType,referenceSet,minNum,maxNum,sigMethod,fdrThr,topThr,fdrMethod,enrichedSig,dNum,interestingGeneMap)
}
Expand All @@ -18,7 +18,7 @@ summaryDescription <- function(projectName, organism, interestGeneFile, interest
numUserId=nrow(interestingGeneMap$mapped)+length(interestingGeneMap$unmapped),
numMappedUserId=nrow(interestingGeneMap$mapped), numUniqueMappedId=length(unique(interestingGeneMap$mapped[[standardId]])),
numUnmappedUserId=length(interestingGeneMap$unmapped), idIsEntrezGene=standardId=="entrezgene", standardId=standardId,
methodSpecificContent=methodSpecificContent
methodSpecificContent=methodSpecificContent, hostName=hostName
)
}else {
data <- list(projectName=projectName, enrichMethod=enrichMethod, organism=organism, organismIsOthers=TRUE,
Expand Down
3 changes: 3 additions & 0 deletions inst/templates/summary.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
{{/enrichDatabaseIsOthers}}
{{^enrichDatabaseIsOthers}}
<b>Enrichment Categories: </b>{{enrichDatabase}}
<a class="has-text-info" href="{{hostName}}/api/geneset?organism={{organism}}&database={{enrichDatabase}}&fileType=gmt">
<b-icon icon="download" size="is-small"></b-icon>
</a>
{{/enrichDatabaseIsOthers}}
{{/organismIsOthers}}
</li>
Expand Down

0 comments on commit 201e728

Please sign in to comment.