Class BlastInput.Builder
java.lang.Object
uk.ac.ebi.uniprot.dataservice.client.alignment.blast.BlastInput.Builder
- Enclosing class:
- BlastInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDatabase(DatabaseOption database) Add an extra blast database to blast against.build()Takes all of the configured parameters and builds a validBlastInput.usingBlastVersion(BlastVersionOption blastVersion) The BLAST program to be used for the blast.withDropOff(DropOffOption dropOff) The amount a score can drop before gapped extension of word hits is halted.withExpectation(ExpectationOption expectation) Limits the number of scores and alignments reported based on the expectation value.withFilter(FilterOption filter) Filter regions of low sequence complexity.withGapAlign(boolean gapAlign) This is a true/false setting that tells the program the perform optimised alignments within regions involving gaps.withGapExt(int gapExt) Penalty taken away from the score for each base or residue in the gap.withGapOpen(int gapOpen) Penalty taken away from the score when a gap is created in sequence.withMatrix(MatrixOption matrix) Enumeration for all possible selections for similarity matrizes used for the BLAST service.Maximum number of match alignments reported in the result output.Maximum number of match alignments reported in the result output.withSequenceRange(int start, int stop) Specify a range or section of the input sequence to use in the search.withSequenceType(SequenceTypeOption sequenceType) Indicate whether the sequence to blast is from DNA/RNA or a protein.
-
Constructor Details
-
Builder
-
-
Method Details
-
withSequenceType
Indicate whether the sequence to blast is from DNA/RNA or a protein.- Parameters:
sequenceType- the chosen sequence type- Returns:
- the Builder
-
usingBlastVersion
The BLAST program to be used for the blast.- Parameters:
blastVersion- the chosen blast version- Returns:
- the Builder
-
withMatrix
Enumeration for all possible selections for similarity matrizes used for the BLAST service.- Parameters:
matrix- the chosen matrix algorithm- Returns:
- the Builder
-
withMaximumNumberOfAlignments
Maximum number of match alignments reported in the result output.- Parameters:
cutoff- the chosen maximum number of alignments- Returns:
- the Builder
-
withMaximumNumberOfScores
Maximum number of match alignments reported in the result output.- Parameters:
cutoff- the chosen maximum number of scores- Returns:
- the builder
-
withExpectation
Limits the number of scores and alignments reported based on the expectation value. This is the maximum number of times the match is expected to occur by chance.- Parameters:
expectation- the chosen expectation value- Returns:
- the Builder
-
withDropOff
The amount a score can drop before gapped extension of word hits is halted.- Parameters:
dropOff- the chosen drop off value- Returns:
- the Builder
-
withFilter
Filter regions of low sequence complexity. This can avoid issues with low complexity sequences where matches are found due to composition rather than meaningful sequence similarity. However in some cases filtering also masks regions of interest and so should be used with caution.- Parameters:
filter- the chosen filter option- Returns:
- the Builder
-
withGapAlign
This is a true/false setting that tells the program the perform optimised alignments within regions involving gaps. If set to true, the program will perform an alignment using gaps. Otherwise, if it is set to false, it will report only individual HSP where two sequence match each other, and thus will not produce alignments with gaps.- Parameters:
gapAlign- the chosen gap align option- Returns:
- the Builder
-
withGapOpen
Penalty taken away from the score when a gap is created in sequence. Increasing the gap opening penalty will decrease the number of gaps in the final alignment.- Parameters:
gapOpen- the chosen gap open value- Returns:
- the Builder
-
withGapExt
Penalty taken away from the score for each base or residue in the gap. Increasing the gap extension penalty favors short gaps in the final alignment, conversly decreasing the gap extension penalty favors long gaps in the final alignment.- Parameters:
gapExt- the chosen gap extension value- Returns:
- the Builder
-
withSequenceRange
Specify a range or section of the input sequence to use in the search. Example: Specifying '34-89' in an input sequence of total length 100, will tell BLAST to only use residues 34 to 89, inclusive.- Parameters:
start- amino acid start positionstop- amino acid stop position- Returns:
- the Builder
-
addDatabase
Add an extra blast database to blast against.- Parameters:
database- the extra database to add- Returns:
- the Builder
-
email
-
build
Takes all of the configured parameters and builds a validBlastInput.- Returns:
- a valid input parameter to submit a blast job
-