Code Monkey home page Code Monkey logo

rbs2ndstructure's Introduction

Instructions of the usage of rBS2ndStructure

This package provides thermal stable RNA 2ndary structures predicted on full length transcripts mm10 and hg19. The predicted structures are used to filter the bisulfite sequening sites that have potentially incomplete bisulfite conversion on them.

  • First, install the package in R
devtools::install_github("ZW-xjtlu/rBS2ndStructure")
library(rBS2ndStructure)
  • Then, you could use the following data containing the ranges of the structures provided by the package. Use ? to check their documentations.
library(GenomicRanges)

?rBS2ndStructure::Struc_hg19

?rBS2ndStructure::Struc_mm10
  • You could directly use the provided GRanges object to filter your sites.
rBS_gr = GRanges(seqnames = rBS_df$`#SeqID`, strand = rBS_df$refStrand, ranges = IRanges(start = rBS_df$refPos, width = 1))
rBS_gr_filtered <- rBS_gr[!rBS_gr %over% Struc_hg19]
  • Alternatively, you could try to filter the sites overlapped with RNA secondary structures with the function rBS_2ndStructure_Filter, the function also helps you mask all the sites on introns and intergenic sequences.
rBS_gr = GRanges(seqnames = rBS_df$`#SeqID`, strand = rBS_df$refStrand, ranges = IRanges(start = rBS_df$refPos, width = 1))
rBS_gr$mcols = p.adjust(rBS_df$`p-value_mState`,method = "BH") < .05
rBS_gr_filtered <- rBS_2ndStructure_Filter(rBS_gr,"hg19")
  • Finally, you could try to predict RNA 2ndary structures of your own transcriptome with RNAfold of viennaRNA package installed on your system.
#Extract transcript sequences in fasta files from BSgenome and txdb

library(BSgenome.Mmusculus.UCSC.mm10)
library(TxDb.Mmusculus.UCSC.mm10.knownGene)
txdb <- TxDb.Mmusculus.UCSC.mm10.knownGene
tx_seq_extraction(MMusculus,txdb,getwd()) 

#Run RNAfold in multiple computational clusters 

RNAfold(1:30,"Small","Fsm") 
RNAfold(1:30,"Middle","Fmd") 
RNAfold(1:30,"Large","Flg") 

# Assemble the predicted transcripts

rfold_assembly_tx(txdb,RfdNames = c("Fsm","Fmd","Flg"))
  • Notice that you could run RNAfold on command line by yourself, the function RNAfold only works if you implement qsub command on your computer system.

rbs2ndstructure's People

Contributors

zw-xjtlu 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.