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

« back to all changes in this revision

Viewing changes to tests/test_core/test_entity.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:
4
4
"""
5
5
from copy import deepcopy, copy
6
6
import cPickle
7
 
try:
8
 
    from cogent.util.unit_test import TestCase, main
9
 
    from cogent.core.entity import Atom
10
 
    from cogent.parse.pdb import PDBParser
11
 
except ImportError:
12
 
    from zenpdb.cogent.util.unit_test import TestCase, main
13
 
    from zenpdb.core.entity import Atom
14
 
    from zenpdb.cogent.parse.pdb import PDBParser
 
7
from cogent.util.unit_test import TestCase, main
 
8
from cogent.core.entity import Atom
 
9
from cogent.core.sequence import ProteinSequence
 
10
from cogent.parse.pdb import PDBParser
15
11
 
16
12
 
17
13
__author__ = "Marcin Cieslik"
18
14
__copyright__ = "Copyright 2009, The Cogent Project"
19
15
__credits__ = ["Marcin Cieslik"]
20
16
__license__ = "GPL"
21
 
__version__ = "1.4.1"
 
17
__version__ = "1.5.0"
22
18
__maintainer__ = "Marcin Cieslik"
23
19
__email__ = "mpc4p@virginia.edu"
24
20
__status__ = "Development"
1678
1674
 
1679
1675
    def tearDown(self):
1680
1676
        self.structure = None
 
1677
        
 
1678
    def test_getSeq(self):
 
1679
        testSeq = self.working_chain.getSeq()
 
1680
        assert isinstance(testSeq, ProteinSequence)
 
1681
        assert testSeq == "DKPVAHVVANPQAEGQLQWSNRRANALLANGVELRDNQLVVPIEGL" \
 
1682
        "FLIYSQVLFKGQGCPSTHVLLTHTISRIAVSYQTKVNLLSAIKSPCQRETPEGAEAKPWYEPI" \
 
1683
        "YLGGVFQLEKGDRLSAEINRPDYLDFAESGQVYFGIIAL"
1681
1684
 
1682
1685
 
1683
1686