Package ffx.xray
Class CrystalReciprocalSpace
java.lang.Object
ffx.xray.CrystalReciprocalSpace
Structure factor calculation (including bulk solvent structure factors)
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrystalReciprocalSpace(ReflectionList reflectionList, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam) Crystal Reciprocal Space constructor, assumes this is not a bulk solvent mask and is not a neutron data setCrystalReciprocalSpace(ReflectionList reflectionList, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam, boolean solventMask) Crystal Reciprocal Space constructor, assumes this is not a neutron data set and implements a polynomial bulk solvent mask if neededCrystalReciprocalSpace(ReflectionList reflectionlist, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam, boolean solventMask, boolean neutron, SolventModel solventModel, GridMethod gridMethod) Crystal Reciprocal Space constructor, all parameters provided -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeAtomicGradients(double[][] hklData, int[] freer, int flag, RefinementMode refinementMode) compute inverse FFT to determine atomic gradientsvoidcomputeSolventDensity(double[][] hklData) parallelized computation of bulk solvent structure factorsvoiddensityNorm(double[] data, double[] meansd, boolean norm) densityNormdouble[]Getter for the fielddensityGrid.doublereturn dataset weightdoublegetXDim()getXDimdoublegetYDim()getYDimdoublegetZDim()getZDimvoidsetWeight(double weight) set the dataset weightvoidUpdate atomic coordinates from references to Atom instances.
-
Constructor Details
-
CrystalReciprocalSpace
public CrystalReciprocalSpace(ReflectionList reflectionList, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam) Crystal Reciprocal Space constructor, assumes this is not a bulk solvent mask and is not a neutron data set- Parameters:
reflectionList- theReflectionListto fill with structure factorsscatteringAtoms- array ofatomsfor structure factor computationfftTeam-ParallelTeamfor parallelizationparallelTeam-ParallelTeamfor parallelization
-
CrystalReciprocalSpace
public CrystalReciprocalSpace(ReflectionList reflectionList, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam, boolean solventMask) Crystal Reciprocal Space constructor, assumes this is not a neutron data set and implements a polynomial bulk solvent mask if needed- Parameters:
reflectionList- theReflectionListto fill with structure factorsscatteringAtoms- array ofatomsfor structure factor computationfftTeam-ParallelTeamfor parallelizationparallelTeam-ParallelTeamfor parallelizationsolventMask- true if this is a bulk solvent mask
-
CrystalReciprocalSpace
public CrystalReciprocalSpace(ReflectionList reflectionlist, Atom[] scatteringAtoms, ParallelTeam fftTeam, ParallelTeam parallelTeam, boolean solventMask, boolean neutron, SolventModel solventModel, GridMethod gridMethod) Crystal Reciprocal Space constructor, all parameters provided- Parameters:
reflectionlist- theReflectionListto fill with structure factorsscatteringAtoms- array ofatomsfor structure factor computationfftTeam-ParallelTeamfor parallelizationparallelTeam-ParallelTeamfor parallelizationsolventMask- true if this is a bulk solvent maskneutron- true if this is a neutron structuresolventModel- bulk solvent model typegridMethod- parallel method for putting density onto the FFT grid.- See Also:
-
-
Method Details
-
computeAtomicGradients
public void computeAtomicGradients(double[][] hklData, int[] freer, int flag, RefinementMode refinementMode) compute inverse FFT to determine atomic gradients- Parameters:
hklData- structure factors to apply inverse FFTfreer- array of free r flags corresponding to hkldataflag- Rfree flag valuerefinementMode-refinement mode- See Also:
-
computeSolventDensity
public void computeSolventDensity(double[][] hklData) parallelized computation of bulk solvent structure factors- Parameters:
hklData- structure factor list to fill in- See Also:
-
densityNorm
public void densityNorm(double[] data, double[] meansd, boolean norm) densityNorm- Parameters:
data- an array of double.meansd- an array of double.norm- a boolean.
-
getDensityGrid
public double[] getDensityGrid()Getter for the fielddensityGrid.- Returns:
- the densityGrid
-
getWeight
public double getWeight()return dataset weight- Returns:
- the weight wA
-
setWeight
public void setWeight(double weight) set the dataset weight- Parameters:
weight- desired weight wA
-
getXDim
public double getXDim()getXDim- Returns:
- a double.
-
getYDim
public double getYDim()getYDim- Returns:
- a double.
-
getZDim
public double getZDim()getZDim- Returns:
- a double.
-
updateCoordinates
public void updateCoordinates()Update atomic coordinates from references to Atom instances.
-