Skip to content

EthanHolleman/rlooper

 
 

Repository files navigation

R-looper

Synopsis

R-loops are three-stranded DNA:RNA hybrid structures that ocurr frequently throughout the genomes of many living things as byproducts of transcription. Far from being an infrequent aberration, R-loops are prevalent, highly conserved among mammals, and have roles in both physiological and pathogenic processies. R-looper is an application designed to enable theoretical analysis of R-loops and R-loop forming regions. R-looper is compatible only with UNIX based architectures (Linux, OSX, etc), and must be compiled on the user's machine.

Installation

Prerequisites:

To install follow these steps:

  1. Open a terminal, and use the cd command to navigate into the directory where the software has been downloaded and/or unzipped.
  2. Build the software using make all
  3. If the build was successful (no error messages), a new directory should have been created within your rlooper directory called bin. The executable rlooper should be within that directory, and can now be moved anywhere on your computer and executed from the terminal with the arguments described below.

Example Usage

First, some general use cases. A fully detailed description of all the required and optional arguments can be found in the Arguments section below.

Suppose that you wanted to run R-looper on a FASTA formatted sequence file, "pfc53.fa", and output the results to a set of files using pfc53_output as the base name. Suppose also that you want to assume negative 10% superhelical density over the 1500nt (default superhelical domain size). You would use the following:

rlooper pfc53_full.fa pfc53_output --sigma -0.10

Now suppose you wanted to alter the cost of the DNA:RNA DNA:DNA junctions at each end of the R-loop from the default value (10 kcal/mol) to a higher value (20kcal/mol) and use a superhelical domain that is scaled to the length of the sequence to hold the superhelical density constant at -7%. Suppose you also wanted to compute the more costly "local average energy" signal over the sequence.

rlooper pfc53_full.fa pfc53_output --sigma -0.07 --a 20 --N auto --localaverageenergy

If pFC53 was loaded into a track hub the genome browser, or was instead a gene from a genome hosted on the genome browser, the base-pair involvement probability in the newly-created file pfc53_full_bpprob.wig, could be loaded into a custom track hub for visualization along side other genome browser tracks. The --localaverageenergy option will also populate an additional file pfc53_full_avgG.wig, which can be loaded in the same way.

Arguments

Required

The first argument is the path of the input file, which should be a fasta formatted DNA sequence in 5' to 3' orientation. See --reverse below for sequences provided in 3' to 5' orientation. The header should contain the name of the sequence, coordinates, and which is the sense (non-template) strand with respect to the R-loop forming nascent RNA transcript.

As an example: >HG19_AIRN_PFC53_REVERSE_dna range=PFC53FIXED:1-3908 5'pad=0 3'pad=0 strand=- repeatMasking=none This header specifies the gene name (HG19_AIRN_PFC53_REVERSE), the coordinates (chromosome PFC53FIXED, bases 1-3908), and which strand is the the non-template strand ('-'). If multiple sequences / genes are in the input file, the output will still be a single .wig track that contains data for all the input genes.

When downloading a sequence from the genome browser, make sure to download the sequence with no repeat masking. Multiple sequences / genes can be included in a single FASTA file.

The second argument is the name that will be used as the base for the output .bed files and genome browser tracks. Specify the name with no file extension, appropriate file extensions will be appended automatically.

Optional

Biophysical Parameters

--N followed by an integer specifies the size of the superhelical domain in base-pairs. This is the number of bases over which DNA is not in its relaxed state. Alternatively, --N auto can be used to set the size of the superhelical domain to the size of the provided sequence. The default if unspecified is 1500bp, (Kouzine and Levins, Myc C FUSE work)

--sigma is the superhelical density over a region of size N. The default value is -0.07, or 7% negative supercoiling, which is the physiological level of supercoiling in many Prokaryotes, and also a rough approximation of the amount of supercoiling being driven by transcription in Eukaryotes.

--a followed by an floating point value specifies the energetic disfavorability in kcal/mol associated with the two junctions at each end of the R-loop structure. This quantity is assumed to be length independent. The default value if unspecified is 10 kcal/mol (5 per junction), consistent with the experimentally measured value for other types of superhelically driven DNA structural transition. (Levins, Benham)

--minlength followed by an integer specifies the size of R-loops in base-pairs below which should be excluded from the biophysical ensemble. The default if unspecified is 2bp, which is the full ensemble.

--unconstrained is a parameter that removes the superhelicity term from the energy calculation, leaving only the base-pairing energetics and the nucleation free energy (which is subtracted from the ground-state). This is useful to better represent substrate molecules that are topologically unconstrainted, such as nicked circular or linear pieces of DNA.

Sequence Handling Overrides

--reverse reverses the transcribed orientation of the provided input sequence. Required for sequence provided in the 3' to 5' orientation.

--complement complements the transcribed orientation of the provided input sequence.

--invert transforms the provided input sequence to its reverse complement. Useful to analyze the non-template strand of the provided sequence.

--homopolymer followed by a floating point value overrides the base-pairing energetics with the provided value in kcal/mol. In this case, the content of the input sequence does not matter, as all dinucleotide pairs will be treated as having the same provided energy.

--circular treats the provided of sequence as circular by adding an additional set of r-loop structures to the ensemble that would span the boundry between the beginning and end of the sequence if the sequence is circular. Useful in a case where a small circular molecule is being transcribed and a region of energetic favorability spans the end of the provided sequence.

Analysis Options

--bedfile indicates to the software that peaks corresponding with regions of high r-loop favorability should be called and outputted to a .bed formatted file.

--sensitivity is used only when --bedfile is speficied and specifies the sensitivity of the threshold-based peak caller. 10 seems to be a good default value when calling peaks.

--residuals computes and outputs residual quantities to stdout. These quantities describe the expected amount of remaining superhlicity in a molecule consisting of the provided sequence, devided between twist and writhe. Can be easily used to determine how much relaxation would be expected on this molecule if single R-loops were allowed to form.

--top followed by some integer n, indicates that information about the top n most favorable single R-loop structures should be outputted to stdout. Useful to get an overarching sense of how the most favorable structures over the sequence are distributed in position and energy.

--dump dumps the full statistical ensemble (every possible single R-loop structure) to a file for analysis. It provides the start location, stop location, energy, and probability of each structure relative to the coordinates of the input sequence, and the structures are sorted by decreasing probability. The Energy of the B-duplex (but not probability) which serves as the ground-state for the ensemble is provided as the first entry, with start and stop location 0. The probability of the B-duplex can easily be approximated by adding up the probabilities of all the other structures.

--localaverageenergy adds an aditional signal to the output as a .wig file. This signal is a measure of local average energy, and can supplement the base pair involvement probability. Disabled by default because it is a computationally expensive signal to compute.

Graphing Script

Usage: python graph_rloops.py input_filename_bpprobs.wig input_filename_avgG.wig output_filename

It will create a .pdf graph that can be opened with the name "output_filename.pdf" displaying both probability and local average energy tracks.

Contributors

This software is developed and maintained by Robert Stolz (rstolzATucdavis.edu).

Development of this software was funded in part by NIH grant GM120607 and NSF CAREER grant DMS1057284.

License

R-looper
Copyright (C) 2018 Robert Stolz

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

The license can be found at https://www.gnu.org/licenses/gpl-3.0.en.html. 
By downloading or using this software, you agree to the terms and conditions of the license. 

About

R-loop equilibrium energetic modeling and prediction software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.5%
  • Other 0.5%