rBS_2ndStructure_Filter: RNA secondary structures filtering

Description Usage Arguments Details Value See Also Examples

View source: R/rBS_2ndStructure_Filter.R

Description

rBS_2ndStructure is used to filter thermal stable RNA secondary structures from RNA bisulfite sequencing data.

Usage

1
rBS_2ndStructure_Filter(rBS_gr, Genome, RNA_struc_dir = NULL, TXDB = NULL)

Arguments

rBS_gr

A GRanges object containing the methylation site information of RNA bisulfite sequencing.

If the GRanges has a logical vector in its first column of the meta data column indicating the methylation states, a report will be produced based on the association between the methylation and the RNA secondary structure.

Genome

A character string which indicates the genome assembly used in rBS_gr, it can be either "mm10" or "hg19".

RNA_struc_dir

Optinal; the directory of the self generated rds file containing the RNA secondary structures.

TXDB

Optinal; the txdb object provided by the users.

Details

The RNA secondary structures are predicted by RNAfold in ViennaRNA package. The structures are MEA secondary structures predicted under gammar = 0.1 and temperature = 70 degree.

The maximum pairing distance is set to be 150 nt. At the current version of the function, only structures on exons and mitochondria chromosome are included. Therefore, the sites not overlapped with exons or chrM will also be filtered.

Value

A filtered GRanges object that has no overlapping with the predicted RNA structures. The output ranges are also filtered by the overlapping with exons or the mitochondria chromosome.

See Also

To directly use the GRangesList of RNA secondary structures: Struc_mm10, Struc_hg19.

To generate RNA secondary structures with self specified genome sequence and transcript annotations: tx_seq_extraction, RNAfold, and rfold_assembly_tx.

Examples

1
2
3
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")

ZhenWei10/rBS2ndStructure documentation built on Dec. 26, 2019, 3:37 a.m.