Talk:REFERENCE DATA SET: Difference between revisions

From XDSwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
If the mtz file to be used for reference data set creation contains three digit reflection indices with negative signs (e.g., -102), the output from the original script will not be recognizable to XDS due to lack of space between reflection indices. An alternative method using mtz2various (below) avoids this issue.
If the mtz file to be used for reference data set creation contains three digit reflection indices with negative signs (e.g., -102), the output from the original script will not be recognizable to XDS due to lack of space between reflection indices. An alternative method using mtz2various (below) avoids this issue.


 
<pre>
{code}
#!/bin/bash
#!/bin/bash


Line 27: Line 26:
cat head.hkl temp.hkl > I-model.hkl
cat head.hkl temp.hkl > I-model.hkl
rm head.hkl temp.hkl I-model.mtz
rm head.hkl temp.hkl I-model.mtz
</pre>

Latest revision as of 22:11, 30 September 2022

If the mtz file to be used for reference data set creation contains three digit reflection indices with negative signs (e.g., -102), the output from the original script will not be recognizable to XDS due to lack of space between reflection indices. An alternative method using mtz2various (below) avoids this issue.

#!/bin/bash

#starting mtz needs to be named refine.mtz with an F column called FP and a SIGF column called SIGFP
rm head.hkl temp.hkl I-model.mtz
echo square model amplitudes:
sftools <<EOF
read refine.mtz
select col FP = present
calc col I-model = col FP col FP *
write I-model.mtz col I-model SIGFP
quit
EOF
echo convert to ASCII format:
mtz2various hklin I-model.mtz hklout temp.hkl <<eof
LABIN FP=I-model SIGFP=SIGFP
RESOLUTION 50 1.8
OUTPUT USER '(3I5,7X,F9.2,5X,F6.2)'
END
eof
echo prepare I-model.hkl:
echo \!FORMAT=XDS_ASCII > head.hkl
echo \!END_OF_HEADER   >> head.hkl
cat head.hkl temp.hkl > I-model.hkl
rm head.hkl temp.hkl I-model.mtz