transtruct: Transcript Stucture

View source: R/transtruct.R

transtructR Documentation

Transcript Stucture

Description

transtruct uses alternative splicing information to find structures of transcripts generated in two conditions (usually control and treated). It can generate stuctures corresponding to multiple AS events in a gene at a time. These can be passed as a list or vector to ep.event or ip.event parameter. transtruct primarily requires RMM and iMM of the gene to find seed exons and extend them to form continuous paths of exons connected via flanking junctions.

Usage

transtruct(
  ep.event = NULL,
  ip.event = NULL,
  Gcount = Gcount,
  RMM,
  iMM = NULL,
  designM,
  annotation,
  Groups,
  keep.intron = FALSE
)

Arguments

ep.event

list/vector of Cassette Exon event(s), for which Transcript Structure is required. (default = NULL)

ip.event

list/vector of Intron Retention event(s), for which Transcript Structure is required. (default = NULL)

Gcount

Gcount matrix of given geneID. Gcount matrix generated via countMatrixGenes/ppAuto/ppFASE as Gcount.Rdata. It contains gene-wise read count summarization of meta-features times samples in the study.

RMM

RMM of given geneID. readMembershipMatrix contains association of each exon with meta-features (exons, introns, skipping junctions and flanking junctions) of that gene. It is generated by readMembershipMatrix function as RMM.Rdata. It is required for both Cassette Exon as well as Intron Retention event.

iMM

iMM of given geneID. intronMembershipMatrix contains association of each intron with meta-features (introns, exons and skipping junctions) of that gene. It is generated by intronMembershipMatrix function as iMM.Rdata. It is required only when Transcript Structure for Intron Retention event is required.

designM

design matrix required by edgeR.
Example: If there are four samples, two corresponding each to control and treated condition, design matrix should be prepared as:
designM <- matrix(c(rep(1,2), rep(0,4), rep(1,2)), byrow = T, ncol=2, dimnames=list(c('Sample1', 'Sample2', 'Sample3', 'Sample4'), c('Normal', 'Treated')))

annotation

annotation matrix of given geneID. annotation is generated by readMembershipMatrix/ppFASE function as Annotation.Rdata. It contains gene-wise annotation of each meta-feature (exons, introns and junctions).

keep.intron

if a cassette exon event is selected by ExonPointer due to flanking introns, instead of or along with flanking junction(s), retain intron in the transcript structure and propagate structure using that intron. logical. (default = FALSE)

geneID

geneID of the Cassette Exon and/or Intron Retention event(s). Only one geneID can be passed.

Value

list of three matrices:

  1. numeric: transtruct.condition: It contains transcript structure(s) of given gene for corresponding Cassette Exon and/or Intron Retention event(s) (as specified by rownames), in the treated samples.

  2. numeric: transtruct.normal: It contains transcript structure(s) of given gene for corresponding Cassette Exon and/or Intron Retention event(s) (as specified by rownames), in the normal/untreated samples.

  3. numeric: expression: it contains expression values of meta-features in the given gene


harshsharma-cb/FASE documentation built on Aug. 6, 2023, 1:37 a.m.