pypath.inputs.common.read_table§
- pypath.inputs.common.read_table(cols, fileObject=None, data=None, sep='\t', sep2=None, rem=None, hdr=None, encoding='ascii')[source]§
Generic function to read data tables.
- fileObjectfile-like
Any file like object: file opened for read, or StringIO buffer
- colsdict
Dictionary of columns to read. Keys identifying fields are returned in the result. Values are column numbers.
- sepstr
Field separator of the file.
- sep2dict
Subfield separators and prefixes. E.g. {2: ‘,’, 3: ‘|’}
- hdrint
Number of header lines. If None, no headers assumed.
- remlist
Strings to remove. For each line these elements will be replaced with ‘’.