R包 viRome

viRome包

功能介绍:

We have developed code in R to analyse short-read next-generation sequencing data from virus-infection studies where the siRNA or piRNA pathways have been implicated.  The package provides a range of functions to help scientists visualise the results of such experiments.

结果展示:


viRome包 结果展示

​​​​

官方网址:

http://www.arkgenomics.org/bioinformatics/virome

运行手册:

1、安装

# get the necessary Bioconductor packages

source("http://www.bioconductor.org/biocLite.R")

biocLite("Rsamtools")

# install optional Bioconductor packages

# biocLite("seqLogo")

# biocLite("motifStack")

# install the necessary R packages

install.packages(c("plyr","gsubfn","seqinr","reshape2"))

# install optional R packages

# install.packages("ggplot2")

2、使用

# load the library

# find example data

library(viRome)

infile <- system.file("data/SRR389184_vs_SINV_sorted.bam", package="viRome")

# minimal commands

bam    <- read.bam(infile, chr="SINV") # requires the full path to a bam file, and the name of the reference the data are aligned to

bamc   <- clip.bam(bam)                # requires only the output of read.bam()

bpl    <- barplot.bam(bamc)            # requires only the output of clip.bam()

ssp    <- size.strand.bias.plot(bpl)   # requires only the output of barplot.bam()

dm     <- summarise.by.length(bamc)    # requires only the output of clip.bam()

sph    <- size.position.heatmap(dm)    # requires only the output of summarise.by.length()

sbp    <- stacked.barplot(dm)          # requires only the output of summarise.by.length()

sir    <- position.barplot(bamc) 

# requires only the output of clip.bam(), though one should alter minlen, maxlen and reflen

sr     <- sequence.report(bamc)        # requires only the output of clip.bam()

pwm    <- make.pwm(bamc)               # requires only the output of clip.bam()

pmh    <- pwm.heatmap(pwm)             # requires only the output of make.pwm()

rdp    <- read.dist.plot(sr)           # requires only the output of sequence.report()

3、注意事项

读入数据的时候,system.file输入的是包内部的路径。

1、可以不用system.file方法,自己写路径

2、或者用system.file()找到路径,把自己的数据拷贝进去

infile <- system.file("data/SRR389184_vs_SINV_sorted.bam", package="viRome")

bam    <- read.bam(infile, chr="SINV") 

# requires the full path to a bam file, and the name of the reference the data are aligned to​

3、需要为bam文件排序建索引,然后全都拷贝到路径里

samtools view -bS result.sam -o result.bam 

#sam转bam文件

samtools sort result.bam -o result.sorted

#排序

samtools index result.sorted

#建立索引​


具体详情:

参考官网优先:

http://www.arkgenomics.org/bioinformatics/virome

在R中用 ?方法名 查看具体用法

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值