Package ffx.xray.parsers
Class CNSFilter
java.lang.Object
ffx.xray.parsers.CNSFilter
- All Implemented Interfaces:
DiffractionFileFilter
CNSFilter class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReflectionList
(File cnsFile) Get reflection information from a reflection file.getReflectionList
(File cnsFile, org.apache.commons.configuration2.CompositeConfiguration properties) Get reflection information from a reflection file.double
getResolution
(File cnsFile, Crystal crystal) Attempt to determine resolution of reflection file.boolean
readFile
(File cnsFile, ReflectionList reflectionList, DiffractionRefinementData refinementData, org.apache.commons.configuration2.CompositeConfiguration properties) Read in reflection file.
-
Constructor Details
-
CNSFilter
public CNSFilter()Constructor for CNSFilter.
-
-
Method Details
-
getReflectionList
Get reflection information from a reflection file.- Specified by:
getReflectionList
in interfaceDiffractionFileFilter
- Parameters:
cnsFile
- File to read in.- Returns:
- The
ReflectionList
, or null if not enough information present in the reflection file.
-
getReflectionList
public ReflectionList getReflectionList(File cnsFile, org.apache.commons.configuration2.CompositeConfiguration properties) Get reflection information from a reflection file.- Specified by:
getReflectionList
in interfaceDiffractionFileFilter
- Parameters:
cnsFile
- File to read in.properties
- System properties.- Returns:
- The
ReflectionList
, or null if not enough information present in the reflection file.
-
getResolution
Attempt to determine resolution of reflection file.- Specified by:
getResolution
in interfaceDiffractionFileFilter
- Parameters:
cnsFile
- File to read in.crystal
- Crystal system to determine resolution information from.- Returns:
- The resolution.
-
readFile
public boolean readFile(File cnsFile, ReflectionList reflectionList, DiffractionRefinementData refinementData, org.apache.commons.configuration2.CompositeConfiguration properties) Read in reflection file.- Specified by:
readFile
in interfaceDiffractionFileFilter
- Parameters:
cnsFile
- File to read in.reflectionList
- TheReflectionList
to find data indices.refinementData
- TheDiffractionRefinementData
object to fill in.properties
- System properties.- Returns:
- True if read in properly.
-