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[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, SolventModel solventModel, DiffractionFile... dataFiles) 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.Getter for the fieldassembly.Crystal[]Getter for the fieldcrystal.Getter for the fieldcrs_fc.Getter for the fieldcrs_fs.intgetN()Getter for the fieldn.Getter for the fieldparallelTeam.Getter for the fieldrefinementData.getRefinementModelGetter for the fieldreflectionList.Getter for the fieldresolution.boolean[]Getter for the fieldscaled.doublegetWeightprintEnergyUpdateprintOptimizationHeaderprintOptimizationUpdatevoidPrint 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.voidsetWeight(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[] molecularAssemblies, org.apache.commons.configuration2.CompositeConfiguration properties, SolventModel solventModel, DiffractionFile... dataFiles) construct a diffraction data assembly- Parameters:
molecularAssemblies-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 modelselectionsdataFiles- 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.
-
getAssembly
Getter for the fieldassembly.- Returns:
- the assembly
-
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
-
getN
public int getN()Getter for the fieldn.- Returns:
- the n
-
getParallelTeam
Getter for the fieldparallelTeam.- Returns:
- the parallelTeam
-
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
-
getScaled
public boolean[] getScaled()Getter for the fieldscaled.- Returns:
- the scaled
-
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.
-
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.
-
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.
-
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
-