# HG changeset patch # User edward-kirton # Date 1307481997 14400 # Node ID 079d22a62f416ddd17e0f7052c0c5fe328a84df4 Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository diff -r 000000000000 -r 079d22a62f41 hmmer/hmmer.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hmmer/hmmer.py Tue Jun 07 17:26:37 2011 -0400 @@ -0,0 +1,55 @@ +""" +Hmmer classes +""" + +import data +import logging +import re +import string +from cgi import escape +from galaxy.datatypes.metadata import MetadataElement +from galaxy.datatypes import metadata +import galaxy.model +from galaxy import util +from sniff import * + +log = logging.getLogger(__name__) + +class Hmm( data.Text ): + """Class for hmmer database files""" + + file_ext = 'hmm' + + def init_meta( self, dataset, copy_from=None ): + data.Text.init_meta( self, dataset, copy_from=copy_from ) + +class HmmPressed( Hmm ): + """Class describing a hmmer database produced by hmmpress""" + + file_ext = 'hmmPressed' + composite_type='basic' + + MetadataElement( readonly=True, optional=True, visible=False, no_value=0 ) + + def __init__(self,**kwd): + data.Data.__init__(self, **kwd) + self.add_composite_file('hmm') + self.add_composite_file('hmm.h3m') + self.add_composite_file('hmm.h3i') + self.add_composite_file('hmm.h3f') + self.add_composite_file('hmm.h3p') + def set_peek( self, dataset, is_multi_byte=False ): + if not dataset.dataset.purged: + dataset.peek = "Folder of multiple files" + dataset.blurb = "Folder of multiple files" + else: + dataset.peek = 'file does not exist' + dataset.blurb = 'file purged from disk' + def display_peek( self, dataset ): + try: + return dataset.peek + except: + return "Folder of multiple files" + def get_mime(self): + """Returns the mime type of the datatype""" + return 'text/plain' diff -r 000000000000 -r 079d22a62f41 hmmer/hmmscan.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hmmer/hmmscan.xml Tue Jun 07 17:26:37 2011 -0400 @@ -0,0 +1,150 @@ + +Search pfam +hmmscan +--tblout $tblout +--domtblout $domtblout +$acc +$noali +--notextw +#if $threshold.select == 'E': +-E $threshold.profile +--domE $threshold.dom +#else: +-T $threshold.profile +--domT $threshold.dom +#end if +--incE $incE +--incdomE $incdomE +#if $acceleration.select == "1": +$acceleration.max +--F1 $acceleration.F1 +--F2 $acceleration.F2 +--F3 $acceleration.F3 +$acceleration.nobias +#end if +#if $other.select == "1": +$other.nonull2 +--seed $other.seed +#end if +$hmmdb.file +$seqfile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hmmscan + + + + +.. class:: warningmark + +**Note**. Hidden Markov Model (HMM) searches take a substantial amount of time. +For large input datasets it is advisable to allow overnight processing. + +----- + +**What it does** + +hmmscan is used to search sequences against collections of profiles. For each sequence in seqfile, +use that query sequence to search the target database of profiles in hmmdb, and output ranked lists of +the profiles with the most significant matches to the sequence. + +The seqfile may contain more than one query sequence. It can be in FASTA format, or several other +common sequence file formats (genbank, embl, and uniprot, among others), or in alignment file formats +(stockholm, aligned fasta, and others). + +The hmmdb needs to be pressed using hmmpress before it can be searched with hmmscan. + +**Author** + +Sean Eddy, Howard Hughes Medical Institute and Dept. of Genetics, Washington University School of Medicine + +http://www.genetics.wustl.edu/eddy/ + +**Manual** + +ftp://selab.janelia.org/pub/software/hmmer/CURRENT/Userguide.pdf + +