public class UCSCDataSourcePlugin
extends savant.sql.SQLDataSourcePlugin
implements savant.sql.SQLConstants
| Modifier and Type | Field and Description |
|---|---|
static String[] |
STANDARD_CLADES |
| Constructor and Description |
|---|
UCSCDataSourcePlugin() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canOpen(URI uri) |
String |
findCladeForGenome(GenomeDef g)
Figure out which clade contains the given genome.
|
savant.sql.Table |
findTable(String track)
Look through the database's tables for one representing this track.
|
GenomeDef[] |
getCladeGenomes(String clade)
Get all the genomes which are available for the given clade.
|
GenomeDef |
getCurrentGenome(String clade) |
List<String> |
getReferences(savant.sql.MappedTable table)
Get a list of references for this data-source.
|
savant.sql.MappedTable |
getTableByName(String tableName,
String dbName,
String trackName)
Get a table with the columns mapped based on saved settings.
|
savant.sql.MappedTable |
getTableWithStandardMapping(TrackDef t)
Get a set of mappings for a track which has not been configured using the navigation dialog.
|
String |
getTitle() |
void |
init() |
protected savant.sql.MappedTable |
requestMapping(savant.sql.Table t)
Instead of showing the base-class MappingDialog, the UCSC plugin builds up the list
of tables from the hgcentral database and displays a UCSC-specific dialog.
|
void |
selectGenomeDB(savant.sql.Table t)
Select the current genome database based on the given table.
|
protected void |
tryToLogin(boolean silent)
Logging into UCSC is always done silently, without a login dialog.
|
getConnection, getDatabase, getDatabases, getDataSource, getDataSource, saveSettingsgetDescriptor, setDescriptor, shutDownpublic static final String[] STANDARD_CLADES
public void init()
init in class savant.sql.SQLDataSourcePluginpublic boolean canOpen(URI uri)
canOpen in class savant.sql.SQLDataSourcePluginprotected void tryToLogin(boolean silent)
throws ClassNotFoundException,
SQLException
tryToLogin in class savant.sql.SQLDataSourcePluginsilent - ignoredClassNotFoundExceptionSQLExceptionprotected savant.sql.MappedTable requestMapping(savant.sql.Table t)
throws SQLException
requestMapping in class savant.sql.SQLDataSourcePluginSQLExceptionpublic String getTitle()
getTitle in class savant.sql.SQLDataSourcePluginpublic List<String> getReferences(savant.sql.MappedTable table) throws SQLException
getReferences in class savant.sql.SQLDataSourcePluginSQLExceptionpublic savant.sql.MappedTable getTableByName(String tableName, String dbName, String trackName) throws SQLException
getTableByName in class savant.sql.SQLDataSourcePluginSQLExceptionpublic savant.sql.Table findTable(String track) throws SQLException
SQLExceptionpublic savant.sql.MappedTable getTableWithStandardMapping(TrackDef t)
t - the track for which we're getting the mappingpublic GenomeDef[] getCladeGenomes(String clade)
clade - one of the six standard cladespublic String findCladeForGenome(GenomeDef g)
g - public void selectGenomeDB(savant.sql.Table t)
t - Copyright © 2010-2013 University of Toronto, Computational Biology Lab. All Rights Reserved.