Skip to content

Commit

Permalink
+docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Sinha committed Apr 21, 2016
1 parent 2634045 commit 7f2f585
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 3 deletions.
41 changes: 38 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,49 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to metaRNA's documentation!
===================================
metaRNA, find target sites for the miRNAs
=========================================

Contents:
metaRNA finds potential target sites for the microRNAs in genomic
sequences.

* Written in Python
* Built on miRanda_.

It is built on miRanda, an algorithm for detection and
ranking of the targets of microRNA.

.. _miRanda: http://www.microrna.org/microrna/getDownloads.do

Quickstart
----------

.. code:: python
from metarna.target_scan import scan, free_energy
gene_sequence = (
"ACAAGATGCCATTGTCCCCCGGCCTCCTGCTGCTGCTGCTCTCCGGGGCCACGGCCACCGCTGCCCTGCC"
"CCTGGAGGGTGGCCCCACCGGCCGAGACAGCGAGCATATGCAGGAAGCGGCAGGAATAAGGAAAAGCAGC"
"CTCCTGACTTTCCTCGCTTGGTGGTTTGAGTGGACCTCCCAGGCCAGTGCCGGGCCCCTCATAGGAGAGG"
)
mirna_sequence = "UGGCGAUUUUGGAACUCAAUGGCA"
# Get free Energy value:
delta_g = free_energy(gene_sequence, mirna_sequence)
# Get full targets information:
targets = scan(gene_sequence, mirna_sequence)
Contents

.. toctree::
:maxdepth: 2

installation
getting-started


Indices and tables
Expand Down
30 changes: 30 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. _installation:

Installing
==========

metaRNA can be installed very easily using `pip <http://www.pip-installer.org/en/latest/index.html>`_.

.. code-block:: bash
pip install metarna
Using git
---------

If you want to run the very latest, feel free to pull down the repo from github
and install by hand.

.. code-block:: bash
git clone https://github.com/PrashntS/metaRNA.git
cd metaRNA
python setup.py install
You can run the tests using the test-runner::

python setup.py test

Browse the source code online at https://github.com/PrashntS/metaRNA

0 comments on commit 7f2f585

Please sign in to comment.