Mercurial > repos > agpetit > gmx_check
comparison check.xml @ 2:8ee4590690e5 draft default tip
"planemo upload for repository https://github.com/mesocentre-clermont-auvergne/aubi_piaf commit 11dcfa0a6d5fbff9bc654a8a1ad14d79dbd22fdb"
| author | agpetit |
|---|---|
| date | Thu, 21 Jul 2022 14:46:22 +0000 |
| parents | ae4b0af8efd3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:ae4b0af8efd3 | 2:8ee4590690e5 |
|---|---|
| 1 <tool id="gmx_check" name="GROMACS check" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="@PROFILE@"> | 1 <tool id="gmx_check" name="GROMACS check" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="@PROFILE@"> |
| 2 <description>using gmx check</description> | 2 <description>to provide information about GROMACS input files</description> |
| 3 <macros> | 3 <macros> |
| 4 <token name="@GALAXY_VERSION@">0</token> | 4 <token name="@GALAXY_VERSION@">0</token> |
| 5 <token name="@PROFILE@">21.05</token> | 5 <token name="@PROFILE@">21.05</token> |
| 6 <import>macros.xml</import> | 6 <import>macros.xml</import> |
| 7 </macros> | 7 </macros> |
| 8 <expand macro="requirements" /> | 8 <expand macro="requirements" /> |
| 9 <command detect_errors="exit_code"><![CDATA[ | 9 <command detect_errors="exit_code"><![CDATA[ |
| 10 #for $i, $choice in enumerate($analysis) | 10 #if $input_file.calculate_select == "info_traj": |
| 11 #if $choice.input_file.calculate_select == "info_traj": | 11 ln -s '$input_file.traj_file' './traj.$input_file.traj_file.ext'; |
| 12 ln -s '$choice.input_file.traj_file' './$i.$choice.input_file.traj_file.element_identifier'; | 12 gmx check |
| 13 gmx check | 13 -f './traj.$input_file.traj_file.ext' |
| 14 -f './$i.$choice.input_file.traj_file.element_identifier' | 14 &> '$out_info_traj'; |
| 15 &> '${i}.Trajectory_information_for_"${choice.input_file.traj_file.element_identifier}".txt'; | 15 #elif $input_file.calculate_select == "compare_traj": |
| 16 #elif $choice.input_file.calculate_select == "compare_traj": | 16 ln -s '$input_file.traj_file' './traj1.$input_file.traj_file.ext'; |
| 17 ln -s '$choice.input_file.traj_file' './$i.$choice.input_file.traj_file.element_identifier'; | 17 ln -s '$input_file.traj_file2' './traj2.$input_file.traj_file2.ext'; |
| 18 ln -s '$choice.input_file.traj_file2' './$i.$choice.input_file.traj_file2.element_identifier'; | 18 gmx check |
| 19 gmx check | 19 -f './traj1.$input_file.traj_file.ext' |
| 20 -f './$i.$choice.input_file.traj_file.element_identifier' | 20 -f2 './traj2.$input_file.traj_file2.ext' |
| 21 -f2 './$i.$choice.input_file.traj_file2.element_identifier' | 21 $input_file.rmsd |
| 22 $choice.input_file.rmsd | 22 -tol '$input_file.rel_tol' |
| 23 -tol '$choice.input_file.rel_tol' | 23 -abstol '$input_file.abs_tol' |
| 24 -abstol '$choice.input_file.abs_tol' | 24 &> '$out_compare_traj'; |
| 25 &> '${i}.Compare_trajectories_between_"${choice.input_file.traj_file.element_identifier}"_and_"${choice.input_file.traj_file2.element_identifier}".txt'; | 25 #elif $input_file.calculate_select == "info_struc": |
| 26 #elif $choice.input_file.calculate_select == "info_struc": | 26 ln -s '$input_file.struc_file' './struc.$input_file.struc_file.ext'; |
| 27 ln -s '$choice.input_file.struc_file' './$i.$choice.input_file.struc_file.element_identifier'; | 27 gmx check |
| 28 gmx check | 28 -c './struc.$input_file.struc_file.ext' |
| 29 -c './$i.$choice.input_file.struc_file.element_identifier' | 29 -vdwfac '$input_file.vdwfac' |
| 30 -vdwfac '$choice.input_file.vdwfac' | 30 -bonlo '$input_file.bonlo' |
| 31 -bonlo '$choice.input_file.bonlo' | 31 -bonhi '$input_file.bonhi' |
| 32 -bonhi '$choice.input_file.bonhi' | 32 &> '$out_info_struc'; |
| 33 &> '${i}.Structure_information_for_"${choice.input_file.struc_file.element_identifier}".txt'; | 33 #elif $input_file.calculate_select == "info_ener": |
| 34 #elif $choice.input_file.calculate_select == "info_ener": | 34 ln -s '$input_file.ener_file' './ener.$input_file.ener_file.ext' ; |
| 35 ln -s '$choice.input_file.ener_file' './$i.$choice.input_file.ener_file.element_identifier' ; | 35 gmx check |
| 36 gmx check | 36 -e './ener.$input_file.ener_file.ext' |
| 37 -e './$i.$choice.input_file.ener_file.element_identifier' | 37 &> '$out_info_ener'; |
| 38 &> '${i}.Energy_information_for_"${$choice.input_file.ener_file.element_identifier}".txt'; | 38 #elif $input_file.calculate_select == "info_ind": |
| 39 #elif $choice.input_file.calculate_select == "info_ind": | 39 ln -s '$input_file.ind_file' './index.$input_file.ind_file.ext'; |
| 40 ln -s '$choice.input_file.ind_file' './$i.$choice.input_file.ind_file.element_identifier'; | 40 gmx check |
| 41 gmx check | 41 -n './index.$input_file.ind_file.ext' |
| 42 -n './$i.$choice.input_file.ind_file.element_identifier' | 42 &> '$out_info_ind'; |
| 43 &> '${i}.Index_information_for_"${choice.input_file.ind_file.element_identifier}".txt'; | 43 #elif $input_file.calculate_select == "compare_ener": |
| 44 #elif $choice.input_file.calculate_select == "compare_ener": | 44 ln -s '$input_file.ener_file' './ener1.$input_file.ener_file.ext'; |
| 45 ln -s '$choice.input_file.ener_file' './$i.$choice.input_file.ener_file.element_identifier'; | 45 ln -s '$input_file.ener_file2' './ener2.$input_file.ener_file2.ext'; |
| 46 ln -s '$choice.input_file.ener_file2' './$i.$choice.input_file.ener_file2.element_identifier'; | 46 gmx check |
| 47 gmx check | 47 -e './ener1.$input_file.ener_file.ext' |
| 48 -e './$i.$choice.input_file.ener_file.element_identifier' | 48 -e2 './ener2.$input_file.ener_file2.ext' |
| 49 -e2 './$i.$choice.input_file.ener_file2.element_identifier' | 49 -tol '$input_file.rel_tol' |
| 50 -tol '$choice.input_file.rel_tol' | 50 -abstol '$input_file.abs_tol' |
| 51 -abstol '$choice.input_file.abs_tol' | 51 -lastener '$input_file.lastener' |
| 52 -lastener '$choice.input_file.lastener' | 52 &> '$out_compare_ener'; |
| 53 &> '${i}.Compare_energies_between_"${choice.input_file.ener_file.element_identifier}"_and_"${choice.input_file.ener_file2.element_identifier}".txt'; | 53 #else: |
| 54 #else: | 54 ln -s '$input_file.top_file' './top1.$input_file.top_file.ext'; |
| 55 ln -s '$choice.input_file.top_file' './$i.$choice.input_file.top_file.element_identifier'; | 55 ln -s '$input_file.top_file2' './top2.$input_file.top_file2.ext'; |
| 56 ln -s '$choice.input_file.top_file2' './$i.$choice.input_file.top_file2.element_identifier'; | 56 gmx check |
| 57 gmx check | 57 -s1 './top1.$input_file.top_file.ext' |
| 58 -s1 './$i.$choice.input_file.top_file.element_identifier' | 58 -s2 './top2.$input_file.top_file2.ext' |
| 59 -s2 './$i.$choice.input_file.top_file2.element_identifier' | 59 -abstol '$input_file.abs_tol' |
| 60 -abstol '$choice.input_file.abs_tol' | 60 &> '$out_compare_topol'; |
| 61 &> '${i}.Compare_topologies_between_"${choice.input_file.top_file.element_identifier}"_and_"${choice.input_file.top_file2.element_identifier}".txt'; | 61 #end if |
| 62 #end if | |
| 63 #end for | |
| 64 ]]></command> | 62 ]]></command> |
| 65 <inputs> | 63 <inputs> |
| 66 <repeat name="analysis" title="Type of analysis"> | 64 <conditional name="input_file"> |
| 67 <conditional name="input_file"> | 65 <param name="calculate_select" type="select" label="Select the type of information you want to obtain"> |
| 68 <param name="calculate_select" type="select" label="Select the type of information you want to obtain"> | 66 <option value="info_traj">Information about a trajectory</option> |
| 69 <option value="info_traj">Information about a trajectory</option> | 67 <option value="compare_traj">Compare two trajectories</option> |
| 70 <option value="compare_traj">Compare two trajectories</option> | 68 <option value="info_struc">Information about the system structure</option> |
| 71 <option value="info_struc">Information about the system structure</option> | 69 <option value="info_ener">Information about the system energy</option> |
| 72 <option value="info_ener">Information about the system energy</option> | 70 <option value="info_ind">Information about the system index</option> |
| 73 <option value="info_ind">Information about the system index</option> | 71 <option value="compare_top">Compare two topologies</option> |
| 74 <option value="compare_top">Compare two topologies</option> | 72 <option value="compare_ener">Compare two energy files</option> |
| 75 <option value="compare_ener">Compare two energy files</option> | 73 </param> |
| 74 <when value="info_traj"> | |
| 75 <param name="traj_file" type="data" format="xtc, trr, cpt, gro, pdb" label="Trajectory file" help="Enter the trajectory file. Accepted formats: xtc, trr, cpt, gro, pdb."/> | |
| 76 </when> | |
| 77 <when value="compare_traj"> | |
| 78 <param name="traj_file" type="data" format="xtc, trr, cpt, gro, pdb" label="Trajectory file 1" help="Enter the first trajectory file. Accepted formats: xtc, trr, cpt, gro, pdb."/> | |
| 79 <param name="traj_file2" type="data" format="xtc, trr, cpt, gro, pdb" label="Trajectory file 2" help="Enter the second trajectory file. Accepted formats: xtc, trr, cpt, gro, pdb."/> | |
| 80 <param name="rmsd" type="boolean" truevalue="-rmsd" falsevalue="" label="Do you want to display the RMSD?"/> | |
| 81 <param name="rel_tol" type="float" max="1.0" value="0.001" label="Enter relative tolerance" help="Relative tolerance for comparing real values defined as 2*(a-b)/(|a|+|b|)."/> | |
| 82 <param name="abs_tol" type="float" max="1.0" value="0.001" optional="True" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> | |
| 83 </when> | |
| 84 <when value="info_struc"> | |
| 85 <param name="struc_file" type="data" format="tpr, gro, pdb, brk, ent" label="Structure file" help="Enter the structure file. Accepted formats: tpr, gro, pdb, brk, ent."> | |
| 86 <validator type="expression" message="Wrong file format">value.extension != 'edr' and value.extension != 'xtc'</validator> | |
| 76 </param> | 87 </param> |
| 77 <when value="info_traj"> | 88 <param name="vdwfac" type="float" max="1.0" min="0" value="0.8" label="Enter the fraction of sum of VdW radii sum"/> |
| 78 <param name="traj_file" type="data" format="xtc, trr, cpt, gro, g96, pdb, tng" label="Trajectory file" help="Enter the trajectory file. Accepted formats: xtc, trr, cpt, gro, g96, pdb, tng."/> | 89 <param name="bonlo" type="float" max="1.0" min="0" value="0.4" label="Enter the minimal fraction of sum of van der Waals radii for bonded atoms"/> |
| 79 </when> | 90 <param name="bonhi" type="float" max="1.0" min="0" value="0.7" label="Enter the maximal fraction of sum of van der Waals radii for bonded atoms"/> |
| 80 <when value="compare_traj"> | 91 </when> |
| 81 <param name="traj_file" type="data" format="xtc, trr, cpt, gro, g96, pdb, tng" label="Trajectory file 1" help="Enter the first trajectory file. Accepted formats: xtc, trr, cpt, gro, g96, pdb, tng."/> | 92 <when value="info_ener"> |
| 82 <param name="traj_file2" type="data" format="xtc, trr, cpt, gro, g96, pdb, tng" label="Trajectory file 2" help="Enter the second trajectory file. Accepted formats: xtc, trr, cpt, gro, g96, pdb, tng."/> | 93 <param name="ener_file" type="data" format="edr" label="Energy file" help="Enter the energy file. Accepted format: edr."/> |
| 83 <param name="rmsd" type="boolean" truevalue="-rmsd" falsevalue="" label="Do you want to display the RMSD?"/> | 94 </when> |
| 84 <param name="rel_tol" type="float" max="1.0" value="0.001" label="Enter relative tolerance" help="Relative tolerance for comparing real values defined as 2*(a-b)/(|a|+|b|)."/> | 95 <when value="info_ind"> |
| 85 <param name="abs_tol" type="float" max="1.0" value="0.001" optional="True" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> | 96 <param name="ind_file" type="data" format="ndx" label="Index file" help="Enter the index file. Accepted format: ndx."/> |
| 86 </when> | 97 </when> |
| 87 <when value="info_struc"> | 98 <when value="compare_top"> |
| 88 <param name="struc_file" type="data" format="tpr, gro, g96, pdb, brk, ent" label="Structure file" help="Enter the structure file. Accepted formats: tpr, gro, g96, pdb, brk, ent."> | 99 <param name="top_file" type="data" format="tpr" label="Topology file 1" help="Enter the first topology file. Accepted format: tpr."> |
| 89 <validator type="expression" message="Wrong file format">value.extension != 'edr' and value.extension != 'xtc'</validator> | 100 <validator type="expression" message="Wrong file format">value.extension == 'tpr'</validator> |
| 90 </param> | 101 </param> |
| 91 <param name="vdwfac" type="float" max="1.0" value="0.8" label="Enter the fraction of sum of VdW radii sum"/> | 102 <param name="top_file2" type="data" format="tpr" label="Topology file 2" help="Enter the second topology file. Accepted format: tpr."> |
| 92 <param name="bonlo" type="float" max="1.0" value="0.4" label="Enter the minimal fraction of sum of vdW radii for bonded atoms"/> | 103 <validator type="expression" message="Wrong file format">value.extension == 'tpr'</validator> |
| 93 <param name="bonhi" type="float" max="1.0" value="0.7" label="Enter the maximal fraction of sum of vdW radii for bonded atoms"/> | 104 </param> |
| 94 </when> | 105 <param name="abs_tol" type="float" max="1.0" value="0.001" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> |
| 95 <when value="info_ener"> | 106 </when> |
| 96 <param name="ener_file" type="data" format="edr" label="Energy file" help="Enter the energy file. Accepted format: edr."/> | 107 <when value="compare_ener"> |
| 97 </when> | 108 <param name="ener_file" type="data" format="edr" label="Energy file 1" help="Enter the first energy file. Accepted format: edr."/> |
| 98 <when value="info_ind"> | 109 <param name="ener_file2" type="data" format="edr" label="Energy file 2" help="Enter the second energy file. Accepted format: edr."/> |
| 99 <param name="ind_file" type="data" format="ndx" label="Index file" help="Enter the index file. Accepted format: ndx."/> | 110 <param name="rel_tol" type="float" max="1.0" value="0.001" label="Enter relative tolerance" help="Relative tolerance for comparing real values defined as 2*(a-b)/(|a|+|b|)."/> |
| 100 </when> | 111 <param name="abs_tol" type="float" max="1.0" value="0.001" optional="True" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> |
| 101 <when value="compare_top"> | 112 <param name="lastener" type="text" value="all" label="Enter the last energy term to compare" help="Last energy term to compare. It makes sense to go up until the Pressure."/> |
| 102 <param name="top_file" type="data" format="tpr" label="Topology file 1" help="Enter the first topology file. Accepted format: tpr."> | 113 </when> |
| 103 <validator type="expression" message="Wrong file format">value.extension == 'tpr'</validator> | 114 </conditional> |
| 104 </param> | |
| 105 <param name="top_file2" type="data" format="tpr" label="Topology file 2" help="Enter the second topology file. Accepted format: tpr."> | |
| 106 <validator type="expression" message="Wrong file format">value.extension == 'tpr'</validator> | |
| 107 </param> | |
| 108 <param name="abs_tol" type="float" max="1.0" value="0.001" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> | |
| 109 </when> | |
| 110 <when value="compare_ener"> | |
| 111 <param name="ener_file" type="data" format="edr" label="Energy file 1" help="Enter the first energy file. Accepted format: edr."/> | |
| 112 <param name="ener_file2" type="data" format="edr" label="Energy file 2" help="Enter the second energy file. Accepted format: edr."/> | |
| 113 <param name="rel_tol" type="float" max="1.0" value="0.001" label="Enter relative tolerance" help="Relative tolerance for comparing real values defined as 2*(a-b)/(|a|+|b|)."/> | |
| 114 <param name="abs_tol" type="float" max="1.0" value="0.001" optional="True" label="Enter absolute tolerance" help="Absolute tolerance, useful when sums are close to zero."/> | |
| 115 <param name="lastener" type="text" value="all" label="Enter the last energy term to compare" help="Last energy term to compare. It makes sense to go up until the Pressure."/> | |
| 116 </when> | |
| 117 </conditional> | |
| 118 </repeat> | |
| 119 </inputs> | 115 </inputs> |
| 120 <outputs> | 116 <outputs> |
| 121 <data name="output"> | 117 <data name="out_info_traj" format="txt" from_work_dir="*.txt" label="${tool.name} : information on trajectory on ${on_string}"> |
| 122 <discover_datasets pattern="(?P<name>.+\.txt)$" ext="txt" visible="true" directory="" assign_primary_output="true"/> | 118 <filter>input_file["calculate_select"] == "info_traj"</filter> |
| 119 </data> | |
| 120 <data name="out_compare_traj" format="txt" from_work_dir="*.txt" label="${tool.name} : compare trajectories on ${on_string}"> | |
| 121 <filter>input_file["calculate_select"] == "compare_traj"</filter> | |
| 122 </data> | |
| 123 <data name="out_info_struc" format="txt" from_work_dir="*.txt" label="${tool.name} : information on structure on ${on_string}"> | |
| 124 <filter>input_file["calculate_select"] == "info_struc"</filter> | |
| 125 </data> | |
| 126 <data name="out_info_ener" format="txt" from_work_dir="*.txt" label="${tool.name} : information on energy on ${on_string}"> | |
| 127 <filter>input_file["calculate_select"] == "info_ener"</filter> | |
| 128 </data> | |
| 129 <data name="out_info_ind" format="txt" from_work_dir="*.txt" label="${tool.name} : information on index file on ${on_string}"> | |
| 130 <filter>input_file["calculate_select"] == "info_ind"</filter> | |
| 131 </data> | |
| 132 <data name="out_compare_ener" format="txt" from_work_dir="*.txt" label="${tool.name} : compare energy files on ${on_string}"> | |
| 133 <filter>input_file["calculate_select"] == "compare_ener"</filter> | |
| 134 </data> | |
| 135 <data name="out_compare_topol" format="txt" from_work_dir="*.txt" label="${tool.name} : compare topology files on ${on_string}"> | |
| 136 <filter>input_file["calculate_select"] == "compare_top"</filter> | |
| 123 </data> | 137 </data> |
| 124 </outputs> | 138 </outputs> |
| 125 <tests> | 139 <tests> |
| 126 <test> | 140 <test> |
| 127 <repeat name="analysis"> | 141 <conditional name="input_file"> |
| 128 <conditional name="input_file"> | 142 <param name="calculate_select" value="info_traj"/> |
| 129 <param name="calculate_select" value="info_traj"/> | 143 <param name="traj_file" value="nvt.xtc" ftype="xtc"/> |
| 130 <param name="traj_file" value="nvt.xtc" ftype="xtc"/> | 144 </conditional> |
| 131 </conditional> | 145 <output name="out_info_traj" file="check_info_traj.txt" ftype="txt" lines_diff="8"/> |
| 132 </repeat> | 146 </test> |
| 133 <output name="output" file="check_info_traj.txt" ftype="txt" lines_diff="4"> | 147 <test> |
| 134 <assert_contents> | 148 <conditional name="input_file"> |
| 135 <has_n_lines n="38"/> | 149 <param name="calculate_select" value="compare_traj"/> |
| 136 <has_text text="Reading frame"/> | 150 <param name="traj_file" value="nvt.xtc" ftype="xtc"/> |
| 137 <has_text text="# Atoms 94"/> | 151 <param name="traj_file2" value="npt.xtc" ftype="xtc"/> |
| 138 <has_text text="Step 11 0.1"/> | 152 <param name="rmsd" value="True"/> |
| 139 </assert_contents> | 153 <param name="rel_tol" value="0.1"/> |
| 140 </output> | 154 <param name="abs_tol" value="0.1"/> |
| 141 </test> | 155 </conditional> |
| 142 <test> | 156 <output name="out_compare_traj" file="check_compare_traj.txt" ftype="txt" lines_diff="8"/> |
| 143 <repeat name="analysis"> | 157 </test> |
| 144 <conditional name="input_file"> | 158 <test> |
| 145 <param name="calculate_select" value="compare_traj"/> | 159 <conditional name="input_file"> |
| 146 <param name="traj_file" value="nvt.xtc" ftype="xtc"/> | 160 <param name="calculate_select" value="info_struc"/> |
| 147 <param name="traj_file2" value="npt.xtc" ftype="xtc"/> | 161 <param name="struc_file" value="minim.gro" ftype="gro"/> |
| 148 <param name="rmsd" value="True"/> | 162 <param name="vdwfac" value="0.8"/> |
| 149 <param name="rel_tol" value="0.1"/> | 163 <param name="bonlo" value="0.4"/> |
| 150 <param name="abs_tol" value="0.1"/> | 164 <param name="bonhi" value="0.7"/> |
| 151 </conditional> | 165 </conditional> |
| 152 </repeat> | 166 <output name="out_info_struc" file="check_info_structure.txt" ftype="txt" lines_diff="10"/> |
| 153 <output name="output" file="check_compare_traj.txt" ftype="txt" lines_diff="4"> | 167 </test> |
| 154 <assert_contents> | 168 <test> |
| 155 <has_n_lines n="62"/> | 169 <conditional name="input_file"> |
| 156 <has_text text="Reading frame"/> | 170 <param name="calculate_select" value="info_ener"/> |
| 157 <has_text text="Last frame 10 time 1.000"/> | 171 <param name="ener_file" value="minim.edr" ftype="edr"/> |
| 158 <has_text text="x RMSD 0.135353"/> | 172 </conditional> |
| 159 </assert_contents> | 173 <output name="out_info_ener" file="check_info_energy.txt" ftype="txt" lines_diff="8"/> |
| 160 </output> | 174 </test> |
| 161 </test> | 175 <test> |
| 162 <test> | 176 <conditional name="input_file"> |
| 163 <repeat name="analysis"> | 177 <param name="calculate_select" value="info_ind"/> |
| 164 <conditional name="input_file"> | 178 <param name="ind_file" value="index.ndx" ftype="ndx"/> |
| 165 <param name="calculate_select" value="info_struc"/> | 179 </conditional> |
| 166 <param name="struc_file" value="minim.gro" ftype="gro"/> | 180 <output name="out_info_ind" file="check_info_index.txt" ftype="txt" lines_diff="8"/> |
| 167 <param name="vdwfac" value="0.8"/> | 181 </test> |
| 168 <param name="bonlo" value="0.4"/> | 182 <test> |
| 169 <param name="bonhi" value="0.7"/> | 183 <conditional name="input_file"> |
| 170 </conditional> | 184 <param name="calculate_select" value="compare_top"/> |
| 171 </repeat> | 185 <param name="top_file" value="npt.tpr" ftype="tpr"/> |
| 172 <output name="output" file="check_info_structure.txt" ftype="txt" lines_diff="5"> | 186 <param name="top_file2" value="npt2.tpr" ftype="tpr"/> |
| 173 <assert_contents> | 187 <param name="abs_tol" value="0.1"/> |
| 174 <has_n_lines n="480"/> | 188 </conditional> |
| 175 <has_text text="94 atoms in file"/> | 189 <output name="out_compare_topol" file="check_compare_topology.txt" ftype="txt" lines_diff="8"/> |
| 176 <has_text text="coordinates found"/> | 190 </test> |
| 177 <has_text text="box found"/> | 191 <test> |
| 178 <has_text text="no atoms found outside box"/> | 192 <conditional name="input_file"> |
| 179 <has_text text="atom# name residue r_vdw atom# name residue r_vdw distance"/> | 193 <param name="calculate_select" value="compare_ener"/> |
| 180 </assert_contents> | 194 <param name="ener_file" value="minim.edr" ftype="edr"/> |
| 181 </output> | 195 <param name="ener_file2" value="outp.edr" ftype="edr"/> |
| 182 </test> | 196 <param name="rel_tol" value="0.1"/> |
| 183 <test> | 197 <param name="abs_tol" value="0.1"/> |
| 184 <repeat name="analysis"> | 198 <param name="lastener" value="Pressure"/> |
| 185 <conditional name="input_file"> | 199 </conditional> |
| 186 <param name="calculate_select" value="info_ener"/> | 200 <output name="out_compare_ener" file="check_compare_energy.txt" ftype="txt" lines_diff="8"/> |
| 187 <param name="ener_file" value="minim.edr" ftype="edr"/> | |
| 188 </conditional> | |
| 189 </repeat> | |
| 190 <repeat name="analysis"> | |
| 191 <conditional name="input_file"> | |
| 192 <param name="calculate_select" value="info_ind"/> | |
| 193 <param name="ind_file" value="index.ndx" ftype="ndx"/> | |
| 194 </conditional> | |
| 195 </repeat> | |
| 196 <output name="output" file="check_info_energy.txt" ftype="txt" lines_diff="4"> | |
| 197 <assert_contents> | |
| 198 <has_n_lines n="67"/> | |
| 199 <has_text text="Reading energy frame 1 time 1.000 "/> | |
| 200 <has_text text="31 groups in energy file"/> | |
| 201 <has_text text="Timesteps at t=20 don't match (2, 1)"/> | |
| 202 <has_text text="Found 25 frames."/> | |
| 203 </assert_contents> | |
| 204 <discovered_dataset designation='1.Index_information_for_"index.ndx".txt' file="check_info_index.txt" ftype="txt" lines_diff="4"> | |
| 205 <assert_contents> | |
| 206 <has_n_lines n="28"/> | |
| 207 <has_text text="Contents of index file"/> | |
| 208 <has_text text="Nr. Group #Entries First Last"/> | |
| 209 <has_text text=" 2 Protein-H 43 1 92"/> | |
| 210 <has_text text=" 10 Prot-Masses 92 1 92"/> | |
| 211 </assert_contents> | |
| 212 </discovered_dataset> | |
| 213 </output> | |
| 214 </test> | |
| 215 <test> | |
| 216 <repeat name="analysis"> | |
| 217 <conditional name="input_file"> | |
| 218 <param name="calculate_select" value="compare_top"/> | |
| 219 <param name="top_file" value="nvt.tpr" ftype="tpr"/> | |
| 220 <param name="top_file2" value="npt.tpr" ftype="tpr"/> | |
| 221 <param name="abs_tol" value="0.1"/> | |
| 222 </conditional> | |
| 223 </repeat> | |
| 224 <output name="output" file="check_compare_topology.txt" ftype="txt" lines_diff="4"> | |
| 225 <assert_contents> | |
| 226 <has_n_lines n="1229"/> | |
| 227 <has_text text="maxresnr (7 - 5)"/> | |
| 228 <has_text text="comparing inputrec"/> | |
| 229 <has_text text="inputrec->nstxout (1000 - 50)"/> | |
| 230 <has_text text="ffparams->iparams[237]2: pos0A=( 1.25000000e-01, 1.25000000e-01, 0.00000000e+00)"/> | |
| 231 <has_text text="InteractionList entry[255] (259 - 236)"/> | |
| 232 </assert_contents> | |
| 233 </output> | |
| 234 </test> | |
| 235 <test> | |
| 236 <repeat name="analysis"> | |
| 237 <conditional name="input_file"> | |
| 238 <param name="calculate_select" value="compare_ener"/> | |
| 239 <param name="ener_file" value="minim.edr" ftype="edr"/> | |
| 240 <param name="ener_file2" value="outp.edr" ftype="edr"/> | |
| 241 <param name="rel_tol" value="0.1"/> | |
| 242 <param name="abs_tol" value="0.1"/> | |
| 243 <param name="lastener" value="Pressure"/> | |
| 244 </conditional> | |
| 245 </repeat> | |
| 246 <output name="output" file="check_compare_energy.txt" ftype="txt" lines_diff="4"> | |
| 247 <assert_contents> | |
| 248 <has_n_lines n="199"/> | |
| 249 <has_text text="Reading energy frame"/> | |
| 250 <has_text text="enm[12] (- - Conserved En.)"/> | |
| 251 <has_text text="Angle step 1: 536.268, step 1: 188.647"/> | |
| 252 <has_text text="step (3 - 150)"/> | |
| 253 <has_text text="Coul. recip. step 14: 914.559, step 14: 304.201"/> | |
| 254 </assert_contents> | |
| 255 </output> | |
| 256 </test> | 201 </test> |
| 257 </tests> | 202 </tests> |
| 258 <help><![CDATA[ | 203 <help><![CDATA[ |
| 259 | 204 |
| 260 .. class:: infomark | 205 .. class:: infomark |
| 261 | 206 |
| 262 **What it does** | 207 **What it does** |
| 263 | 208 |
| 264 This tool reads a trajectory (.tng, .trr or .xtc), an energy file (.edr) or an index file (.ndx) and prints out useful information about them. | 209 This tool reads a trajectory (trr or xtc), an energy file (edr) or an index file (ndx) and prints out useful information about them. |
| 265 | 210 |
| 266 Option -c checks for presence of coordinates, velocities and box in the file, for close contacts (smaller than -vdwfac and not bonded, i.e. not between -bonlo and -bonhi, all relative to the sum of both Van der Waals radii) and atoms outside the box (these may occur often and are no problem). If velocities are present, an estimated temperature will be calculated from them. | 211 Selecting 'information about the structure of a system' checks for the presence of coordinates, velocities and the box in the file, close contacts (smaller than van der Waals radii and not bound, i.e. not between minimal fraction of sum of van der Waals radii and maximal fraction of sum of van der Waals radii, all relative to the sum of the two van der Waals radii) and atoms outside the box (these can occur often and are not a problem). If velocities are present, an estimated temperature will be calculated from them. |
| 267 | 212 |
| 268 If an index file, is given its contents will be summarized. | 213 If an index file is given, its contents will be summarized. |
| 269 | 214 |
| 270 The program can compare two run input (.tpr) files when both -s1 and -s2 are supplied. When comparing run input files this way, the default relative tolerance is reduced to 0.000001 and the absolute tolerance set to zero to find any differences not due to minor compiler optimization differences, although you can of course still set any other tolerances through the options.Similarly a pair of trajectory files can be compared (using the -f2 option), or a pair of energy files (using the -e2 option). | 215 The program can compare two runtime input files (tpr) when both topology file 1 and topology file 2 are provided. When comparing run input files this way, the default relative tolerance is reduced to 0.000001 and the absolute tolerance set to zero to find any differences not due to minor compiler optimization differences, although you can of course still set any other tolerances through the options. Similarly a pair of trajectory files can be compared (using compare two trajectories), or a pair of energy files (using compare two energy files). |
| 271 | 216 |
| 272 _____ | 217 _____ |
| 273 | 218 |
| 274 .. class:: infomark | 219 .. class:: infomark |
| 275 | 220 |
| 276 **Inputs** | 221 **Inputs** |
| 277 | 222 |
| 278 **Information about a trajectory** | 223 **Information about a trajectory** |
| 279 - Trajectory file : -f option. Trajectory file in xtc, trr, cpt, gro, g96, pdb or tng format. | 224 - Trajectory file : trajectory file in xtc, trr, cpt, gro or pdb format. |
| 280 | 225 |
| 281 **Compare two trajectories** | 226 **Compare two trajectories** |
| 282 - Trajectory file 1 : -f option. Trajectory file in xtc, trr, cpt, gro, g96, pdb or tng format. | 227 - Trajectory file 1 : trajectory file in xtc, trr, cpt, gro or pdb format. |
| 283 - Trajectory file 2 : -f2 option. Trajectory file in xtc, trr, cpt, gro, g96, pdb or tng format. | 228 - Trajectory file 2 : trajectory file in xtc, trr, cpt, gro or pdb format. |
| 284 - Do you want to display the RMSD? : -rmsd option. Print RMSD for x, v and f. | 229 - Do you want to display the RMSD? : print RMSD for x, v and f. |
| 285 - Enter relative tolerance : -tol option. Relative tolerance for comparing real values. | 230 - Enter relative tolerance : relative tolerance for comparing real values. |
| 286 - Enter absolute tolerance : -abstol option. Absolute tolerance, useful when sums are close to zero. | 231 - Enter absolute tolerance : absolute tolerance, useful when sums are close to zero. |
| 287 | 232 |
| 288 **Information about the structure of a system** | 233 **Information about the structure of a system** |
| 289 - Structure file : -c option. Structure file in tpr, gro, g96, pdb, brk or ent format. | 234 - Structure file : structure file in tpr, gro, pdb, brk or ent format. |
| 290 - Enter the fraction of sum of VdW radii : -vdwfac option. | 235 - Enter the fraction of sum of VdW radii : fraction of sum of VdW radii used as warning cutoff. |
| 291 - Enter the minimal fraction of sum of vdW radii for bonded atoms : -bonlo option. | 236 - Enter the minimal fraction of sum of van der Waals radii for bonded atoms : minimal fraction of sum of van der Waals radii for bonded atoms. |
| 292 - Enter the maximal fraction of sum of vdW radii for bonded atoms : -bonhi option. | 237 - Enter the maximal fraction of sum of van der Waals radii for bonded atoms : maximal fraction of sum of van der Waals radii for bonded atoms. |
| 293 | 238 |
| 294 **Information about the energy of a system** | 239 **Information about the energy of a system** |
| 295 - Energy file : -e option. Energy file in edr format. | 240 - Energy file : energy file in edr format. |
| 296 | 241 |
| 297 **Information about the index of a system** | 242 **Information about the index of a system** |
| 298 - Index file : -n option. Index file in ndx format. | 243 - Index file : index file in ndx format. |
| 299 | 244 |
| 300 **Compare two topologies** | 245 **Compare two topologies** |
| 301 - Topology file 1 : -s1 option. Topology file in tpr format. | 246 - Topology file 1 : topology file in tpr format. |
| 302 - Topology file 2 : -s2 option. Topology file in tpr format. | 247 - Topology file 2 : topology file in tpr format. |
| 303 - Enter absolute tolerance : -abstol option. Absolute tolerance, useful when sums are close to zero. | 248 - Enter absolute tolerance : absolute tolerance, useful when sums are close to zero. |
| 304 | 249 |
| 305 **Compare two energy files** | 250 **Compare two energy files** |
| 306 - Energy file 1 : -e option. Energy file in edr format. | 251 - Energy file 1 : energy file in edr format. |
| 307 - Energy file 2 : -e2 option. Energy file in edr format. | 252 - Energy file 2 : energy file in edr format. |
| 308 - Enter relative tolerance : -tol option. Relative tolerance for comparing real values. | 253 - Enter relative tolerance : relative tolerance for comparing real values. |
| 309 - Enter absolute tolerance : -abstol option. Absolute tolerance, useful when sums are close to zero. | 254 - Enter absolute tolerance : absolute tolerance, useful when sums are close to zero. |
| 310 - Enter the last energy term to compare : -lastener. Last energy term to compare (if not given all are tested). It makes sense to go up until the Pressure. | 255 - Enter the last energy term to compare : last energy term to compare (if not given all are tested). It makes sense to go up until the pressure. |
| 311 | |
| 312 The -ab option is not implemented. | |
| 313 | 256 |
| 314 _____ | 257 _____ |
| 315 | 258 |
| 316 .. class:: infomark | 259 .. class:: infomark |
| 317 | 260 |
| 318 **Output** | 261 **Output** |
| 319 | 262 |
| 320 - list with one or more TXT files. This file contains either information about the trajectory, the structure, the index or the energy, or a comparison between two trajectories, two topologies or two energy files. | 263 - list with one or more text files. This file contains either information about the trajectory, the structure, the index or the energy, or a comparison between two trajectories, two topologies or two energy files. |
| 321 | 264 |
| 322 ]]></help> | 265 ]]></help> |
| 323 <citations> | 266 <citations> |
| 324 <citation type="doi">10.1016/j.softx.2015.06.001</citation> | 267 <citation type="doi">10.1016/j.softx.2015.06.001</citation> |
| 325 </citations> | 268 </citations> |
