srnapredata {sRNAGenetic}R Documentation

Generate the data of sRNA length distribution

Description

Generally, the length interval of sRNA is 21-24. The function of "srnapredata" can provide the input data for the next drawing of sRNA length distribution among different species.

Usage

srnapredata(srnaseq_dataframe, group)

Arguments

srnaseq_dataframe

A dataframe. The first column must be the sRNA sequence.

group

A character. You an select a representative group name for next drawing.

Value

A dataframe. The output results are consist of three columns, the first column is the length of sRNA, the second column id the frequency, and the third column is the group name.

Examples

##Only 400 sRNAs are selected as test data due to the large data of sRNA.
##Recommended to use the "data.table" package for reading data quickly.
##F1
F1_sRNA <- srnapredata(srnaseq_dataframe = F1_sRNA_seq, group = "F1")
##P1
P1_sRNA <- srnapredata(srnaseq_dataframe = P1_sRNA_seq, group = "P1")
##P2
P2_sRNA <- srnapredata(srnaseq_dataframe = P2_sRNA_seq, group = "P2")

[Package sRNAGenetic version 0.1.0 Index]