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

« back to all changes in this revision

Viewing changes to cogent/format/alignment.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:
1
1
#!/usr/bin/env python
2
 
import os, logging
3
 
LOG = logging.getLogger('cogent.output')
 
2
import os
4
3
 
5
4
__author__ = "Peter Maxwell and Gavin Huttley"
6
5
__copyright__ = "Copyright 2007-2009, The Cogent Project"
7
6
__credits__ = ["Peter Maxwell", "Gavin Huttley"]
8
7
__license__ = "GPL"
9
 
__version__ = "1.4.1"
 
8
__version__ = "1.5.0"
10
9
__maintainer__ = "Gavin Huttley"
11
10
__email__ = "gavin.huttley@anu.edu.au"
12
11
__status__ = "Production"
139
138
                if not block:
140
139
                    # write the otu name
141
140
                    if len(seqname) > 9:
142
 
                        LOG.warning('Warning: name (%s) is too long, truncated to %s'
 
141
                        warnings.warn('Name "%s" too long, truncated to "%s"'
143
142
                            % (seqname, seqname[:9]))
144
143
                        prefix = '%-10s' % seqname[:9]
145
144
                    else: prefix = '%-10s' % seqname