embpat.c


Function embPatSeqCreateRegExp

Create a regular expression for a string and substitute the chars for Nucleotides or proteins as needed.

Prototype

AjPStr embPatSeqCreateRegExp (
      const AjPStr thys,
      AjBool protein
);

TypeNameRead/WriteDescription
const AjPStrthysInputstring to create reg expr from.
AjBoolproteinInputis it a protein.
AjPStr RETURNthe new regular expression.

From EMBOSS 1.0.0


Function embPatSeqCreateRegExpC

Create a regular expression for a string and substitute the chars for Nucleotides or proteins as needed.

Prototype

AjPStr embPatSeqCreateRegExpC (
      const char* ptr,
      AjBool protein
);

TypeNameRead/WriteDescription
const char*ptrInputtext to create reg expr from.
AjBoolproteinInputis it a protein.
AjPStr RETURNthe new regular expression.

From EMBOSS 1.0.0


Function embPatSeqMatchFind

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatSeqMatchFind (
      const AjPSeq seq,
      const AjPStr reg
);

TypeNameRead/WriteDescription
const AjPSeqseqInputSequence to be searched.
const AjPStrregInputregular expression string.
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatSeqMatchFindC

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatSeqMatchFindC (
      const AjPSeq seq,
      const char* reg
);

TypeNameRead/WriteDescription
const AjPSeqseqInputSequence to be searched.
const char*regInputregular expression text.
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatSeqMatchFindAll

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatSeqMatchFindAll (
      const AjPSeq seq,
      const AjPStr reg
);

TypeNameRead/WriteDescription
const AjPSeqseqInputSequence to be searched.
const AjPStrregInputregular expression string.
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatSeqMatchFindAllC

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatSeqMatchFindAllC (
      const AjPSeq seq,
      const char* reg
);

TypeNameRead/WriteDescription
const AjPSeqseqInputSequence to be searched.
const char*regInputregular expression text.
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatMatchFind

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatMatchFind (
      const AjPStr regexp,
      const AjPStr strng,
      AjBool left,
      AjBool right
);

TypeNameRead/WriteDescription
const AjPStrregexpInputRegular expression string.
const AjPStrstrngInputString to be searched.
AjBoolleftInputhas to match the start
AjBoolrightInputhas to match the end
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatMatchFindC

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatMatchFindC (
      const AjPStr regexp,
      const char* sptr,
      AjBool left,
      AjBool right
);

TypeNameRead/WriteDescription
const AjPStrregexpInputRegular expression string.
const char*sptrInputString to be searched.
AjBoolleftInputhas to match the start
AjBoolrightInputhas to match the end
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatMatchFindAll

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatMatchFindAll (
      const AjPStr regexp,
      const AjPStr strng,
      AjBool left,
      AjBool right
);

TypeNameRead/WriteDescription
const AjPStrregexpInputRegular expression string.
const AjPStrstrngInputString to be searched.
AjBoolleftInputhas to match the start
AjBoolrightInputhas to match the end
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatMatchFindAllC

Find all the regular expression matches of reg in the string string.

Prototype

EmbPPatMatch embPatMatchFindAllC (
      const AjPStr regexp,
      const char* sptr,
      AjBool left,
      AjBool right
);

TypeNameRead/WriteDescription
const AjPStrregexpInputRegular expression string.
const char*sptrInputString to be searched.
AjBoolleftInputhas to match the start
AjBoolrightInputhas to match the end
EmbPPatMatch RETURNResults of the pattern matching.

From EMBOSS 1.0.0


Function embPatMatchGetLen

Returns the length from the pattern match structure for index'th item.

Prototype

ajuint embPatMatchGetLen (
      const EmbPPatMatch data,
      ajuint indexnum
);

TypeNameRead/WriteDescription
const EmbPPatMatchdataInputresults of match.
ajuintindexnumInputindex to structure.
ajuint RETURNreturns -1 if not available.

From EMBOSS 1.0.0


