<?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="_rwmg_s_t_a_r_8h">
<title>/Users/bernard/b20/bsoft/include/rwmgSTAR.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/rwmgSTAR.h</primary></indexterm>
<para>

<para>Header file for reading and writing micrograph parameters from and to the STAR format. </para>
 
</para>
<programlisting>#include &quot;mg_processing.h&quot;
#include &quot;rwstar.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rwmg_s_t_a_r_8h_1a222d1548e981b8b55d891798b216b6fb">read_project_star</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>)</para>

<para>Reading micrograph parameters from STAR files. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_s_t_a_r_8h_1adb8d242b348cb66e9425e0f5736a2888">write_project_star</link> (const char *filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int mg_select, int rec_select)</para>

<para>Writing micrograph parameters to a STAR file. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_s_t_a_r_8h_1abbee8308517c61faf2a0ef810ef33b6e">write_project_star</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int mg_select, int rec_select)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_s_t_a_r_8h_1ab146c8af2519b521bb38324b6dd46476">mg_star_update_tags</link> (<link linkend="_struct_bstar">Bstar</link> *star)</para>

<para>Replacing old STAR tags with new ones. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for reading and writing micrograph parameters from and to the STAR format. </para>

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

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

<para>Created: 20000426 </para>

<para>Modified: 20071112 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rwmg_s_t_a_r_8h_1ab146c8af2519b521bb38324b6dd46476"/>    <section>
    <title>mg_star_update_tags()</title>
<indexterm><primary>mg_star_update_tags</primary><secondary>rwmgSTAR.h</secondary></indexterm>
<indexterm><primary>rwmgSTAR.h</primary><secondary>mg_star_update_tags</secondary></indexterm>
<para><computeroutput>int mg_star_update_tags (<link linkend="_struct_bstar">Bstar</link> * star)</computeroutput></para><para>

<para>Replacing old STAR tags with new ones. </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>*star</entry>
                                <entry>
<para>STAR database. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int 0. </para>
</formalpara>
</para>
<para>
Definition at line 83 of file rwmgSTAR.cpp.</para>
    </section><anchor xml:id="_rwmg_s_t_a_r_8h_1a222d1548e981b8b55d891798b216b6fb"/>    <section>
    <title>read_project_star()</title>
<indexterm><primary>read_project_star</primary><secondary>rwmgSTAR.h</secondary></indexterm>
<indexterm><primary>rwmgSTAR.h</primary><secondary>read_project_star</secondary></indexterm>
<para><computeroutput>int read_project_star (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bproject">Bproject</link> * project)</computeroutput></para><para>

<para>Reading micrograph parameters from STAR 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>file name (or comma-delimited list). </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>initialized project structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 29 of file rwmgSTAR.cpp.</para>
    </section><anchor xml:id="_rwmg_s_t_a_r_8h_1adb8d242b348cb66e9425e0f5736a2888"/>    <section>
    <title>write_project_star()<computeroutput>[1/2]</computeroutput></title>
<indexterm><primary>write_project_star</primary><secondary>rwmgSTAR.h</secondary></indexterm>
<indexterm><primary>rwmgSTAR.h</primary><secondary>write_project_star</secondary></indexterm>
<para><computeroutput>int write_project_star (const char * filename, <link linkend="_struct_bproject">Bproject</link> * project, int mg_select, int rec_select)</computeroutput></para><para>

<para>Writing micrograph parameters to a STAR file. </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>file name. </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>project structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>mg_select</entry>
                                <entry>
<para>flag to only write selected micrographs. </para>
</entry>
                            </row>
                            <row>
                                <entry>rec_select</entry>
                                <entry>
<para>flag to only convert selected reconstructions. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 56 of file rwmgSTAR.cpp.</para>
    </section><anchor xml:id="_rwmg_s_t_a_r_8h_1abbee8308517c61faf2a0ef810ef33b6e"/>    <section>
    <title>write_project_star()<computeroutput>[2/2]</computeroutput></title>
<indexterm><primary>write_project_star</primary><secondary>rwmgSTAR.h</secondary></indexterm>
<indexterm><primary>rwmgSTAR.h</primary><secondary>write_project_star</secondary></indexterm>
<para><computeroutput>int write_project_star (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bproject">Bproject</link> * project, int mg_select, int rec_select)</computeroutput></para><para>
Definition at line 62 of file rwmgSTAR.cpp.</para>
</section>
</section>
</section>
