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

« back to all changes in this revision

Viewing changes to cogent/app/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:
1
1
#!/usr/bin/env python
2
2
"""
3
3
Provides an application controller for the commandline version of:
4
 
Infernal 1.0
 
4
Infernal 1.0 and 1.0.2 only.
5
5
"""
6
6
from cogent.app.parameters import FlagParameter, ValuedParameter, FilePath
7
7
from cogent.app.util import CommandLineApplication, ResultPath, get_tmp_filename
19
19
__copyright__ = "Copyright 2007-2009 2007, The Cogent Project"
20
20
__credits__ = ["Jeremy Widmann"]
21
21
__license__ = "GPL"
22
 
__version__ = "1.4.1"
 
22
__version__ = "1.5.0"
23
23
__maintainer__ = "Jeremy Widmann"
24
24
__email__ = "jeremy.widmann@colorado.edu"
25
25
__status__ = "Development"
1510
1510
    res = app(paths)
1511
1511
    
1512
1512
    search_results = list(CmsearchParser(res['SearchResults'].readlines()))
1513
 
 
1514
1513
    if search_results:
1515
1514
        for i,line in enumerate(search_results):
1516
 
            label = line[0]
1517
 
            search_results[i][0]=int_keys.get(label,label)
 
1515
            label = line[1]
 
1516
            search_results[i][1]=int_keys.get(label,label)
1518
1517
    
1519
1518
    res.cleanUp()
1520
1519
    for f in to_remove:remove(f)
1558
1557
    
1559
1558
    if search_results:    
1560
1559
        for i,line in enumerate(search_results):
1561
 
            label = line[0]
1562
 
            search_results[i][0]=int_keys.get(label,label)
 
1560
            label = line[1]
 
1561
            search_results[i][1]=int_keys.get(label,label)
1563
1562
    
1564
1563
    res.cleanUp()
1565
1564