Giter VIP home page Giter VIP logo

misipi.rna's Introduction

MiSiPi R Package Logo

For more details about the package or to cite, please visit https://www.biorxiv.org/content/10.1101/2023.05.07.539760v1.

MiSiPi.RNA

Characterization of small RNA pathways

Installation

In order to install MiSiPi.RNA, you must first install devtools and BiocManager:

install.packages("devtools")

if (!require("BiocManager", quietly = TRUE))
  install.packages("BiocManager")
  
devtools::install_github("stupornova33/MiSiPi.RNA")

library(MiSiPi.RNA)

RNAfold

In order for this package to work, you must also have RNAfold from the ViennaRNA package installed. You will need the path to the RNAfold executable. See https://www.tbi.univie.ac.at/RNA/ for installation.

Input

The input for any of MiSiPi.RNA's main functions is an object created by the set_vars() function. Running set_vars will always be the first step in using this package. Below is a description of each of the parameters that will be passed to set_vars(). These should be changed based on your needs.

  • roi - A bed file listing your regions of interest
  • bam_file - A BAM file of aligned reads. Index file must also be present
  • genome - A genome fasta file. Chromosome names must match the bed file
  • min_read_count - This filters out loci with low mapping reads. Defaults to 1
  • plot_output - (TRUE or FALSE) If TRUE, MiSiPi.RNA will output plots as pdfs
  • path_to_RNAfold - Full path to RNAfold executable
  • pi_pal - Palette option for the generated piRNA heatmap (see below)
  • si_pal - Palette option for the generated siRNA heatmap (see below)
  • annotate_region - (TRUE or FALSE) Plots annotated gene features below the hairpin arc plot which is useful for characterizing cisNAT loci
  • weight_reads - Determines if read counts will be weighted. ("Top", "locus_norm", or "None")
  • gtf_file - Full path to a 9 column GTF file. Required only if annotate_region is TRUE
  • write_fastas - (TRUE or FALSE) If TRUE, MiSiPi.RNA will write read pairs from functions to a file. Default is FALSE
  • out_type - ("pdf" or "png") Specifies the output type. Default is "pdf"
vars <- set_vars(roi = "path/to/bed",
                bam_file = "path/to/bam", 
                genome = "path/to/genome",
                min_read_count = 1,
                plot_output = TRUE, 
                path_to_RNAfold = "path/to/ViennaRNA/RNAfold.exe",
                pi_pal = "BlYel",
                si_pal = "RdYlBl",
                annotate_region = TRUE,
                weight_reads = "None",
                gtf_file = "path/to/gtf",
                write_fastas = FALSE,
                out_type = "pdf")

Palettes:

Palette options are:

  • "RdYlBl"
  • "BlYel"
  • "yelOrRed"
  • "MagYel"
  • "Greens"

To run all lines of bed file:

miRNA_function(vars)


piRNA_function(vars)


siRNA_function(vars)

# To run the above functions all at once
misipi_rna(vars)

misipi.rna's People

Contributors

phioria avatar stupornova33 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.