|
| 1 | +.\" man page template. See intro.l for more stuff to use |
| 2 | +.Dd May 21, 2019 |
| 3 | +.Dt MFLOCK 1 |
| 4 | +.Sh NAME |
| 5 | +.Nm mflock |
| 6 | +.Nd the molecular dynamics optimizer in chromflock. |
| 7 | +.Sh SYNOPSIS |
| 8 | +.Sy mflock |
| 9 | +.Op Fl w Fl Fl wFile Ar wFile |
| 10 | +.Op Fl L Fl Fl lFile Ar lFile |
| 11 | +.Op Fl x Fl Fl xFile Ar xfile |
| 12 | +.OP Fl o Fl Fl outFolder Ar folder |
| 13 | +.Op Fl e Fl Fl errstop Ar X |
| 14 | +.Op Fl g Fl Fl gradstop Ar X |
| 15 | +.Op Fl l Fl Fl linestop Ar X |
| 16 | +.Op Fl n Fl Fl maxiter Ar X |
| 17 | +.Op Fl t Fl Fl maxtime Ar X |
| 18 | +.Op Fl s Fl Fl seed Ar seed |
| 19 | +.Op Fl r Fl Fl rFile Ar rfile |
| 20 | +.Op Fl V Fl Fl kVol Ar kVol |
| 21 | +.Op Fl I Fl Fl kInt Ar kInt |
| 22 | +.Op Fl S Fl Fl kSph Ar kSph |
| 23 | +.Op Fl G Fl Fl kRad Ar kRad |
| 24 | +.Op Fl R Fl Fl radius Ar r0 |
| 25 | +.Op Fl v Fl Fl verbose Ar level |
| 26 | +.Op Fl o Fl Fl oFolder Ar ofolder |
| 27 | +.Op Fl D Fl Fl dynamic |
| 28 | +.Op Fl z Fl Fl cmmz |
| 29 | +.Op Fl D Fl Fl dynamic |
| 30 | +.Ys |
| 31 | +.Sh DESCRIPTION |
| 32 | +mflock uses molecular dynamics to find a 3D structure based on a contact indication matrix |
| 33 | +W. |
| 34 | +For a complete description on how it is implemented, please see the documentation under 'doc/' in the source directory. |
| 35 | +In short: Verlet integration is used to update the positions of the beads which are under influence of a set of forces: |
| 36 | +a) Volume exclusion (beads should not overlap), controlled by |
| 37 | +.Ar kVol |
| 38 | +b) Spherical containment, that keeps the beads in the unit sphere, controlled by |
| 39 | +.Ar kSph |
| 40 | +c) Interaction forces that keeps beads with indicated contacts to be close to each others, controlled by |
| 41 | +.Ar kInt |
| 42 | +d) Possibly also a radial preference per bead, controlled by |
| 43 | +.Ar kRad |
| 44 | +By design all beads have to have the same size and the geometry is always in the unit sphere (radius=1). |
| 45 | +.Sh wFile |
| 46 | +The wFile contains |
| 47 | +W, a [NxN] size symmetric matrix stored linearly and encoded as 'uint8'. |
| 48 | +.Sh xFile |
| 49 | +The xFile contains 3D coordinates |
| 50 | +.Ar X |
| 51 | +that the molecular dynamics will start from. If not passed, beads will be placed randomly within the domain. |
| 52 | +Note that the parser is primitive and might fail if the xFile is edited without care. |
| 53 | +It reads comma separated values and does not accept headers, comments, etc. |
| 54 | +.Sh oFolder |
| 55 | +An output folder called 'cf_%05d/' will be created if no oFolder is specified. |
| 56 | +.Sh OPTIONS |
| 57 | +.Bl -tag -width Fl |
| 58 | +.It Fl w Fl Fl wFile Ar file |
| 59 | +Specifies the contact indicator matrix to be used where 1=contact, and 0=non contact. A force of kInt will be placed between beads that are in contact. |
| 60 | +.It Fl L Fl Fl lFile Ar file |
| 61 | +Specify a file with labels (chromosome) for the beads. |
| 62 | +.It Fl x Fl Fl xFile Ar file |
| 63 | +Specify a file with coordinates for the beads. |
| 64 | +.It Fl s Fl Fl seed Ar x |
| 65 | +Set a seed for the random number generator. If not time(NULL)*getpid() will be used. |
| 66 | +.It Fl r Fl Fl rFile Ar file |
| 67 | +Specify a file with radial information to be used with kRad |
| 68 | +.It Fl e Fl Fl errstop Ar x |
| 69 | +Set a stop condition on the error. |
| 70 | +.It Fl g Fl Fl gstop Ar x |
| 71 | +Set a condition for stopping on the gradient magnitude. |
| 72 | +.It Fl l Fl Fl ltol Ar x |
| 73 | +Set the line tolerance (only for Quasi-Newton) |
| 74 | +.It Fl n Fl Fl maxiter Ar n |
| 75 | +Set the number of iterations to be used. |
| 76 | +.It Fl t Fl Fl maxtime Ar t |
| 77 | +Limit the simulations in time |
| 78 | +.It Fl V Fl Fl kVol Ar k |
| 79 | +Set the volume exclusion force |
| 80 | +.It Fl I Fl Fl kInt Ar k |
| 81 | +Set the interaction force. |
| 82 | +.It Fl S Fl Fl kSph Ar k |
| 83 | +Set the force used to keep the beads in the domain. |
| 84 | +.It Fl G Fl Fl kRad Ar k |
| 85 | +Set the force for the radial guidance of the beads. |
| 86 | +.It Fl R Fl Fl radius Ar r0 |
| 87 | +Set the bead radius. |
| 88 | +.It Fl v Fl Fl verbose Ar level |
| 89 | +Set verbosity level |
| 90 | +.It Fl o Fl Fl oFolder |
| 91 | +specify output folder |
| 92 | +.It Fl z Fl Fl cmmz |
| 93 | +Write compressed chimera files. |
| 94 | +.It Fl D Fl Fl dynamic |
| 95 | +Enable molecular dynamics (will be default in the future). If not a Quasi-Newton optimizer is used. |
| 96 | +.It Fl c Fl Fl compress |
| 97 | +Use chromosome compression. |
| 98 | +.It Fl a Fl Fl live |
| 99 | +Pops up a renderer that shows the beads during the simulation. Requires that mflock is compiled with SDL2. |
| 100 | +.It Fl h Fl Fl help |
| 101 | +Show a brief help message. |
| 102 | +.El |
| 103 | +.Sh EXAMPLES |
| 104 | +See the script `/util/chromflock_run`. |
| 105 | +.Ss Basic usage: |
| 106 | +Assume that you want to discard sequences in sequences.fa that are also in Chr1, then run: |
| 107 | +.Pp |
| 108 | +$ mflock --wFile ../W.uint8 --lFile ../L.uint8 |
| 109 | +.Sh SEE ALSO |
| 110 | +chromflock, aflock |
0 commit comments