Function embPatMatchGetEnd

Returns the End point for the pattern match structure for index'th item.

Prototype

ajuint embPatMatchGetEnd (
      const EmbPPatMatch data,
      ajuint indexnum
);

TypeNameRead/WriteDescription
const EmbPPatMatchdataInputresults of match.
ajuintindexnumInputindex to structure.
ajuint RETURNreturns -1 if not available.

From EMBOSS 1.0.0


Function embPatMatchGetNumber

Returns the number of pattern matches in the structure.

Prototype

ajuint embPatMatchGetNumber (
      const EmbPPatMatch data
);

TypeNameRead/WriteDescription
const EmbPPatMatchdataInputresults of match.
ajuint RETURNreturns -1 if not available.

From EMBOSS 1.0.0


Function embPatMatchGetStart

Returns the start position from the pattern match structure for index'th item.

Prototype

ajuint embPatMatchGetStart (
      const EmbPPatMatch data,
      ajuint indexnum
);

TypeNameRead/WriteDescription
const EmbPPatMatchdataInputresults of match.
ajuintindexnumInputindex to structure.
ajuint RETURNreturns -1 if not available.

From EMBOSS 1.0.0


Function embPatMatchDel

Free all the memory from the pattern match search.

Prototype

void embPatMatchDel (
      EmbPPatMatch* pthis
);

TypeNameRead/WriteDescription
EmbPPatMatch*pthisDeleteresults to be freed.
void RETURN

From EMBOSS 1.0.0


Function embPatPrositeToRegExp

Convert a prosite pattern to a regular expression

Prototype

AjPStr embPatPrositeToRegExp (
      const AjPStr s
);

TypeNameRead/WriteDescription
const AjPStrsInputprosite pattern
AjPStr RETURNregular expression

From EMBOSS 1.0.0


Function embPatPrositeToRegExpEnds

Convert a prosite pattern to a regular expression string.

Prototype

AjPStr embPatPrositeToRegExpEnds (
      const AjPStr s,
      AjBool start,
      AjBool end
);

TypeNameRead/WriteDescription
const AjPStrsInputprosite pattern
AjBoolstartInputmust match start
AjBoolendInputmust match end
AjPStr RETURNregular expression

From EMBOSS 2.9.0


Function embPatRestrictNew

Create a new restriction object

Prototype

EmbPPatRestrict embPatRestrictNew (
      void
);

TypeNameRead/WriteDescription
EmbPPatRestrict RETURNthe allocated object

From EMBOSS 1.0.0


Function embPatRestrictDel

Delete a restriction object

Prototype

void embPatRestrictDel (
      EmbPPatRestrict* thys
);

TypeNameRead/WriteDescription
EmbPPatRestrict*thysDeleterestriction object
void RETURN

From EMBOSS 1.0.0


Function embPatRestrictReadEntry

Read next restriction enzyme from re file

Prototype

AjBool embPatRestrictReadEntry (
      EmbPPatRestrict re,
      AjPFile inf
);

TypeNameRead/WriteDescription
EmbPPatRestrictreOutputrestriction object to fill
AjPFileinfModifyinput file pointer
AjBool RETURNTrue if read successful

From EMBOSS 1.0.0


Function embPatRestrictScan

Scan a sequence with a restriction object

Prototype

ajuint embPatRestrictScan (
      const EmbPPatRestrict enz,
      const AjPStr substr,
      const AjPStr binstr,
      const AjPStr revstr,
      const AjPStr binrev,
      ajuint len,
      AjBool ambiguity,
      AjBool plasmid,
      ajuint min,
      ajuint max,
      ajuint begin,
      AjPList l
);

