AUREA.parser.CSVParser
index
/home/earls3/Price/AUREA/build/lib.linux-x86_64-2.6/AUREA/parser/CSVParser.py

Copyright (C) 2011  N.D. Price Lab
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.
 
You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
Classes
       
CSVParser

 
class CSVParser
    Reads a csv file of the format
ID_REF, IDENTIFIER, SAMP1Name, SAMP2Name, ... ,SAMPnName
prob1_id, gene1_id, g1S1val, g1S2val, ... , g1Snval
...
probm_id, genem_id, gmS1val, gmS2val, ... , gmSnval
 
  Methods defined here:
__init__(self, filename, probe_column_name='ID_REF', gene_column_name='IDENTIFIER')
getColumnHeadings(self)
Returns a list of the column headings (the first line of the csv file)
getColumnHeadingsInfo(self)
Not really applicable, but added for compatibility with softparser
getData(s)
Called automatically by constructor.
Parses the csv file
getDataColumnHeadings(self)
Returns the data column headings
getIDENTIFIER(self)
This is not guaranteed to be there, but so far it has been.
If it is not available we will have to handle it somehow.
Probably just set identifier_label to ID_REF
This should map to genes and each value will not be unique.
getID_REF(self)
Returns the probe column
getKeyColumnHeadings(self)
Returns the key column headings
getTable(self, lock=False)
Returns the table.
If you want to operate directly on the table, set lock to True.
setGeneColumnName(self, gene_column_name='IDENTIFIER')
Sets the name of the gene column
setProbeColumnName(self, probe_column_name='ID_REF')
Sets the name of the probe column.