FASTAFile
- class pyopenms.FASTAFile
Bases:
objectCython implementation of _FASTAFile
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1FASTAFile.html
- __init__()
Cython signature: void FASTAFile() This class serves for reading in and writing FASTA files
Methods
Cython signature: void FASTAFile() This class serves for reading in and writing FASTA files
Cython signature: bool atEnd() Boolean function to check if streams is at end of file
Cython signature: void load(const String & filename, libcpp_vector[FASTAEntry] & data) Loads a FASTA file given by 'filename' and stores the information in 'data'
Cython signature: bool readNext(FASTAEntry & protein)
Cython signature: void readStart(const String & filename)
Cython signature: void store(const String & filename, libcpp_vector[FASTAEntry] & data) Stores the data given by 'data' at the file 'filename'
Cython signature: void writeEnd() Closes the file (flush).
Cython signature: void writeNext(const FASTAEntry & protein)
Cython signature: void writeStart(const String & filename)
- atEnd()
Cython signature: bool atEnd() Boolean function to check if streams is at end of file
- load()
Cython signature: void load(const String & filename, libcpp_vector[FASTAEntry] & data) Loads a FASTA file given by ‘filename’ and stores the information in ‘data’
- readNext()
Cython signature: bool readNext(FASTAEntry & protein)
- Returns
true if entry was read; false if eof was reached
- Raises
Exception:FileNotFound is thrown if the file does not exists
- Raises
Exception:ParseError is thrown if the file does not suit to the standard
- readStart()
Cython signature: void readStart(const String & filename)
- Raises
Exception:FileNotFound is thrown if the file does not exists
- Raises
Exception:ParseError is thrown if the file does not suit to the standard
- Returns
true if entry was read; false if eof was reached
- Raises
Exception:FileNotFound is thrown if the file does not exists
- Raises
Exception:ParseError is thrown if the file does not suit to the standard
- store()
Cython signature: void store(const String & filename, libcpp_vector[FASTAEntry] & data) Stores the data given by ‘data’ at the file ‘filename’
- writeEnd()
Cython signature: void writeEnd() Closes the file (flush). Called implicitly when FASTAFile object does out of scope
- writeNext()
Cython signature: void writeNext(const FASTAEntry & protein)
- Raises
Exception:UnableToCreateFile is thrown if the process is not able to write to the file (disk full?)
- writeStart()
Cython signature: void writeStart(const String & filename)
- Raises
Exception:UnableToCreateFile is thrown if the process is not able to write to the file (disk full?)
- Raises
Exception:UnableToCreateFile is thrown if the process is not able to write to the file (disk full?)