Skip to content

Commit

Permalink
Merge pull request #39 from NelleV/doc
Browse files Browse the repository at this point in the history
Doc
  • Loading branch information
NelleV authored Jun 11, 2018
2 parents 14473a3 + 49ae7fb commit 7d12328
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 31 deletions.
5 changes: 3 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@

import sys
import os
import sphinx_gallery

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('sphinxext'))
extensions = ['gen_rst', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary',
'sphinx.ext.pngmath', 'numpy_ext.numpydoc']
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',
'sphinx.ext.pngmath', 'numpydoc', "sphinx_gallery.gen_gallery"]

autosummary_generate = True

Expand Down
7 changes: 3 additions & 4 deletions doc/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ repository, to run the MDS::

A bunch of files, necessary for the optimization are written in the same
folder as the optimization, including the results of the optimization:
``mds.structure.pdb.txt`` and ``mds.structure.pdb``. The ``txt`` file
contains a the flatten array of coordinates :math:`(x_1, y_1, z_1, x_2, y_2, \dots)`
while the ``pdb`` contains a smoothed interpolation of the structure for
visualization purposes.
``MDS.structure`` and ``MDS.structure.pdb``. The ``txt`` file contains the
array of coordinates while the ``pdb`` contains a smoothed interpolation of
the structure for visualization purposes.

Running the algorithms on your own structure
============================================
Expand Down
8 changes: 4 additions & 4 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
================================================================================
=====================================================================
PASTIS: Poisson-based Algorithm for STable Inference of DNA Structure
================================================================================
=====================================================================

.. figure:: images/yeast_chr2.png
:scale: 50%
Expand Down Expand Up @@ -39,8 +39,8 @@ counts and the physical distances.
Download
========

Download Pastis 0.1 `here
<https://github.com/hiclib/pastis/archive/v0.1.0.tar.gz>`_
Download the latest version of pastis `here
<https://github.com/hiclib/pastis/releases>`_
or `fork the code on github <https://github.com/hiclib/pastis/>`_.

References
Expand Down
18 changes: 0 additions & 18 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,3 @@ This will install a python package ``pastis``, and four programs ``pastis-mds``,
``pastis-nmds``, ``pastis-pm1`` and ``pastis-pm2``. Calling any of those four
programs will display the help.


MDS_all/PM_all
==============

You also need to compile the two softwares in src/MDS and src/PM, and place
them in the directory of your choice.

- First install IPOPT: https://projects.coin-or.org/Ipopt IPOPT can be
installed anywhere. IPOPT depends on several external packages that are not
included directly with IPOPT. **IPOPT requires at least one linear solver
for sparse symmetric indefinite matrices**. You have the choice between HSL,
MUMPS or Pardiso. The makefile for MDS and PM are written to use with the
HSL subroutines: you will need to edit the makefiles if you choose to use
another linear solver.
- You have to edit the file Makefile in both the ``src/MDS`` and ``src/PM``,
and set the following 3 variables at the top: IPOPTPATH, IPOPTINCDIR,
IPOPTLIBDIR.
- Type make.
2 changes: 2 additions & 0 deletions examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.structure
*.png
2 changes: 1 addition & 1 deletion examples/pastis_example/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

all:

clean:
rm -f *.pdb *.pdb.txt *.pdb.temp.txt *.pdb.temp.pdb *.sh
Expand Down
4 changes: 2 additions & 2 deletions examples/plot_generate_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
===============================================================================
====================
Simulating Hi-C data
===============================================================================
====================
An example illustrating how to generate data, from a 3D structure.
"""
Expand Down

0 comments on commit 7d12328

Please sign in to comment.