Skip to content
51 changes: 49 additions & 2 deletions doc/cpptraj.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -29579,7 +29579,7 @@ nastruct

\end_inset

[<dataset name>] [resrange <range>] [naout <suffix>]
[<dataset name>] [resrange <range>] [sscalc] [naout <suffix>]
\end_layout

\begin_layout LyX-Code
Expand Down Expand Up @@ -29627,6 +29627,10 @@ name>] Output data set name.
<range>] Residue range to search for nucleic acids in (default all).
\end_layout

\begin_layout Description
[sscalc] Calculate parameters between consectuive bases in strands.
\end_layout

\begin_layout Description
[naout
\begin_inset space ~
Expand All @@ -29635,6 +29639,11 @@ name>] Output data set name.
<suffix>] File name suffix for output files; BP.<suffix> for base pair parameters
, BPstep.<suffix> for base pair step parameters, and Helix.<suffix> for base
pair step helical parameters.
If
\series bold
sscalc
\series default
is specified, also SS.<suffix> for parameters of consecutive bases in strands.
\end_layout

\begin_layout Description
Expand Down Expand Up @@ -29929,11 +29938,39 @@ Helical steps:
<name>[htwist]:X Helical twist.
\end_layout

\begin_layout Standard
Strands (sscalc only):
\end_layout

\begin_layout Description
<name>[dx]:X Strand pair X (starting from 1) X displacement.
\end_layout

\begin_layout Description
<name>[dy]:X Y displacement.
\end_layout

\begin_layout Description
<name>[dz]:X Z displacement.
\end_layout

\begin_layout Description
<name>[rx]:X Relative rotation around X axis.
\end_layout

\begin_layout Description
<name>[ry]:X Relative rotation around Y axis.
\end_layout

\begin_layout Description
<name>[rz]:X Relateive rotation around Z axis.
\end_layout

\end_deeper
\begin_layout Standard

\shape italic
Note that data sets are not created until base pairing is determined.
Note that base pair data sets are not created until base pairing is determined.
\end_layout

\begin_layout Standard
Expand Down Expand Up @@ -30066,6 +30103,16 @@ run
writedata NApucker.dat NA[pucker]
\end_layout

\begin_layout Standard
Note that while the underlying procedure is geared towards calculating parameter
s for base pairs, the code can be made to calculate parameters between consecuti
ve bases in single strands by specifying
\series bold
sscalc
\series default
.
\end_layout

\begin_layout Subsubsection*
Custom Nucleic Acid Base References
\end_layout
Expand Down
2 changes: 1 addition & 1 deletion src/Action_MakeStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Action_MakeStructure : public Action {
SS_TYPE(double ph,double ps,double ph2,double ps2,int t,std::string const& n) :
phi(ph), psi(ps), phi2(ph2), psi2(ps2), isTurn(t), type_arg(n) {}
bool empty() { return (isTurn == -1); }
double phi, psi, phi2, psi2; // Angle(s) FIXME: Should this be an array?
double phi, psi, phi2, psi2; // Angle(s) TODO: Should this be an array?
int isTurn; // 0=phi/psi, 1=Turn (phi/psi/phi2/psi2), 2=Single Dihedral(phi)
std::string type_arg;
};
Expand Down
Loading