class RestrictionEnzyme extends java.lang.Object
A simple class for matching motifs in restriction enzymes to FASTA sequence. Only works with cutters that recognise fixed length motifs for now.
Type | Name and description |
---|---|
static java.lang.String |
HALOPLEX_DEFAULT_ENZYMES Enzymes possibly used by HaloPlex, extracted from the UCSC cutters database |
RestrictionEnzyme |
complement |
java.lang.String |
forwardPrefix |
java.util.regex.Pattern |
forwardPrefixPattern |
java.lang.String |
forwardSuffix |
java.util.regex.Pattern |
forwardSuffixPattern |
java.lang.String |
motif |
int |
motifSize |
java.lang.String |
name |
java.lang.String |
reversePrefix |
java.util.regex.Pattern |
reversePrefixPattern |
java.lang.String |
reverseSuffix |
java.util.regex.Pattern |
reverseSuffixPattern |
Constructor and description |
---|
RestrictionEnzyme
(java.lang.String name, java.lang.String motif, int forwardCutPoint, int overHang, boolean withComplement) Create a restriction enzyme object with given name, motif cut point and overhang. |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
cutsSequenceBefore(java.lang.String sequence, int position) Returns true if this restriction enzyme would cut the given sequence in between the given position and the previous position. |
|
static java.util.List |
load(java.lang.String fileName) |
|
static java.util.List |
load(java.io.InputStream inStream) Convenience method to load enzymes from UCSC's cutter table format |
|
java.lang.String |
toRegex(java.lang.String motif) Convert N's to wildcards and select IUPAC codes to appropriate character sets |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Enzymes possibly used by HaloPlex, extracted from the UCSC cutters database
Create a restriction enzyme object with given name, motif cut point and overhang.
Returns true if this restriction enzyme would cut the given sequence in between the given position and the previous position.
position
- zero-based position. ie: 0 means the cut would be prior to the first base in the sequenceConvenience method to load enzymes from UCSC's cutter table format
inStream
- Input stream to load fromConvert N's to wildcards and select IUPAC codes to appropriate character sets
Groovy Documentation