Skip to content

Commit

Permalink
Add TL;DR to amplicon tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfallan committed Aug 28, 2024
1 parent 30e3a1a commit 8a6df01
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/userdocs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ How to Research RNA Structures with SEISMIC-RNA
########################################################################

.. toctree::
:maxdepth: 2
:maxdepth: 1

about/index
install
Expand Down
33 changes: 32 additions & 1 deletion src/userdocs/tutorials/amplicon/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,35 @@ Tutorial 1: Amplicon prepared with RT-PCR
This tutorial demonstrates how to analyze a dataset that was prepared using
RT-PCR (with forward and reverse primers) of one specific section of an RNA.


TL;DR
--------------------------------------------------------------------------------

#. Download https://raw.githubusercontent.com/rouskinlab/seismic-rna/main/src/userdocs/tutorials/amplicon/data.tar

#. Un-tar and enter the data directory::

tar xvf data.tar
cd data

#. Process the no-DMS control::

seismic -v wf -x fq/nodms --keep-gu --mask-polya 0 --min-mut-gap 0 hiv-rre.fa

#. Process the DMS-treated replicates separately::

seismic -v wf -x fq/dms1 -x fq/dms2 --mask-pos rre 176 -p rre GGAGCTTTGTTCCTTGGGTTCTTGG GGAGCTGTTGATCCTTTAGGTATCTTTC hiv-rre.fa
seismic graph scatter out/dms[12]/table/rre/26-204/mask-per-pos.csv

#. Pool the replicates and process them together::

seismic pool -P dms-pool out/dms[12]
seismic -v wf --mask-pos rre 176 -p rre GGAGCTTTGTTCCTTGGGTTCTTGG GGAGCTGTTGATCCTTTAGGTATCTTTC --cluster --fold -q 0.95 hiv-rre.fa out/dms-pool/relate


Scientific premise
--------------------------------------------------------------------------------

The RNA in this example is a segment of the the human immunodeficiency virus 1
(HIV-1) genome called the Rev response element (RRE), which binds to the protein
Rev that mediates nuclear export (`Sherpa et al.`_).
Expand Down Expand Up @@ -332,7 +361,7 @@ Now that the replicates are pooled, the overall coverage will be higher, and so
clustering is more likely to detect true alternative structures.
Process the pooled sample, including with clustering, by running this command::

seismic -v wf --mask-pos rre 176 -p rre GGAGCTTTGTTCCTTGGGTTCTTGG GGAGCTGTTGATCCTTTAGGTATCTTTC --cluster --fold hiv-rre.fa out/dms-pool/relate
seismic -v wf --mask-pos rre 176 -p rre GGAGCTTTGTTCCTTGGGTTCTTGG GGAGCTGTTGATCCTTTAGGTATCTTTC --cluster --fold -q 0.95 hiv-rre.fa out/dms-pool/relate

This is what each of the arguments does:

Expand All @@ -346,6 +375,8 @@ This is what each of the arguments does:
primers ``GGAGCTTTGTTCCTTGGGTTCTTGG`` and ``GGAGCTGTTGATCCTTTAGGTATCTTTC``.
- ``--cluster`` means enable clustering to find alternative structures.
- ``--fold`` means enable secondary structure prediction.
- ``-q 0.95`` sets the 95th percentile of the mutation rates to 1 and scales the
rest of the data accordingly (required if using ``--fold``).
- ``hiv-rre.fa`` means use the sequence in this FASTA file as the reference
(i.e. mutation-free) sequence for the RNA.
- ``out/dms-pool/relate`` means search inside ``out/dms-pool/relate`` for data
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Run all unit tests for SEISMIC-RNA.
# If all tests succeed, return 0; otherwise, return 1.

set -euo pipefail
set -eu -o pipefail

# Run the tests and capture the results.
RESULTS=test-results.txt
Expand Down

0 comments on commit 8a6df01

Please sign in to comment.