Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c57d374
commit 9fba40f
Showing
4 changed files
with
107 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
grails-app/services/org/bbop/apollo/JbrowseHandlerService.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package org.bbop.apollo | ||
|
||
import grails.transaction.Transactional | ||
import org.codehaus.groovy.grails.web.json.JSONObject | ||
|
||
import java.security.MessageDigest | ||
import java.sql.Timestamp | ||
|
||
/** | ||
* | ||
* Chado Compliance Layers | ||
* Level 0: Relational schema - this basically means that the schema is adhered to | ||
* Level 1: Ontologies - this means that all features in the feature table are of a type represented in SO and | ||
* all feature relationships in feature_relationship table must be SO relationship types | ||
* Level 2: Graph - all features relationships between a feature of type X and Y must correspond to relationship of | ||
* that type in SO. | ||
* | ||
* Relevant Chado modules: | ||
* Chado General Module | ||
* Chado CV Module | ||
* Chado Organism Module | ||
* Chado Sequence Module | ||
* Chado Publication Module | ||
* | ||
*/ | ||
|
||
@Transactional | ||
class JbrowseHandlerService { | ||
|
||
def configWrapperService | ||
def sequenceService | ||
def featureRelationshipService | ||
def transcriptService | ||
def cdsService | ||
|
||
/** | ||
* Track only | ||
* @param organism | ||
* @return | ||
*/ | ||
def writeTrackOnly(Organism organism) { | ||
JSONObject returnObject = new JSONObject() | ||
println "writing track only" | ||
return returnObject | ||
} | ||
|
||
/** | ||
* Directory only | ||
* @param organism | ||
* @return | ||
*/ | ||
def writeJBrowseDirectory(Organism organism) { | ||
JSONObject returnObject = new JSONObject() | ||
println "writing track only" | ||
return returnObject | ||
} | ||
|
||
/** | ||
* Full JBrowse | ||
* @param organism | ||
* @return | ||
*/ | ||
def writeFullJBrowse(Organism organism) { | ||
JSONObject returnObject = new JSONObject() | ||
return returnObject | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters