org.utgenome.gwt.utgb.client.bio
Class GenomeDB

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.bio.GenomeDB
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DASLocation

public class GenomeDB
extends Object
implements Serializable

Database locator.

Author:
leo
See Also:
Serialized Form

Nested Class Summary
static class GenomeDB.DBType
           
 
Field Summary
 String path
          database path.
 String ref
          reference sequence name to which this genome DB is associated
 GenomeDB.DBType type
          database type
 
Constructor Summary
  GenomeDB()
           
  GenomeDB(GenomeDB.DBType type, String path, String ref)
           
protected GenomeDB(GenomeDB db)
           
  GenomeDB(String path, String refSeq)
           
 
Method Summary
 GenomeDB.DBType resolveDBType()
           
static GenomeDB.DBType resolveDBType(GenomeDB db)
          Resolve the db type when the db type is AUTO.
static GenomeDB.DBType resolveDBType(String path)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

public String path
database path. When the path starts with "local:", it searches for locally stored database files.


ref

public String ref
reference sequence name to which this genome DB is associated


type

public GenomeDB.DBType type
database type

Constructor Detail

GenomeDB

public GenomeDB()

GenomeDB

protected GenomeDB(GenomeDB db)

GenomeDB

public GenomeDB(String path,
                String refSeq)

GenomeDB

public GenomeDB(GenomeDB.DBType type,
                String path,
                String ref)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

resolveDBType

public GenomeDB.DBType resolveDBType()

resolveDBType

public static GenomeDB.DBType resolveDBType(GenomeDB db)
Resolve the db type when the db type is AUTO.

Parameters:
db -
Returns:
the resolved data type, or null if no appropriate db type is found

resolveDBType

public static GenomeDB.DBType resolveDBType(String path)


Copyright © 2007-2012 utgenome.org. All Rights Reserved.