Name
read_text_row - read text file by row, and skip commented rows.
Usage
- data=read_text_row(fnam,format="s",skip=";")
Input
- fnam
- text file name, it can be in any format. Records are assumed to be seperated by one or more spaces.
- format
- the format of input text file. "s" denotes the input text file is a SPIDER document file.
- skip
- comment marks, like ";" for documentation file in SPIDER format, "C" for fortran code, and so on.
Output
- data
- data, read in text file, NxM elemets, N is the line index, M is the column index.
Options
- No
Description
- Comment line starting with skip will be ignored when the text file is read in.
- The function is able to read in non-space-separated records of SPIDER format text files.
Author / Maintainer
- Zhong Huang
Keywords
- category 1
- UTILITIES
Files
utilities.py
See also
References to relevant other routines.
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.