Skip to content

Scripts and files to perform routine analyses of alternative splicing, based on vast-tools output

License

Notifications You must be signed in to change notification settings

UBrau/ProcessVast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProcessVast

Scripts and files to perform routine analyses of alternative splicing, based on vast-tools output

Summary

This is a tool to make sense of vast-tools output by providing several standard analyses, including similarily of single samples, numbers of changing events between specified contrasts, correlation between multiple contrasts, and files of genes containing changing AS events for GO analysis, including specific backgrounds.

Dependencies

R packages optparse and gplots. An attempt is made to install them.

Usage

ProcessVast.R -h

Input

Required

Necessary to run are, a completed vast-tools analysis, including diff for every contrast that will be compared.

  • INCLUSION... table (primary vast-tools output)
  • vast-tools diff results tables. It is recommended to run diff with default statistical options except increase --size to 2000.
  • Sample table: CSV file with (at least) columns Sample and Type. Sample must be identical to what is specified in the INCLUSION... table; all samples that are considered replicates have the same Type. See examples.
  • Contrast table: CSV file with (at least) columns Experimental, Control, and File. The former two contain entries from the sample table's Type column that specify which sample types are compared (by subtraction of PSI/PIR). File species the path and file name of the vast-tools diff output table for each contrast. See examples.

Optional

  • Specific event table: Tab-deliminted file containing information about known regulation of events. If present, a bar graph will be produced showing the overlap of the changing events in each contrast with known differential events. E.g. neural-differential splicing would be encoded as the entries 'neural-LOW' or 'neural-HIGH' while non-differential events are NA. Columns are EVENT (matching vast-tools events) and any number of columns with descritive names (e.g., 'neural', 'ASD') and events containing xxx-HIGH/xxx-LOW. The provided files should be considered examples and may not be accurate or comprehensive.
  • Lookup table for EVENT to GeneID: If files for GO analysis should be produced, a tab-delimited file containing columns EVENT and_EnsemblGeneID_ is required. Files for Mm2, Hsa and Hs2 are available in the 'EVENTtoGeneID' folder.

Functionality

ProcessVast.R will first perform filtering of raw PSI/PIR based on quality columns. Averages for each sample type are taken from diff outputs and averaged if a sample occurs in multiple ones. If more than half of the replicates in a type are NA for an event after filtering, the mean is set to NA.

For Alt5 and Alt3 events that represent alternative variants, a single score is calculated analogously to PSI, where -100 indicates a complete shift from the most distal to the most proximal splice set relative to the exon, and 100 the reverse.

Differential events are those that have have the specified absolute dPSI/dPIR (5, 10, or 15) and a significant change (>0) according tovast-tools diff

Output

  • Filtered INCLUSION... table (INCLUSION_LEVELS_FULL-*_clean.tab.gz)

  • Changing events tables (AS.DiffEvents_dPSI.*.tab.gz): Contain differential events from all contrasts.

  • Sample type means (ASmeans.tab.gz)

  • R archive of relevant tables (AStables.Robj), including event info, means, dpsi, and diff tables at 5/10/15 cutoffs. Load into R using load()

  • Tarball with GO analysis input files (GO.tar.gz; optional) and event type-specific backgrounds, unorderdered, at dPSI/dPIR cutoff of 10.

  • Bar graphs of changing events per type (ChangingEvents.dPSI.*_bars.pdf)

  • Multi-dimensional scaling of single samples (MDS_samplePSI.pdf) to assess replicate similarity

  • Clustered correlation heatmap of single samples (PSI.cluster.corr.single.pdf) to assess replicate similarity

  • Clustered correlation heatmap of dPSI/dPIR (dPSI.cluster.corr.pdf)

  • Scatterplots of dPSI (dPSI.scatter.pdf) for up to nine contrasts against one another (or more, if --scatterForce is specified)

  • Clustered heatmap of dPSI/dPIR (AS.cluster.dPSI.pdf) for all events. The legend for event types is provided in the file AS.cluster.legend.dPSI.pdf.

  • Clustered heatmap of dPSI/dPIR per event type (AS.cluster_types_dPSI10.pdf)

  • Bar graphs of overlap of changes with known regulation (SpecificEvents.dPSI.10.pdf; optional)

  • Log file (vastResultsProcessing.log)

Author

Please let me know if you have questions or encounter errors by emailing or raising an issue.

Ulrich Braunschweig, University of Toronto

email

Reference

If using in published work, please cite the DOI of the release. The latest one is: DOI

About

Scripts and files to perform routine analyses of alternative splicing, based on vast-tools output

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages