Class ShellDelegatingBlat
- java.lang.Object
-
- ubic.gemma.core.analysis.sequence.ShellDelegatingBlat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShellDelegatingBlat.BlattableGenome
-
Field Summary
-
Fields inherited from interface ubic.gemma.core.analysis.sequence.Blat
DEFAULT_BLAT_SCORE_THRESHOLD, STEPSIZE
-
-
Constructor Summary
Constructors Constructor Description ShellDelegatingBlat()
Create a blat object with settings read from the config file.ShellDelegatingBlat(String host, int humanServerPort, String seqDir)
-
Method Summary
-
-
-
Method Detail
-
getSearchedGenome
public static ExternalDatabase getSearchedGenome(Taxon taxon)
-
blatQuery
public Collection<BlatResult> blatQuery(BioSequence b) throws IOException
Description copied from interface:Blat
Run a BLAT search using the gfClient.- Specified by:
blatQuery
in interfaceBlat
- Parameters:
b
- The genome is inferred from the Taxon held by the sequence.- Returns:
- Collection of BlatResult objects.
- Throws:
IOException
- when there are IO problems.
-
blatQuery
public Collection<BlatResult> blatQuery(BioSequence b, Taxon taxon, boolean sensitive) throws IOException
Description copied from interface:Blat
Run a BLAT search using the gfClient.- Specified by:
blatQuery
in interfaceBlat
- Parameters:
b
- The genome is inferred from the Taxon held by the sequence.taxon
- taxonsensitive
- if true use the more sensitive gfServer, if available.- Returns:
- Collection of BlatResult objects.
- Throws:
IOException
- when there are IO problems.
-
blatQuery
public Map<BioSequence,Collection<BlatResult>> blatQuery(Collection<BioSequence> sequences, boolean sensitive, Taxon taxon) throws IOException
- Specified by:
blatQuery
in interfaceBlat
- Parameters:
sequences
- The genome is inferred from the Taxon held by the sequence.sensitive
- if true use the more sensitive gfServer, if available.taxon
- The taxon whose database will be searched.- Returns:
- map of the input sequences to a corresponding collection of blat result(s)
- Throws:
IOException
- when there are IO problems.
-
blatQuery
public Map<BioSequence,Collection<BlatResult>> blatQuery(Collection<BioSequence> sequences, Taxon taxon) throws IOException
- Specified by:
blatQuery
in interfaceBlat
- Throws:
IOException
-
getBlatScoreThreshold
public double getBlatScoreThreshold()
- Specified by:
getBlatScoreThreshold
in interfaceBlat
- Returns:
- the blatScoreThreshold
-
setBlatScoreThreshold
public void setBlatScoreThreshold(double blatScoreThreshold)
- Specified by:
setBlatScoreThreshold
in interfaceBlat
- Parameters:
blatScoreThreshold
- the blatScoreThreshold to set
-
getGfClientExe
public String getGfClientExe()
- Specified by:
getGfClientExe
in interfaceBlat
- Returns:
- Returns the gfClientExe.
-
getGfServerExe
public String getGfServerExe()
- Specified by:
getGfServerExe
in interfaceBlat
- Returns:
- Returns the gfServerExe.
-
getHumanServerPort
public int getHumanServerPort()
- Specified by:
getHumanServerPort
in interfaceBlat
- Returns:
- Returns the humanServerPort.
-
getMouseServerPort
public int getMouseServerPort()
- Specified by:
getMouseServerPort
in interfaceBlat
- Returns:
- Returns the mouseServerPort.
-
getRatServerPort
public int getRatServerPort()
- Specified by:
getRatServerPort
in interfaceBlat
- Returns:
- Returns the ratServerPort.
-
getSeqDir
public String getSeqDir()
-
getSeqFiles
public String getSeqFiles(ShellDelegatingBlat.BlattableGenome genome)
- Specified by:
getSeqFiles
in interfaceBlat
- Parameters:
genome
- genome- Returns:
- Returns the seqFiles.
-
processPsl
public Collection<BlatResult> processPsl(InputStream inputStream, Taxon taxon) throws IOException
- Specified by:
processPsl
in interfaceBlat
- Parameters:
inputStream
- to the Blat output file in psl formattaxon
- taxon- Returns:
- processed results.
- Throws:
IOException
- when there are IO problems.
-
startServer
public void startServer(ShellDelegatingBlat.BlattableGenome genome, int port) throws IOException
Description copied from interface:Blat
Start the server, if the port isn't already being used. If the port is in use, we assume it is a gfServer.- Specified by:
startServer
in interfaceBlat
- Parameters:
genome
- genomeport
- port- Throws:
IOException
- when there are IO problems.
-
stopServer
public void stopServer(int port)
Description copied from interface:Blat
Stop the gfServer, if it was started by this.- Specified by:
stopServer
in interfaceBlat
- Parameters:
port
- port
-
-