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
ConstructorsConstructorDescriptionDiffractionData(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 TypeMethodDescriptionvoidAverageFc(MolecularAssembly[] assembly, int index) read in a different assembly to average in structure factorsvoidParallelized call to compute atomic density on a grid, followed by FFT to compute structure factors.booleandestroy()Similar to Potential.destroy(), frees up resources associated with this RealSpaceData.Atom[]getActiveAtomArray.getAltMoleculesgetAltResiduesdoubleGetter 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.doubleGetter for the fieldfsigfCutoff.Getter for the fieldmodelName.getMolecularAssembliesintgetN()Getter for the fieldn.Getter for the fieldparallelTeam.doubleReturn 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.doubleGetter for the fieldsigmaATol.Getter for the fieldsolventModel.Getter for the fieldsplineMinimize.doublegetWeightdoubleGetter for the fieldxrayScaleTol.doubleGetter for the fieldxWeight.booleanisRefineMolOcc.booleanisUse_3g()isUse_3g.printEnergyUpdateprintOptimizationHeaderprintOptimizationUpdatevoidPrint scale and R statistics for all datasets associated with the model.voidPrint all statistics for all datasets associated with the model.voidScale model and fit bulk solvent to all data.voidscaleBulkFit(int i) Scale model and fit bulk solvent to dataset i of n.voidsetSolventAB(double a, double b) set the bulk solvent parameters for a given bulk solvent modelvoidsetWeight(double weight) setWeightvoidtimings()Perform 10 Fc calculations for the purposes of timings.voidwrite current datasets to MTZ filesvoidwrite dataset i to MTZ filevoidwrite 2Fo-Fc and Fo-Fc maps for all datasetsvoidwriteModel(String filename) Write current model to PDB file.voidwriteModel(String filename, Set<Atom> excludeAtoms, double pH) Write current model to PDB file.voidwriteSolventMask(String filename) Write bulk solvent mask for all datasets to a CCP4 map file.voidwriteSolventMaskCNS(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 assemblyobject, 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 assemblyobject, used as the atomic model for comparison against the dataproperties- system properties filedatafile- one or moreDiffractionFileto 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 assemblyobject, used as the atomic model for comparison against the dataproperties- system properties filesolventmodel- the type of solvent model desired - seebulk solvent modelselections
-
DiffractionData
public DiffractionData(MolecularAssembly assembly, org.apache.commons.configuration2.CompositeConfiguration properties, CrystalReciprocalSpace.SolventModel solventmodel, DiffractionFile... datafile) construct a diffraction data assembly- Parameters:
assembly-molecular assemblyobject, used as the atomic model for comparison against the dataproperties- system properties filesolventmodel- the type of solvent model desired - seebulk solvent modelselectionsdatafile- one or moreDiffractionFileto 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 assemblyobject 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 assemblyobject array (typically containing alternate conformer assemblies), used as the atomic model for comparison against the dataproperties- system properties filedatafile- one or moreDiffractionFileto 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 assemblyobject 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 modelselectionsdatafile- one or moreDiffractionFileto be refined against
-
-
Method Details
-
AverageFc
read in a different assembly to average in structure factors- Parameters:
assembly- themolecular assemblyobject 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:
getActiveAtomArrayin interfaceDataContainer- Returns:
- an array of
Atomobjects.
-
getAltMolecules
getAltMolecules- Specified by:
getAltMoleculesin interfaceDataContainer- Returns:
- a
Listobject.
-
getAltResidues
getAltResidues- Specified by:
getAltResiduesin interfaceDataContainer- Returns:
- a
Listobject.
-
getAssembly
Getter for the fieldassembly.- Returns:
- the assembly
-
getAtomArray
getAtomArrayreturn the atom array for the model associated with this data
- Specified by:
getAtomArrayin interfaceDataContainer- Returns:
- an array of
Atomobjects.
-
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:
getMolecularAssembliesin interfaceDataContainer- Returns:
- an array of
MolecularAssemblyobjects.
-
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:
getRefinementModelin interfaceDataContainer- Returns:
- a
RefinementModelobject.
-
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:
getWeightin interfaceDataContainer- Returns:
- the current data weight.
-
setWeight
public void setWeight(double weight) setWeight- Specified by:
setWeightin 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:
printEnergyUpdatein interfaceDataContainer- Returns:
- a
Stringobject.
-
printOptimizationHeader
printOptimizationHeader- Specified by:
printOptimizationHeaderin interfaceDataContainer- Returns:
- a
Stringobject.
-
printOptimizationUpdate
printOptimizationUpdate- Specified by:
printOptimizationUpdatein interfaceDataContainer- Returns:
- a
Stringobject.
-
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
-