~ubuntu-branches/ubuntu/natty/python-cogent/natty

« back to all changes in this revision

Viewing changes to tests/test_app/test_infernal.py

  • Committer: Bazaar Package Importer
  • Author(s): Steffen Moeller
  • Date: 2010-12-04 22:30:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101204223035-j11kinhcrrdgg2p2
Tags: 1.5-1
* Bumped standard to 3.9.1, no changes required.
* New upstream version.
  - major additions to Cookbook
  - added AlleleFreqs attribute to ensembl Variation objects.
  - added getGeneByStableId method to genome objects.
  - added Introns attribute to Transcript objects and an Intron class.
  - added Mann-Whitney test and a Monte-Carlo version
  - exploratory and confirmatory period estimation techniques (suitable for
    symbolic and continuous data)
  - Information theoretic measures (AIC and BIC) added
  - drawing of trees with collapsed nodes
  - progress display indicator support for terminal and GUI apps
  - added parser for illumina HiSeq2000 and GAiix sequence files as 
    cogent.parse.illumina_sequence.MinimalIlluminaSequenceParser.
  - added parser to FASTQ files, one of the output options for illumina's
    workflow, also added cookbook demo.
  - added functionality for parsing of SFF files without the Roche tools in
    cogent.parse.binary_sff
  - thousand fold performance improvement to nmds
  - >10-fold performance improvements to some Table operations

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
__copyright__ = "Copyright 2007-2009, The Cogent Project"
21
21
__credits__ = ["Jeremy Widmann"]
22
22
__license__ = "GPL"
23
 
__version__ = "1.4.1"
 
23
__version__ = "1.5.0"
24
24
__maintainer__ = "Jeremy Widmann"
25
25
__email__ = "jeremy.widmann@colorado.edu"
26
26
__status__ = "Development"
437
437
        search_res = cmsearch_from_alignment(aln=self.seqs2_aligned,\
438
438
            structure_string=self.struct2_aligned_string,\
439
439
            seqs=self.seqs2_unaligned,moltype=RNA)
440
 
        
441
 
        self.assertEqual(search_res,exp_search_res)
 
440
        for search, exp in zip(search_res, exp_search_res):
 
441
            self.assertEqual(search[1:],exp)
442
442
    
443
443
    def test_cmsearch_from_file_no_hits(self):
444
444
        """cmsearch_from_file should work as expected
454
454
                          ['b', 1, 19, 1, 19, 14.359999999999999, '-', 47]]
455
455
        search_res = cmsearch_from_file(cm_file_path=self.cmfile,\
456
456
            seqs=self.seqs2_unaligned,moltype=RNA)
457
 
        self.assertEqual(search_res,exp_search_res)
 
457
        for search, exp in zip(search_res, exp_search_res):
 
458
            self.assertEqual(search[1:],exp)
458
459
        
459
460
class CmstatTests(GeneralSetUp):
460
461
    """Tests for the Cmstat application controller"""