<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_rw_f_a_s_t_a_8h">
<title>/Users/bernard/b20/bsoft/include/rwFASTA.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/rwFASTA.h</primary></indexterm>
<para>

<para>Header file for reading and writing FASTA sequence files. </para>
 
</para>
<programlisting>#include &quot;rwmolecule.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_f_a_s_t_a_8h_1ae12f185db1e0f86fedf807bc50ad7a2b">readFASTA</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bmolgroup">Bmolgroup</link> *molgroup)</para>

<para>Reads FASTA format sequence files. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_f_a_s_t_a_8h_1ab2a43034ca5d69613675fad631a1a96e">writeFASTA</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bmolgroup">Bmolgroup</link> *molgroup)</para>

<para>Writes FASTA format sequence files. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for reading and writing FASTA sequence files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 20001112 </para>

<para>Modified: 20001112 <literallayout><computeroutput>Format: Protein sequence file format
</computeroutput></literallayout> </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_f_a_s_t_a_8h_1ae12f185db1e0f86fedf807bc50ad7a2b"/>    <section>
    <title>readFASTA()</title>
<indexterm><primary>readFASTA</primary><secondary>rwFASTA.h</secondary></indexterm>
<indexterm><primary>rwFASTA.h</primary><secondary>readFASTA</secondary></indexterm>
<para><computeroutput>int readFASTA (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bmolgroup">Bmolgroup</link> * molgroup)</computeroutput></para><para>

<para>Reads FASTA format sequence files. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>&amp;filename</entry>
                                <entry>
<para>sequence file name. </para>
</entry>
                            </row>
                            <row>
                                <entry>*molgroup</entry>
                                <entry>
<para>molecule group. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int number of molecules read (&lt;0 if reading failed). <literallayout><computeroutput>FASTA format:
&gt;1hiwa TRIMERIC HIV-1 MATRIX PROTEIN   MOLECULE: HIV-1 MATRIX PROTEIN;   CHAIN:
VLSGGELDKWEKIRLRPGGKKQYKLKHIVWASRELERFAVNPGLLETSEGCRQILGQLQPSLQTGSEELRSLYNTIAVLY
CVHQRIDVKDTKEALDKIEEEQNKSKKKAQQAAAD
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 28 of file rwFASTA.cpp.</para>
    </section><anchor xml:id="_rw_f_a_s_t_a_8h_1ab2a43034ca5d69613675fad631a1a96e"/>    <section>
    <title>writeFASTA()</title>
<indexterm><primary>writeFASTA</primary><secondary>rwFASTA.h</secondary></indexterm>
<indexterm><primary>rwFASTA.h</primary><secondary>writeFASTA</secondary></indexterm>
<para><computeroutput>int writeFASTA (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bmolgroup">Bmolgroup</link> * molgroup)</computeroutput></para><para>

<para>Writes FASTA format sequence files. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>&amp;filename</entry>
                                <entry>
<para>sequence file name. </para>
</entry>
                            </row>
                            <row>
                                <entry>*molgroup</entry>
                                <entry>
<para>molecule group. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int number of molecules written (&lt;0 if writing failed). </para>
</formalpara>
</para>
<para>
Definition at line 100 of file rwFASTA.cpp.</para>
</section>
</section>
</section>
