public class NCBIQBlastAlignmentProperties extends Object implements RemotePairwiseAlignmentProperties
Map by adding several convenient parameter addition
 methods. Other QBlast URL API parameters should be added using
 setAlignmentOption(BlastAlignmentParameterEnum, String)
 
 Required parameters are PROGRAM and DATABASE, other parameters are optional| Constructor and Description | 
|---|
NCBIQBlastAlignmentProperties()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getAlignmentOption(BlastAlignmentParameterEnum key)
Gets the value of specified parameter or  
null if it is not set. | 
String | 
getAlignmentOption(String key)
This method forwards to  
getAlignmentOption(BlastAlignmentParameterEnum). | 
Set<String> | 
getAlignmentOptions()
Gets parameters, which are currently set 
 | 
String | 
getBlastAdvancedOptions()  | 
String | 
getBlastDatabase()  | 
double | 
getBlastExpect()  | 
int | 
getBlastFromPosition()  | 
String | 
getBlastGapCosts()
Returns the actual string for the GAPCOSTS parameter which is used to build the URL 
 | 
int | 
getBlastGapCreation()
Returns the value for the GAP_CREATION parameter (first half of GAPCOSTS parameter) 
 | 
int | 
getBlastGapExtension()
Returns the value for the gap extension parameter (second half of GAPCOSTS parameter) 
 | 
String | 
getBlastMatrix()
Returns the value of the specified substitution matrix 
 | 
BlastProgramEnum | 
getBlastProgram()  | 
int | 
getBlastToPosition()  | 
int | 
getBlastWordSize()
Returns the value of the WORD_SIZE parameter used for this blast run 
 | 
void | 
removeAlignmentOption(BlastAlignmentParameterEnum key)
Removes given parameter 
 | 
void | 
setAlignementOption(String key,
                   String val)
This method forwards to  
setAlignmentOption(BlastAlignmentParameterEnum, String). | 
void | 
setAlignmentOption(BlastAlignmentParameterEnum key,
                  String val)
Sets the value of specified parameter 
 | 
void | 
setBlastAdvancedOptions(String advancedOptions)
This method is to be used if a request is to use non-default values at submission. 
 | 
void | 
setBlastDatabase(String database)
Sets the database to be used with blastall 
 | 
void | 
setBlastExpect(double expect)
Sets the EXPECT parameter to be use with blastall 
 | 
void | 
setBlastFromToPosition(int start,
                      int end)
Sets the QUERY_FROM and QUERY_TO parameters to be use by blast. 
 | 
void | 
setBlastGapCosts(int gapCreation,
                int gapExtension)
Sets the GAPCOSTS parameter 
 | 
void | 
setBlastMatrix(BlastMatrixEnum matrix)
Sets the value for the MATRIX parameter to use for blastall 
 | 
void | 
setBlastProgram(BlastProgramEnum program)
Sets the program to be used with blastall 
 | 
void | 
setBlastWordSize(int word)
Sets the WORD_SIZE parameter to be use with blastall 
 | 
public String getAlignmentOption(String key)
getAlignmentOption(BlastAlignmentParameterEnum). Consider using it instead.getAlignmentOption in interface RemotePairwiseAlignmentPropertieskey - :a String with the required key for this map.public void setAlignementOption(String key, String val)
setAlignmentOption(BlastAlignmentParameterEnum, String). Consider using it
 instead.setAlignementOption in interface RemotePairwiseAlignmentPropertieskey - :the key use to designate the value to be storedval - :the actual value matched to keypublic Set<String> getAlignmentOptions()
getAlignmentOptions in interface RemotePairwiseAlignmentPropertiesSet with all keys held in this instance of the objectpublic String getAlignmentOption(BlastAlignmentParameterEnum key)
null if it is not set.public void setAlignmentOption(BlastAlignmentParameterEnum key, String val)
public void removeAlignmentOption(BlastAlignmentParameterEnum key)
public BlastProgramEnum getBlastProgram()
public void setBlastProgram(BlastProgramEnum program)
program - : one of blastall programspublic String getBlastDatabase()
public void setBlastDatabase(String database)
 A list of available databases can be acquired by calling NCBIQBlastService#printRemoteBlastInfo()
 
Blastall equivalent: -d
db - : a valid name to a NCBI blastable databasepublic double getBlastExpect()
public void setBlastExpect(double expect)
 Example: if you want a EXPECT of 1e-10, pass Double.parseDouble("1e-10") as a parameter
 
Blastall equivalent: -e
expect: - a double value of EXPECT parameterpublic int getBlastWordSize()
IllegalArgumentException - when program type is not set and program type is not supportedpublic void setBlastWordSize(int word)
WARNING!! At this point, the method does not verify the validity of your choice; for example, word size of greater than 5 with blastp returns error messages from QBlast. Word size range depends on the algorithm chosen.
More at http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/new/node74.html
Blastall equivalent: -W
word: - an int used to set WORD_SIZEpublic int getBlastGapCreation()
public int getBlastGapExtension()
public String getBlastGapCosts()
public void setBlastGapCosts(int gapCreation,
                             int gapExtension)
gapCreation - integer to use as gap creation valuegapExtension - integer to use as gap extension valuepublic String getBlastMatrix()
public void setBlastMatrix(BlastMatrixEnum matrix)
Blastall equivalent: -M
matrix - : a String to use as gap creation valueBlastMatrixEnumpublic void setBlastFromToPosition(int start,
                                   int end)
start - QUERY_FROM parameterend - QUERY_TO parameterpublic int getBlastFromPosition()
setBlastFromToPosition(int, int)public int getBlastToPosition()
setBlastFromToPosition(int, int)public void setBlastAdvancedOptions(String advancedOptions)
WARNING!! This method is still very much in flux and might not work as expected...
You have to be aware that at no moment is there any error checking on the use of these parameters by this class.
advancedOptions - : a String with any number of optional parameters with an associated value.public String getBlastAdvancedOptions()
Copyright © 2000–2016 BioJava. All rights reserved.