Package ffx.xray.parsers
Class MTZFilter
java.lang.Object
ffx.xray.parsers.MTZFilter
- All Implemented Interfaces:
DiffractionFileFilter
This class parses CCP4 MTZ files.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaverageFcs(File mtzFile1, File mtzFile2, ReflectionList reflectionlist, int iter, org.apache.commons.configuration2.CompositeConfiguration properties) Average the computed structure factors for two systems.getReflectionList(File mtzFile) Get reflection information from a reflection file.getReflectionList(File mtzFile, org.apache.commons.configuration2.CompositeConfiguration properties) Get reflection information from a reflection file.doublegetResolution(File mtzFile, Crystal crystal) Attempt to determine resolution of reflection file.voidprintHeaderbooleanreadFile(File mtzFile, ReflectionList reflectionList, DiffractionRefinementData refinementData, org.apache.commons.configuration2.CompositeConfiguration properties) Read in reflection file.
-
Constructor Details
-
MTZFilter
public MTZFilter()Constructor for MTZFilter.
-
-
Method Details
-
averageFcs
public void averageFcs(File mtzFile1, File mtzFile2, ReflectionList reflectionlist, int iter, org.apache.commons.configuration2.CompositeConfiguration properties) Average the computed structure factors for two systems.- Parameters:
mtzFile1- This file will be overwritten and become the new average.mtzFile2- Second MTZ file.reflectionlist- List of HKLs.iter- The iteration in the running average.properties- The CompositeConfiguration defines the properties of each system.
-
getReflectionList
public ReflectionList getReflectionList(File mtzFile, org.apache.commons.configuration2.CompositeConfiguration properties) Get reflection information from a reflection file.- Specified by:
getReflectionListin interfaceDiffractionFileFilter- Parameters:
mtzFile- File to read in.properties- System properties.- Returns:
- The
ReflectionList, or null if not enough information present in the reflection file.
-
getReflectionList
Get reflection information from a reflection file.- Specified by:
getReflectionListin interfaceDiffractionFileFilter- Parameters:
mtzFile- File to read in.- Returns:
- The
ReflectionList, or null if not enough information present in the reflection file.
-
getResolution
Attempt to determine resolution of reflection file.- Specified by:
getResolutionin interfaceDiffractionFileFilter- Parameters:
mtzFile- File to read in.crystal- Crystal system to determine resolution information from.- Returns:
- The resolution.
-
printHeader
public void printHeader()printHeader -
readFile
public boolean readFile(File mtzFile, ReflectionList reflectionList, DiffractionRefinementData refinementData, org.apache.commons.configuration2.CompositeConfiguration properties) Read in reflection file.- Specified by:
readFilein interfaceDiffractionFileFilter- Parameters:
mtzFile- File to read in.reflectionList- TheReflectionListto find data indices.refinementData- TheDiffractionRefinementDataobject to fill in.properties- System properties.- Returns:
- True if read in properly.
-