Package ubic.gemma.core.apps
Class ShellDelegatingBlat
- java.lang.Object
-
- ubic.gemma.core.apps.ShellDelegatingBlat
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShellDelegatingBlat.BlattableGenome
-
Field Summary
-
Fields inherited from interface ubic.gemma.core.apps.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:BlatRun a BLAT search using the gfClient.- Specified by:
blatQueryin 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:BlatRun a BLAT search using the gfClient.- Specified by:
blatQueryin 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:
blatQueryin 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:
blatQueryin interfaceBlat- Throws:
IOException
-
getBlatScoreThreshold
public double getBlatScoreThreshold()
- Specified by:
getBlatScoreThresholdin interfaceBlat- Returns:
- the blatScoreThreshold
-
setBlatScoreThreshold
public void setBlatScoreThreshold(double blatScoreThreshold)
- Specified by:
setBlatScoreThresholdin interfaceBlat- Parameters:
blatScoreThreshold- the blatScoreThreshold to set
-
getGfClientExe
public String getGfClientExe()
- Specified by:
getGfClientExein interfaceBlat- Returns:
- Returns the gfClientExe.
-
getGfServerExe
public String getGfServerExe()
- Specified by:
getGfServerExein interfaceBlat- Returns:
- Returns the gfServerExe.
-
getHumanServerPort
public int getHumanServerPort()
- Specified by:
getHumanServerPortin interfaceBlat- Returns:
- Returns the humanServerPort.
-
getMouseServerPort
public int getMouseServerPort()
- Specified by:
getMouseServerPortin interfaceBlat- Returns:
- Returns the mouseServerPort.
-
getRatServerPort
public int getRatServerPort()
- Specified by:
getRatServerPortin interfaceBlat- Returns:
- Returns the ratServerPort.
-
getSeqDir
public String getSeqDir()
-
getSeqFiles
public String getSeqFiles(ShellDelegatingBlat.BlattableGenome genome)
- Specified by:
getSeqFilesin interfaceBlat- Parameters:
genome- genome- Returns:
- Returns the seqFiles.
-
processPsl
public Collection<BlatResult> processPsl(InputStream inputStream, Taxon taxon) throws IOException
- Specified by:
processPslin 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:BlatStart the server, if the port isn't already being used. If the port is in use, we assume it is a gfServer.- Specified by:
startServerin interfaceBlat- Parameters:
genome- genomeport- port- Throws:
IOException- when there are IO problems.
-
stopServer
public void stopServer(int port)
Description copied from interface:BlatStop the gfServer, if it was started by this.- Specified by:
stopServerin interfaceBlat- Parameters:
port- port
-
-