.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWriteFASTAFile

.. oe:function:: OEWriteFASTAFile

   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEWriteFASTAFile(oemolostream& ofs, OEMolBase& mol,
                               const char* ident)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteFASTAFile(ofs: oemolostream,
                          mol: Union[OEGraphMol,OEMol,OEQMol], ident: str) -> None

   Writes the molecule as a FASTA format protein sequence to the output
   stream 'ofs'.  The 'ident' parameter is used to specify the sequence
   identifier to be written before the molecule's title on for each amino
   acid sequence.

