Mercurial > repos > galaxyp > protxml_to_xls
comparison protxml_datatypes.py @ 0:156ef965340e draft default tip
Uploaded
author | galaxyp |
---|---|
date | Wed, 08 Oct 2014 13:46:58 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:156ef965340e |
---|---|
1 from galaxy.datatypes.tabular import Tabular | |
2 import logging | |
3 | |
4 log = logging.getLogger(__name__) | |
5 | |
6 | |
7 class ProtXmlReport(Tabular): | |
8 """protxml converted to tabular report""" | |
9 file_ext = "tsv" | |
10 comment_lines = 1 | |
11 | |
12 def __init__(self, **kwd): | |
13 Tabular.__init__( self, **kwd ) | |
14 self.column_names = ["Entry Number", "Group Probability", "Protein", "Protein Link", "Protein Probability", "Percent Coverage", "Number of Unique Peptides", "Total Independent Spectra", "Percent Share of Spectrum ID's", "Description", "Protein Molecular Weight", "Protein Length", "Is Nondegenerate Evidence", "Weight", "Precursor Ion Charge", "Peptide sequence", "Peptide Link", "NSP Adjusted Probability", "Initial Probability", "Number of Total Termini", "Number of Sibling Peptides Bin", "Number of Instances", "Peptide Group Designator", "Is Evidence?"] | |
15 | |
16 def set_meta( self, dataset, **kwd ): | |
17 Tabular.set_meta( self, dataset, **kwd ) | |
18 | |
19 #def display_peek( self, dataset ): | |
20 # """Returns formated html of peek""" | |
21 # return Tabular.make_html_table( self, dataset, column_names=self.column_names ) |