Learn R Programming

isomiRs (version 1.0.3)

IsomirDataSeqFromFiles: IsomirDataSeqFromFiles loads miRNA annotation from seqbuster tool

Description

This function parses output of seqbuster tool to allow isomiRs/miRNAs analysis of samples in different groups such as characterization, differential expression and clustering. It creates an IsomirDataSeq object.

Usage

IsomirDataSeqFromFiles(files, design, header = FALSE, skip = 1, quiet = TRUE, ...)

Arguments

files
files with the output of seqbuster tool
design
data frame containing groups for each sample
header
boolean to indicate files contain headers
skip
skip first line when reading files
quiet
boolean indicating to print messages while reading files. Default FALSE.
...
arguments provided to SummarizedExperiment including rowData.

Value

IsomirDataSeq class object.

Details

This function parses the output of http://seqcluster.readthedocs.org/mirna_annotation.html for each sample to create a count matrix for isomiRs, miRNAs or isomiRs grouped in types (i.e all sequences with variations at 5' but ignoring any other type). It creates IsomirDataSeq object (see link to example usage of this class) to allow visualization, queries, differential expression analysis and clustering. To create the IsomirDataSeq, it parses the isomiRs files, and generates an initial matrix having all isomiRs detected among samples. As well, it creates a summary for each isomiR type (trimming, addition and substitution) to visualize general isomiRs distribution.

Examples

Run this code
path <- system.file("extra", package="isomiRs")
fn_list <- list.files(path, full.names = TRUE)
de <- data.frame(row.names=c("f1" , "f2"), condition = c("newborn", "newborn"))
ids <- IsomirDataSeqFromFiles(fn_list, design=de)

head(counts(ids))

Run the code above in your browser using DataLab