Package ffx.xray
Class DiffractionData
java.lang.Object
ffx.xray.DiffractionData
- All Implemented Interfaces:
DataContainer
DiffractionData class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Constructor Summary
ConstructorDescriptionDiffractionData
(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assemblyDiffractionData
(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel, DiffractionFile... datafile) construct a diffraction data assemblyDiffractionData
(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties, DiffractionFile... datafile) construct a diffraction data assemblyDiffractionData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assemblyDiffractionData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assemblyDiffractionData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel, DiffractionFile... datafile) construct a diffraction data assemblyDiffractionData
(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, DiffractionFile... datafile) construct a diffraction data assembly -
Method Summary
Modifier and TypeMethodDescriptionvoid
AverageFc
(MolecularAssembly[] assembly, int index) read in a different assembly to average in structure factorsvoid
Parallelized call to compute atomic density on a grid, followed by FFT to compute structure factors.boolean
destroy()
Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.Atom[]
getActiveAtomArray.getAltMoleculesgetAltResiduesdouble
Getter for the fieldaRadBuff
.Getter for the fieldassembly
.Atom[]
getAtomArrayCrystal[]
Getter for the fieldcrystal
.Getter for the fieldcrs_fc
.Getter for the fieldcrs_fs
.Getter for the fieldcrystalStats
.Getter for the fielddataFiles
.double
Getter for the fieldfsigfCutoff
.Getter for the fieldmodelName
.getMolecularAssembliesint
getN()
Getter for the fieldn
.Getter for the fieldparallelTeam
.double
Return R value for OST x-ray minimization.Getter for the fieldrefinementData
.getRefinementModelGetter for the fieldreflectionList
.Getter for the fieldresolution
.Getter for the fieldscaleBulkMinimize
.boolean[]
Getter for the fieldscaled
.Getter for the fieldsigmaAMinimize
.double
Getter for the fieldsigmaATol
.Getter for the fieldsolventModel
.Getter for the fieldsplineMinimize
.double
getWeightdouble
Getter for the fieldxrayScaleTol
.double
Getter for the fieldxWeight
.boolean
isRefineMolOcc.boolean
isUse_3g()
isUse_3g.printEnergyUpdateprintOptimizationHeaderprintOptimizationUpdatevoid
Print scale and R statistics for all datasets associated with the model.void
Print all statistics for all datasets associated with the model.void
Scale model and fit bulk solvent to all data.void
scaleBulkFit
(int i) Scale model and fit bulk solvent to dataset i of n.void
setSolventAB
(double a, double b) set the bulk solvent parameters for a given bulk solvent modelvoid
setWeight
(double weight) setWeightvoid
timings()
Perform 10 Fc calculations for the purposes of timings.void
write current datasets to MTZ filesvoid
write dataset i to MTZ filevoid
write 2Fo-Fc and Fo-Fc maps for all datasetsvoid
writeModel
(String filename) Write current model to PDB file.void
writeModel
(String filename, Set<Atom> excludeAtoms, double pH) Write current model to PDB file.void
writeSolventMask
(String filename) Write bulk solvent mask for all datasets to a CCP4 map file.void
writeSolventMaskCNS
(String filename) Write bulk solvent mask for all datasets to a CNS map file.
-
Constructor Details
-
DiffractionData
public DiffractionData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assembly- Parameters:
assembly
-molecular assembly
object, used as the atomic model for comparison against the dataproperties
- system properties file
-
DiffractionData
public DiffractionData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, DiffractionFile... datafile) construct a diffraction data assembly- Parameters:
assembly
-molecular assembly
object, used as the atomic model for comparison against the dataproperties
- system properties filedatafile
- one or moreDiffractionFile
to be refined against
-
DiffractionData
public DiffractionData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assembly- Parameters:
assembly
-molecular assembly
object, used as the atomic model for comparison against the dataproperties
- system properties filesolventmodel
- the type of solvent model desired - seebulk solvent model
selections
-
DiffractionData
public DiffractionData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel, DiffractionFile... datafile) construct a diffraction data assembly- Parameters:
assembly
-molecular assembly
object, used as the atomic model for comparison against the dataproperties
- system properties filesolventmodel
- the type of solvent model desired - seebulk solvent model
selectionsdatafile
- one or moreDiffractionFile
to be refined against
-
DiffractionData
public DiffractionData(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties) construct a diffraction data assembly, assumes an X-ray data set with a weight of 1.0 using the same name as the molecular assembly- Parameters:
assembly
-molecular assembly
object array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties
- system properties file
-
DiffractionData
public DiffractionData(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties, DiffractionFile... datafile) construct a diffraction data assembly- Parameters:
assembly
-molecular assembly
object array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties
- system properties filedatafile
- one or moreDiffractionFile
to be refined against
-
DiffractionData
public DiffractionData(MolecularAssembly[] assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel, DiffractionFile... datafile) construct a diffraction data assembly- Parameters:
assembly
-molecular assembly
object array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties
- system properties filesolventmodel
- the type of solvent model desired - seebulk solvent model
selectionsdatafile
- one or moreDiffractionFile
to be refined against
-
-
Method Details
-
AverageFc
read in a different assembly to average in structure factors- Parameters:
assembly
- themolecular assembly
object array (typically containing alternate conformer assemblies), used as the atomic model to average in with previous assemblyindex
- the current data index (for cumulative average purposes)
-
computeAtomicDensity
public void computeAtomicDensity()Parallelized call to compute atomic density on a grid, followed by FFT to compute structure factors.- See Also:
-
destroy
public boolean destroy()Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.- Returns:
- If assets successfully freed.
-
getActiveAtomArray
getActiveAtomArray.- Specified by:
getActiveAtomArray
in interfaceDataContainer
- Returns:
- an array of
Atom
objects.
-
getAltMolecules
getAltMolecules- Specified by:
getAltMolecules
in interfaceDataContainer
- Returns:
- a
List
object.
-
getAltResidues
getAltResidues- Specified by:
getAltResidues
in interfaceDataContainer
- Returns:
- a
List
object.
-
getAssembly
Getter for the fieldassembly
.- Returns:
- the assembly
-
getAtomArray
getAtomArrayreturn the atom array for the model associated with this data
- Specified by:
getAtomArray
in interfaceDataContainer
- Returns:
- an array of
Atom
objects.
-
getCrystal
Getter for the fieldcrystal
.- Returns:
- the crystal
-
getCrystalReciprocalSpacesFc
Getter for the fieldcrs_fc
.- Returns:
- the crs_fc
-
getCrystalReciprocalSpacesFs
Getter for the fieldcrs_fs
.- Returns:
- the crs_fs
-
getCrystalStats
Getter for the fieldcrystalStats
.- Returns:
- the crystalStats
-
getDataFiles
Getter for the fielddataFiles
.- Returns:
- the dataFiles
-
getFsigfCutoff
public double getFsigfCutoff()Getter for the fieldfsigfCutoff
.- Returns:
- the fsigfCutoff
-
getModelName
Getter for the fieldmodelName
.- Returns:
- the modelName
-
getMolecularAssemblies
getMolecularAssemblies- Specified by:
getMolecularAssemblies
in interfaceDataContainer
- Returns:
- an array of
MolecularAssembly
objects.
-
getN
public int getN()Getter for the fieldn
.- Returns:
- the n
-
getParallelTeam
Getter for the fieldparallelTeam
.- Returns:
- the parallelTeam
-
getRCrystalStat
public double getRCrystalStat()Return R value for OST x-ray minimization.- Returns:
- a double.
-
getRefinementData
Getter for the fieldrefinementData
.- Returns:
- the refinementData
-
getRefinementModel
getRefinementModel- Specified by:
getRefinementModel
in interfaceDataContainer
- Returns:
- a
RefinementModel
object.
-
getReflectionList
Getter for the fieldreflectionList
.- Returns:
- the reflectionList
-
getResolution
Getter for the fieldresolution
.- Returns:
- the resolution
-
getScaleBulkMinimize
Getter for the fieldscaleBulkMinimize
.- Returns:
- the scaleBulkMinimize
-
getScaled
public boolean[] getScaled()Getter for the fieldscaled
.- Returns:
- the scaled
-
getSigmaAMinimize
Getter for the fieldsigmaAMinimize
.- Returns:
- the sigmaAMinimize
-
getSigmaATol
public double getSigmaATol()Getter for the fieldsigmaATol
.- Returns:
- the sigmaATol
-
getSolventModel
Getter for the fieldsolventModel
.- Returns:
- the solventModel
-
getSplineMinimize
Getter for the fieldsplineMinimize
.- Returns:
- the splineMinimize
-
getWeight
public double getWeight()getWeight- Specified by:
getWeight
in interfaceDataContainer
- Returns:
- the current data weight.
-
setWeight
public void setWeight(double weight) setWeight- Specified by:
setWeight
in interfaceDataContainer
- Parameters:
weight
- set the overall weight of the data.
-
getXrayScaleTol
public double getXrayScaleTol()Getter for the fieldxrayScaleTol
.- Returns:
- the xrayScaleTol
-
getaRadBuff
public double getaRadBuff()Getter for the fieldaRadBuff
.- Returns:
- the aRadBuff
-
getxWeight
public double getxWeight()Getter for the fieldxWeight
.- Returns:
- the xWeight
-
isRefineMolOcc
public boolean isRefineMolOcc()isRefineMolOcc.- Returns:
- the refineMolOcc
-
isUse_3g
public boolean isUse_3g()isUse_3g.- Returns:
- the use_3g
-
printEnergyUpdate
printEnergyUpdate- Specified by:
printEnergyUpdate
in interfaceDataContainer
- Returns:
- a
String
object.
-
printOptimizationHeader
printOptimizationHeader- Specified by:
printOptimizationHeader
in interfaceDataContainer
- Returns:
- a
String
object.
-
printOptimizationUpdate
printOptimizationUpdate- Specified by:
printOptimizationUpdate
in interfaceDataContainer
- Returns:
- a
String
object.
-
printScaleAndR
public void printScaleAndR()Print scale and R statistics for all datasets associated with the model. -
printStats
public void printStats()Print all statistics for all datasets associated with the model. -
scaleBulkFit
public void scaleBulkFit()Scale model and fit bulk solvent to all data. -
scaleBulkFit
public void scaleBulkFit(int i) Scale model and fit bulk solvent to dataset i of n.- Parameters:
i
- a int.
-
setSolventAB
public void setSolventAB(double a, double b) set the bulk solvent parameters for a given bulk solvent model- Parameters:
a
- typically the width of the atomb
- typically the rate with which the atom transitions to bulk- See Also:
-
timings
public void timings()Perform 10 Fc calculations for the purposes of timings. -
writeData
write current datasets to MTZ files- Parameters:
filename
- output filename, or filename root for multiple datasets- See Also:
-
writeData
write dataset i to MTZ file- Parameters:
filename
- output filenamei
- dataset to write out- See Also:
-
writeMaps
write 2Fo-Fc and Fo-Fc maps for all datasets- Parameters:
filename
- output root filename for Fo-Fc and 2Fo-Fc maps
-
writeModel
Write current model to PDB file.- Parameters:
filename
- output PDB filename
-
writeModel
Write current model to PDB file.- Parameters:
filename
- output PDB filename
-
writeSolventMask
Write bulk solvent mask for all datasets to a CCP4 map file.- Parameters:
filename
- output filename, or output root filename for multiple datasets- See Also:
-
writeSolventMaskCNS
Write bulk solvent mask for all datasets to a CNS map file.- Parameters:
filename
- output filename, or output root filename for multiple datasets
-