Home | Trees | Indices | Help |
|
---|
|
|
|||
| __init__(self, hmmdb=hmmDatabase, verbose=1, log=StdLog()) | ||
|
checkHmmdbIndex(self) Checks if the hmm database has been indexed or not, if not indexing will be done. |
||
dict, [list]
|
searchHmmdb(self,
target,
noSearch=None) Search hmm database with a sequence in fasta format. |
||
dict
|
selectMatches(self,
matches,
hits,
score_cutoff=60,
eValue_cutoff=1e-8) select what hmm profiles to use based on score and e-Value cutoff |
||
dict
|
getHmmProfile(self,
hmmName) Get the hmm profile with name hmmName from hmm databse. |
||
str, str, int, [int]
|
align(self,
model,
hits) Performs alignment If there is more than one hit with the profile, the sequence will be subdevided and the alignment will be performed on each part. |
||
str, str, [int]
|
removeGapInSeq(self,
fasta,
hmm) Removes position scorresponding to insertions in search sequence |
||
str OR None
|
mergeHmmSeq(self,
seq1,
seq2) Merges two sequence files into one. |
||
str, str
|
subAlign(self,
file) Align fasta formated sequence to hmm profile. |
||
dict
|
castHmmDic(self,
hmmDic,
repete,
hmmGap,
key) Blow up hmmDic to the number of repetes of the profile used. |
||
[float]
|
matchScore(self,
fastaSeq,
hmmSeq,
profileDic,
key) Get match emmision score for residues in search sequence |
||
array, dict
|
__score(self,
model,
key,
hmmNames=None) Get match emmission scores for search sequence. |
||
| scoreAbsSum(self, model, hmmNames=None) | ||
| scoreMaxAll(self, model, hmmNames=None) | ||
| scoreEntropy(self, model, hmmNames=None) | ||
| __list2array(self, lstOrAr) | ||
|
mergeProfiles(self,
p0,
p1,
maxOverlap=3) Merge profile p0 with profile p1, as long as they overlap in at most maxOverlap positions |
||
|
cleanup(self) remove temp files |
|
|
Checks if the hmm database has been indexed or not, if not indexing will be done. |
Search hmm database with a sequence in fasta format. If the profile names have been provided - skip the search and only write the temporary sequence files.
|
select what hmm profiles to use based on score and e-Value cutoff
|
Get the hmm profile with name hmmName from hmm databse. Extract some information about the profile as well as the match state emmission scores. Keys of the returned dictionary: 'AA', 'name', 'NrSeq', 'emmScore', 'accession', 'maxAllScale', 'seqNr', 'profLength', 'ent', 'absSum'
|
Performs alignment If there is more than one hit with the profile, the sequence will be subdevided and the alignment will be performed on each part. a final merger profile for the profile will be returned.
|
Removes position scorresponding to insertions in search sequence
|
Merges two sequence files into one. Multilple hits with one profile cannot overlap!! Overlap == ERROR
|
Align fasta formated sequence to hmm profile.
|
Blow up hmmDic to the number of repetes of the profile used. Correct scores for possible deletions in the search sequence.
|
Get match emmision score for residues in search sequence
|
Get match emmission scores for search sequence. If profile name(s) are provided, no search will be performed.
|
|
|
|
|
Merge profile p0 with profile p1, as long as they overlap in at most maxOverlap positions
|
remove temp files |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Tue May 1 22:34:55 2007 | http://epydoc.sourceforge.net |