TypeNameRead/WriteDescription
const EmbPPatRestrictenzInputEnyme information
const AjPStrsubstrInputSequence as ASCII
const AjPStrbinstrInputSequence as binary IUB
const AjPStrrevstrInputSequence as ASCII reversed
const AjPStrbinrevInputSequence as binary IUB reversed
ajuintlenInputLength of sequence
AjBoolambiguityInputAllow ambiguity (binary search)
AjBoolplasmidInputAllow circular DNA
ajuintminInputMinimum # of matches allowed
ajuintmaxInputMaximum # of matches
ajuintbeginInputSequence offset
AjPListlModifyList to push hits to
ajuint RETURNNumber of matches

From EMBOSS 1.0.0


Function embPatKMPInit

Initialise a Knuth-Morris-Pratt pattern.

Prototype

void embPatKMPInit (
      const AjPStr pat,
      ajuint len,
      ajint* next
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuintlenInputlength of pattern
ajint*nextOutputoffset table
void RETURN

From EMBOSS 1.0.0


Function embPatKMPSearch

Perform a Knuth-Morris-Pratt search

Prototype

ajuint embPatKMPSearch (
      const AjPStr str,
      const AjPStr pat,
      ajuint slen,
      ajuint plen,
      const ajint* next,
      ajuint start
);

TypeNameRead/WriteDescription
const AjPStrstrInputstring to search
const AjPStrpatInputpattern to use
ajuintslenInputlength of string
ajuintplenInputlength of pattern
const ajint*nextInputarray from embPatKMPInit (can be -1)
ajuintstartInputposition within str to start search
ajuint RETURNIndex of match in str or -1 if not found

From EMBOSS 1.0.0


Function embPatBMHInit

Initialise a Boyer-Moore-Horspool pattern.

Prototype

void embPatBMHInit (
      const AjPStr pat,
      ajuint len,
      ajint* skip
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuintlenInputpattern length
ajint*skipOutputoffset table (can be -1)
void RETURN

From EMBOSS 1.0.0


Function embPatBMHSearch

Perform a Boyer-Moore-Horspool search

Prototype

ajuint embPatBMHSearch (
      const AjPStr str,
      const AjPStr pat,
      ajuint slen,
      ajuint plen,
      const ajint* skip,
      ajuint start,
      AjBool left,
      AjBool right,
      AjPList l,
      const AjPStr name,
      ajuint begin
);

TypeNameRead/WriteDescription
const AjPStrstrInputstring to search
const AjPStrpatInputpattern to use
ajuintslenInputlength of string
ajuintplenInputlength of pattern
const ajint*skipInputarray from embPatBMHInit (can be -1)
ajuintstartInputposition within str to start search
AjBoolleftInputhas to match the start
AjBoolrightInputhas to match the end
AjPListlModifylist to push to
const AjPStrnameInputname of entry
ajuintbeginInputoffset in orig sequence
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatBYPInit

Initialise a Baeza-Yates,Perleberg pattern.

Prototype

void embPatBYPInit (
      const AjPStr pat,
      ajuint len,
      EmbPPatBYPNode offset,
      ajint* buf
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuintlenInputpattern length
EmbPPatBYPNodeoffsetOutputcharacter index
ajint*bufOutputmismatch count
void RETURN

From EMBOSS 1.0.0


Function embPatPushHit

Put a matching string search hit on the heap as an EmbPMatMatch structure

Prototype

void embPatPushHit (
      AjPList l,
      const AjPStr name,
      ajuint pos,
      ajuint plen,
      ajuint begin,
      ajuint mm
);

TypeNameRead/WriteDescription
AjPListlModifylist to push to
const AjPStrnameInputstring name
ajuintposInputSequence match position
ajuintplenInputpattern length
ajuintbeginInputSequence offset
ajuintmmInputnumber of mismatches
void RETURN

From EMBOSS 1.0.0


Function embPatBYPSearch

Perform a Baeza-Yates,Perleberg search.

Prototype

ajuint embPatBYPSearch (
      const AjPStr str,
      const AjPStr name,
      ajuint begin,
      ajuint slen,
      ajuint plen,
      ajuint mm,
      EmbPPatBYPNode offset,
      ajint* buf,
      AjPList l,
      AjBool amino,
      AjBool carboxyl,
      const AjPStr pat
);

TypeNameRead/WriteDescription
const AjPStrstrInputsearch string
const AjPStrnameInputsearch string
ajuintbeginInputsequence offset
ajuintslenInputstring length
ajuintplenInputpattern length
ajuintmmInputallowed mismatches (Hamming distance)
EmbPPatBYPNodeoffsetModifycharacter index
ajint*bufModifymismatch count array
AjPListlModifylist to push hits to
AjBoolaminoInputif true, match at amino terminal end
AjBoolcarboxylInputif true, match at carboxyl terminal end
const AjPStrpatInputoriginal pattern
ajuint RETURNnumber of matches

From EMBOSS 1.0.0


Function embPatClassify

Classify patterns according to type. The pattern is set up upper case, has start and end processing turned into boolean flags. Sets other boolean flags for properties of the pattern so that a suitable processing method can be selected.

Prototype

AjBool embPatClassify (
      const AjPStr pat,
      AjPStr* cleanpat,
      AjBool* amino,
      AjBool* carboxyl,
      AjBool* fclass,
      AjBool* ajcompl,
      AjBool* dontcare,
      AjBool* range,
      AjBool protein
);

TypeNameRead/WriteDescription
const AjPStrpatInputoriginal pattern
AjPStr*cleanpatOutputcleaned pattern
AjBool*aminoOutputset if must match start of sequence
AjBool*carboxylOutputset if must match end of sequence
AjBool*fclassOutputset if class e.g. [ABC]
AjBool*ajcomplOutputset if complement e.g.
AjBool*dontcareOutputset if X (protein) or N (DNA)
AjBool*rangeOutputset if range specified e.g. (3,10)
AjBoolproteinInputtrue if protein false if DNA
AjBool RETURNajTrue on success

Usage

ajcompl: ABC From EMBOSS 1.0.0

Function embPatSOInit

Initialise a Shift-Or pattern.

Prototype

void embPatSOInit (
      const AjPStr pat,
      ajuint* table,
      ajuint* limit
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuint*tableOutputSO table
ajuint*limitOutputmatch limit
void RETURN

From EMBOSS 1.0.0


Function embPatSOSearch

Perform a Shift-OR search.

Prototype

ajuint embPatSOSearch (
      const AjPStr str,
      const AjPStr name,
      ajint first,
      ajuint begin,
      ajuint plen,
      const ajuint* table,
      ajuint limit,
      AjPList l,
      AjBool amino,
      AjBool carboxyl
);

TypeNameRead/WriteDescription
const AjPStrstrInputsearch string
const AjPStrnameInputsearch string
ajintfirstInputfirst character of pattern (as an integer)
ajuintbeginInputsequence offset
ajuintplenInputpattern length
const ajuint*tableInputSO table
ajuintlimitInputSO limit
AjPListlModifylist to push hits to
AjBoolaminoInputmust match start
AjBoolcarboxylInputmust match end
ajuint RETURNnumber of matches

From EMBOSS 1.0.0


Function embPatBYGCInit

Initialise a Baeza-Yates Gonnet class pattern.

Prototype

void embPatBYGCInit (
      const AjPStr pat,
      ajuint* m,
      ajuint* table,
      ajuint* limit
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuint*mOutputreal pattern length
ajuint*tableOutputSO table
ajuint*limitOutputmatch limit
void RETURN

From EMBOSS 1.0.0


Function embPatBYGSearch

Perform a Baeza-Yates Gonnet search.

Prototype

ajuint embPatBYGSearch (
      const AjPStr str,
      const AjPStr name,
      ajuint begin,
      ajuint plen,
      const ajuint* table,
      ajuint limit,
      AjPList l,
      AjBool amino,
      AjBool carboxyl
);

TypeNameRead/WriteDescription
const AjPStrstrInputsearch string
const AjPStrnameInputsearch string
ajuintbeginInputsequence offset
ajuintplenInputpattern length
const ajuint*tableInputSO table
ajuintlimitInputSO limit
AjPListlModifylist to push hits to
AjBoolaminoInputmust match start
AjBoolcarboxylInputmust match end
ajuint RETURNnumber of matches

From EMBOSS 1.0.0


Function embPatTUInit

Initialise a Tarhio-Ukkonen search

Prototype

void embPatTUInit (
      const AjPStr pat,
      ajuint** skipm,
      ajuint m,
      ajuint k
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuint**skipmOutputmismatch skip array
ajuintmInputreal pattern length
ajuintkInputallowed mismatches
void RETURN

From EMBOSS 1.0.0


Function embPatTUSearch

Perform a Tarhio-Ukkonen search

Prototype

ajuint embPatTUSearch (
      const AjPStr pat,
      const AjPStr text,
      ajuint slen,
      ajuint* const* skipm,
      ajuint m,
      ajuint k,
      ajuint begin,
      AjPList l,
      AjBool amino,
      AjBool carboxyl,
      const AjPStr name
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
const AjPStrtextInputtext to search (incl ajcompl/class)
ajuintslenInputlength of text
ajuint* const*skipmInputmismatch skip array
ajuintmInputreal pattern length
ajuintkInputallowed mismatches
ajuintbeginInputtext offset
AjPListlModifylist to push to
AjBoolaminoInputtrue if text start
AjBoolcarboxylInputtrue if text end
const AjPStrnameInputname of text
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatTUBInit

Initialise a Tarhio-Ukkonen-Bleasby search

Prototype

void embPatTUBInit (
      const AjPStr pat,
      ajuint** skipm,
      ajuint m,
      ajuint k,
      ajuint plen
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
ajuint**skipmOutputmismatch skip array
ajuintmInputreal pattern length
ajuintkInputallowed mismatches
ajuintplenInputfull pattern length (incl ajcompl & class)
void RETURN

From EMBOSS 1.0.0


Function embPatTUBSearch

Perform a Tarhio-Ukkonen-Bleasby search

Prototype

ajuint embPatTUBSearch (
      const AjPStr pat,
      const AjPStr text,
      ajuint slen,
      ajuint* const* skipm,
      ajuint m,
      ajuint k,
      ajuint begin,
      AjPList l,
      AjBool amino,
      AjBool carboxyl,
      const AjPStr name,
      ajuint plen
);

TypeNameRead/WriteDescription
const AjPStrpatInputpattern
const AjPStrtextInputtext to search (incl ajcompl/class)
ajuintslenInputlength of text
ajuint* const*skipmInputmismatch skip array
ajuintmInputreal pattern length
ajuintkInputallowed mismatches
ajuintbeginInputtext offset
AjPListlModifylist to push to
AjBoolaminoInputtrue if text start
AjBoolcarboxylInputtrue if text end
const AjPStrnameInputname of text
ajuintplenInputtotal pattern length
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatBruteForce

Match pattern to a sequence

Prototype

ajuint embPatBruteForce (
      const AjPStr seq,
      const AjPStr pat,
      AjBool amino,
      AjBool carboxyl,
      AjPList l,
      ajuint begin,
      ajuint mm,
      const AjPStr name
);

TypeNameRead/WriteDescription
const AjPStrseqInputtext
const AjPStrpatInputpattern
AjBoolaminoInputtrue if must match start
AjBoolcarboxylInputtrue if must match end
AjPListlModifylist on which to push hits
ajuintbeginInputtext offset
ajuintmmInputallowed mismatches
const AjPStrnameInputtext entry name
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatVariablePattern

Match variable pattern against constant text. Used for matching many patterns against one sequence.

Prototype

ajuint embPatVariablePattern (
      const AjPStr pattern,
      const AjPStr text,
      const AjPStr patname,
      AjPList l,
      ajuint mode,
      ajuint mismatch,
      ajuint begin
);

TypeNameRead/WriteDescription
const AjPStrpatternInputpattern to match
const AjPStrtextInputtext to scan
const AjPStrpatnameInputID or AC of pattern
AjPListlModifylist on which to push hits
ajuintmodeInput1 for protein, 0 for nucleic acid
ajuintmismatchInputallowed mismatches
ajuintbeginInputtext offset
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatRestrictPreferred

Replace RE names by the name of the prototype for that RE

Prototype

void embPatRestrictPreferred (
      AjPList l,
      const AjPTable t
);

TypeNameRead/WriteDescription
AjPListlModifylist of EmbPMatMatch hits
const AjPTabletInputtable from embossre.equ file
void RETURN

From EMBOSS 2.7.0


Function embPatRestrictRestrict

Cut down the number of restriction enzyme hits from embPatRestrictScan Notably double reporting of symmetric palindromes and reporting of isoschizomers. Also provides an optional alphabetic sort.

Prototype

ajuint embPatRestrictRestrict (
      AjPList l,
      ajuint hits,
      AjBool isos,
      AjBool alpha
);

TypeNameRead/WriteDescription
AjPListlModifylist of hits from embPatRestrictScan
ajuinthitsInputnumber of hits from embPatRestrictScan
AjBoolisosInputAllow isoschizomers
AjBoolalphaInputSort alphabetically
ajuint RETURNadjusted number of hits

From EMBOSS 1.0.0


Function embPatRestrictStartCompare

Sort restriction site hits on the basis of start position

Prototype

ajint embPatRestrictStartCompare (
      const void* a,
      const void* b
);

TypeNameRead/WriteDescription
const void*aInputFirst EmbPMatMatch hit
const void*bInputSecond EmbPMatMatch hit
ajint RETURN0 if a and b are equal -ve if a is less than b, +ve if a is greater than b

From EMBOSS 1.13.0


Function embPatRestrictCutCompare

Sort restriction site hits on the basis of cut position

Prototype

ajint embPatRestrictCutCompare (
      const void* a,
      const void* b
);

TypeNameRead/WriteDescription
const void*aInputFirst EmbPMatMatch hit
const void*bInputSecond EmbPMatMatch hit
ajint RETURN0 if a and b are equal -ve if a is less than b, +ve if a is greater than b

From EMBOSS 1.13.0


Function embPatRestrictNameCompare

Sort restriction site hits on the basis of enzyme name

Prototype

ajint embPatRestrictNameCompare (
      const void* a,
      const void* b
);

TypeNameRead/WriteDescription
const void*aInputFirst EmbPMatMatch hit
const void*bInputSecond EmbPMatMatch hit
ajint RETURN0 if a and b are equal -ve if a is less than b, +ve if a is greater than b

From EMBOSS 1.13.0


Function embPatRestrictMatch

Main Restriction function. Scans sequence and rejects unwanted cutters

Prototype

ajuint embPatRestrictMatch (
      const AjPSeq seq,
      ajuint begin,
      ajuint end,
      AjPFile enzfile,
      AjPFile methfile,
      const AjPStr enzymes,
      ajuint sitelen,
      AjBool plasmid,
      AjBool ambiguity,
      ajuint min,
      ajuint max,
      AjBool blunt,
      AjBool sticky,
      AjBool commercial,
      AjBool methyl,
      AjPList l
);

TypeNameRead/WriteDescription
const AjPSeqseqInputsequence
ajuintbeginInputstart position in sequence
ajuintendInputend position in sequence
AjPFileenzfileModifyfile pointer to .enz file
AjPFilemethfileModifyfile pointer to methylation data file
const AjPStrenzymesInputcomma separated list of REs or NULL for all
ajuintsitelenInputminimum length of recognition site
AjBoolplasmidInputCircular DNA
AjBoolambiguityInputAllow ambiguities
ajuintminInputminimum number of true cuts
ajuintmaxInputmaximum number of true cuts
AjBoolbluntInputAllow blunt cutters
AjBoolstickyInputAllow sticky cutters
AjBoolcommercialInputAllow Only report REs with a supplier
AjBoolmethylInputMark methylated bases as 'N'
AjPListlModifylist for (EmbPMatMatch) hits
ajuint RETURNnumber of hits

From EMBOSS 1.0.0


Function embPatGetType

Return the type of a pattern

Prototype

ajuint embPatGetType (
      const AjPStr pattern,
      AjPStr* cleanpat,
      ajuint mismatch,
      AjBool protein,
      ajuint* m,
      AjBool* left,
      AjBool* right
);

TypeNameRead/WriteDescription
const AjPStrpatternInputoriginal pattern
AjPStr*cleanpatOutputcleaned pattern
ajuintmismatchInputnumber of allowed mismatches
AjBoolproteinInputtrue if protein
ajuint*mOutputreal length of pattern
AjBool*leftOutputmust match left begin
AjBool*rightOutputmust match right
ajuint RETURNtype of pattern

From EMBOSS 1.0.0


Function embPatCompile

Compile a pattern classified by embPatGetType

Prototype

void embPatCompile (
      ajuint type,
      const AjPStr pattern,
      ajuint* plen,
      ajint** buf,
      EmbPPatBYPNode off,
      ajuint** sotable,
      ajuint* solimit,
      ajuint* m,
      AjPStr* regexp,
      ajuint*** skipm,
      ajuint mismatch
);

TypeNameRead/WriteDescription
ajuinttypeInputpattern type
const AjPStrpatternInputoriginal pattern
ajuint*plenOutputpattern length
ajint**bufOutputbuffer for BMH and BYP search (can be -1)
EmbPPatBYPNodeoffOutputoffset buffer for B-Y/P search
ajuint**sotableOutputbuffer for SHIFT-OR
ajuint*solimitOutputlimit for SHIFT-OR
ajuint*mOutputreal length of pattern (from embPatGetType)
AjPStr*regexpOutputPCRE regexp string
ajuint***skipmOutputskip buffer for Tarhio-Ukkonen
ajuintmismatchInputnumber of allowed mismatches
void RETURN

From EMBOSS 1.0.0


Function embPatFuzzSearch

Fuzzy search after embPatGetType and embPatCompile

Prototype

void embPatFuzzSearch (
      ajuint type,
      ajuint begin,
      const AjPStr pattern,
      const AjPStr name,
      const AjPStr text,
      AjPList l,
      ajuint plen,
      ajuint mismatch,
      AjBool left,
      AjBool right,
      ajint* buf,
      EmbPPatBYPNode off,
      const ajuint* sotable,
      ajuint solimit,
      const AjPStr regexp,
      ajuint* const* skipm,
      ajuint* hits,
      ajuint m,
      const void** tidy
);

TypeNameRead/WriteDescription
ajuinttypeInputpattern type
ajuintbeginInputtext displacement (1=start)
const AjPStrpatternInputprocessed pattern
const AjPStrnameInputname associated with text
const AjPStrtextInputtext
AjPListlModifylist to push hits onto
ajuintplenInputpattern length
ajuintmismatchInputnumber of allowed mismatches
AjBoolleftInputmust match left
AjBoolrightInputmust match right
ajint*bufModifybuffer for BMH search, or mismatch count for BYP search
EmbPPatBYPNodeoffModifyoffset buffer for B-Y/P search
const ajuint*sotableInputbuffer for SHIFT-OR
ajuintsolimitInputlimit for SHIFT-OR
const AjPStrregexpInputPCRE regexp string
ajuint* const*skipmInputskip buffer for Tarhio-Ukkonen-Bleasby
ajuint*hitsOutputnumber of hits
ajuintmInputreal pat length (from embPatGetType/embPatCompile)
const void**tidyOutputdata to free
void RETURN

From EMBOSS 1.0.0


Function embPatFuzzSearchAll

Fuzzy search after embPatGetType and embPatCompile

Prototype

void embPatFuzzSearchAll (
      ajuint type,
      ajuint begin,
      const AjPStr pattern,
      const AjPStr name,
      const AjPStr text,
      AjPList l,
      ajuint plen,
      ajuint mismatch,
      AjBool left,
      AjBool right,
      ajint* buf,
      EmbPPatBYPNode off,
      const ajuint* sotable,
      ajuint solimit,
      const AjPStr regexp,
      ajuint* const* skipm,
      ajuint* hits,
      ajuint m,
      const void** tidy
);

TypeNameRead/WriteDescription
ajuinttypeInputpattern type
ajuintbeginInputtext displacement (1=start)
const AjPStrpatternInputprocessed pattern
const AjPStrnameInputname associated with text
const AjPStrtextInputtext
AjPListlModifylist to push hits onto
ajuintplenInputpattern length
ajuintmismatchInputnumber of allowed mismatches
AjBoolleftInputmust match left
AjBoolrightInputmust match right
ajint*bufModifybuffer for BMH search
EmbPPatBYPNodeoffModifyoffset buffer for B-Y/P search
const ajuint*sotableInputbuffer for SHIFT-OR
ajuintsolimitInputlimit for SHIFT-OR
const AjPStrregexpInputPCRE regexp string
ajuint* const*skipmInputskip buffer for Tarhio-Ukkonen-Bleasby
ajuint*hitsOutputnumber of hits
ajuintmInputreal pat length (from embPatGetType/embPatCompile)
const void**tidyOutputdata to free
void RETURN

From EMBOSS 1.0.0


Function embPatCompileII

Compile a pattern classified by embPatGetType

Prototype

void embPatCompileII (
      AjPPatComp thys,
      ajuint mismatch
);

TypeNameRead/WriteDescription
AjPPatCompthysModifyProsite pattern stucture
ajuintmismatchInputnumber of allowed mismatches
void RETURN

From EMBOSS 4.0.0


Function embPatFuzzSearchII

Fuzzy search after embPatGetType and embPatCompile

Prototype

void embPatFuzzSearchII (
      AjPPatComp thys,
      ajuint begin,
      const AjPStr name,
      const AjPStr text,
      AjPList l,
      ajuint mismatch,
      ajuint* hits,
      const void** tidy
);

TypeNameRead/WriteDescription
AjPPatCompthysModifyProsite pattern stucture
ajuintbeginInputSequence displacement (1=start)
const AjPStrnameInputName associated with sequence
const AjPStrtextInputSequence
AjPListlModifyList to push hits onto
ajuintmismatchInputnumber of allowed mismatches
ajuint*hitsOutputnumber of hits
const void**tidyOutputdata to free
void RETURN

From EMBOSS 4.0.0


Function embPatFuzzSearchAllII

Fuzzy search after embPatGetType and embPatCompile

Prototype

void embPatFuzzSearchAllII (
      AjPPatComp thys,
      ajuint begin,
      const AjPStr name,
      const AjPStr text,
      AjPList l,
      ajuint mismatch,
      ajuint* hits,
      const void** tidy
);

TypeNameRead/WriteDescription
AjPPatCompthysModifyProsite pattern stucture
ajuintbeginInputSequence displacement (1=start)
const AjPStrnameInputName associated with sequence
const AjPStrtextInputSequence
AjPListlModifyList to push hits onto
ajuintmismatchInputnumber of allowed mismatches
ajuint*hitsOutputnumber of hits
const void**tidyOutputdata to free
void RETURN

From EMBOSS 4.0.0


Function embPatGetTypeII

Return the type of a pattern

Prototype

ajuint embPatGetTypeII (
      AjPPatComp thys,
      const AjPStr pattern,
      ajuint mismatch,
      AjBool protein
);

TypeNameRead/WriteDescription
AjPPatCompthysModifyProsite pattern stucture
const AjPStrpatternInputOriginal pattern
ajuintmismatchInputNumber of allowed mismatches
AjBoolproteinInputTrue if protein
ajuint RETURNtype of pattern

From EMBOSS 4.0.0