Skip to content
Snippets Groups Projects
Commit 1df84ab8 authored by Michal Malý's avatar Michal Malý
Browse files

Update example in README

parent 90d72f06
No related branches found
No related tags found
No related merge requests found
...@@ -30,13 +30,26 @@ try { ...@@ -30,13 +30,26 @@ try {
'UACGUAAGUA', // Sequence 'UACGUAAGUA', // Sequence
2639 // Author number of the first residue 2639 // Author number of the first residue
); );
// NtC to apply on structural conformation // Specify double helix pairing
$ntcs = [ $dh = new \WebMMB\DoubleHelix(
new \WebMMB\NtC('A', $rna->authToSeq(2639), $rna->authToSeq(2642), 'AA00', 1.5), 'A',
new \WebMMB\NtC('A', $rna->authToSeq(2642), $rna->authToSeq(2643), 'OP03', 1.5), $rna->authToSeq(2639),
new \WebMMB\NtC('A', $rna->authToSeq(2643), $rna->authToSeq(2644), 'AA08', 1.5), $rna->authToSeq(2641),
new \WebMMB\NtC('A', $rna->authToSeq(2644), $rna->authToSeq(2648), 'AA00', 1.5) 'A',
$rna->authToSeq(2648),
$rna->authToSeq(2646)
);
// NtCs to apply on structural conformation
$conformations = [
new \WebMMB\NtCConformation('A', $rna->authToSeq(2639), $rna->authToSeq(2642), 'AA00', 1.5),
new \WebMMB\NtCConformation('A', $rna->authToSeq(2642), $rna->authToSeq(2643), 'OP03', 1.5),
new \WebMMB\NtCConformation('A', $rna->authToSeq(2643), $rna->authToSeq(2644), 'AA08', 1.5),
new \WebMMB\NtCConformation('A', $rna->authToSeq(2644), $rna->authToSeq(2648), 'AA00', 1.5)
]; ];
$ntcs = new \WebMMB\NtCs(
$conformations, // List of NtC conformations to apply
3000 // NtC force scale factor - 3000 is the recommended default value
);
// Create StandardCommands object // Create StandardCommands object
$commands = new \WebMMB\StandardCommands( $commands = new \WebMMB\StandardCommands(
1, // First stage 1, // First stage
...@@ -46,6 +59,7 @@ try { ...@@ -46,6 +59,7 @@ try {
); );
// Set up additional parameters // Set up additional parameters
$commands->compounds = [ $rna ]; // StandardCommands expects an array of compounds $commands->compounds = [ $rna ]; // StandardCommands expects an array of compounds
$commands->double_helices = [ $dh ];
$commands->ntcs = $ntcs; $commands->ntcs = $ntcs;
// Start the job // Start the job
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment