<?xml version='1.0' encoding='ASCII'?>
<ccp4:ccp4i2 xmlns:ccp4="http://www.ccp4.ac.uk/ccp4ns">
    <ccp4i2_header>
        <function>DEF</function>
        <comment></comment>
        <projectName></projectName>
        <userId>martin</userId>
        <ccp4iVersion>0.0.1</ccp4iVersion>
        <jobId></jobId>
        <pluginName>coot_script_lines</pluginName>
        <pluginVersion></pluginVersion>
        <projectId></projectId>
        <creationTime>09:40 23/Dec/12</creationTime>
        <pluginTitle></pluginTitle>
        <jobNumber></jobNumber>
    </ccp4i2_header>
    <ccp4i2_body id="coot_script_lines">
        <container id="inputData">
            <content id="XYZIN">
                <className>CList</className>
                <qualifiers>
		    <listMinLength>1</listMinLength>
                </qualifiers>
                <subItem>
                    <className>CPdbDataFile</className>
                    <qualifiers>
                        <mustExist>True</mustExist>
                        <allowUndefined>True</allowUndefined>
                    </qualifiers>
                </subItem>
            </content>
            <content id="FPHIIN">
                <className>CList</className>
                <qualifiers>
                </qualifiers>
                <subItem>
                    <className>CMapCoeffsDataFile</className>
                    <qualifiers>
                        <requiredSubType>1</requiredSubType>
                        <allowUndefined>True</allowUndefined>
                    </qualifiers>
                </subItem>
            </content>
            <content id="DELFPHIIN">
                <className>CList</className>
                <qualifiers>
                </qualifiers>
                <subItem>
                    <className>CMapCoeffsDataFile</className>
                    <qualifiers>
                        <requiredSubType>2</requiredSubType>
                        <allowUndefined>True</allowUndefined>
                    </qualifiers>
                </subItem>
            </content>
            <content id="DICT">
                <className>CDictDataFile</className>
                <qualifiers>
                    <mimeTypeName>application/refmac-dictionary</mimeTypeName>
                    <mimeTypeDescription>Refmac monomer dictionary</mimeTypeDescription>
                    <toolTip>CIF library encoding ligand geometry</toolTip>
                    <label>Refmac dictionary</label>
                    <fileExtensions>cif</fileExtensions>
                    <saveToDb>True</saveToDb>
                    <mustExist>True</mustExist>
                    <allowUndefined>True</allowUndefined>
                    <fromPreviousJob>True</fromPreviousJob>
                </qualifiers>
            </content>
        </container>
        <container id="controlParameters">
            <content id="STARTPOINT">
                <className>CString</className>
                <qualifiers>
                <onlyEnumerators>True</onlyEnumerators>
                <enumerators>FILL_PARTIAL_RESIDUES,FIT_PROTEIN,STEPPED_REFINE_PROTEIN_FOR_RAMA,STEPPED_REFINE_PROTEIN,MORPH_FIT,BLANK</enumerators>
                <menuText>Fill partial residues,Fit protein,Perform stepped refinement (apply Ramachandran restraints),Perform stepped refinement (no Ramachandran restraint),Iterative morph fit molecule with decreasing blur,Blank script (copy input coordinates to output)</menuText>
                <label>Code snippet to start from</label>
                <default>BLANK</default>
                </qualifiers>
            </content>
            <content id='SHOWSCRIPT'>
                <className>CBoolean</className>
            </content>
            <content id="SCRIPT">
                <className>CString</className>
                <qualifiers>
                    <default>
&#13;
# Input molecules are given internal identifiers "MolHandle_1" etc"&#13;
# Input maps are given internal identifiers "MapHandle_1" etc"&#13;
# Input difference maps are given internal identifiers "DifmapHandle_1" etc"&#13;
#&#13;
# The appropriate place to put output pdb files to be picked up by the system&#13;
# is stored in the variable dropDir (see below for how to use this)&#13;
#&#13;
# Beware spaces...this is python after all&#13;
#&#13;
# Example commands you may wish to try can be explored by uncommenting the lines below&#13;
# fill_partial_residues(MolHandle_1)&#13;
# fit_protein(MolHandle_1)&#13;
# stepped_refine_protein_for_rama(MolHandle_1)&#13;
#&#13;
# Per chain operations might look something like:&#13;
# chainAMol = new_molecule_by_atom_selection(MolHandle_1,'//A')&#13;
# otherChains = ['B','C','D','E','F','G','H','I','J','K','L']&#13;
# for otherChain in otherChains:&#13;
#    molToMove = new_molecule_by_atom_selection(MolHandle_1,'//A')&#13;
#    newMolHandle = superpose_with_chain_selection(MolHandle_1, molToMove, otherChain, 'A', 1, 1, 1)&#13;
#    merge_molecules(newMolHandle, molToMove)&#13;
#&#13;
# The following line ensures the output gets written out:&#13;
write_pdb_file(MolHandle_1,os.path.join(dropDir,"output.pdb"))&#13;
                    </default>
                </qualifiers>
            </content>
        </container>
        <container id="outputData">
            <content id="XYZOUT">
                <className>CList</className>
                <subItem>
                    <className>CPdbDataFile</className>
                    <qualifiers/>
                </subItem>
            </content>
            <content id="DICTOUT">
                <className>CList</className>
                <subItem>
                    <className>CDictDataFile</className>
                    <qualifiers/>
                </subItem>
            </content>
        </container>
    </ccp4i2_body>
</ccp4:ccp4i2>
