R Package for phasing of single cell Strand-seq data
Collaborators: David Porubsky, Ashley D. Sanders
Under the development.
To install the development version from Github, follow the steps given below. The installation has only been tested on Ubuntu so far, if you need to install on Windows or Mac additional steps might be necessary (e.g. installation of Rtools from https://cran.r-project.org/bin/windows/Rtools/)
-
Install a recent version of R (>=3.3.0) from https://www.r-project.org/
-
Optional: For ease of use, install Rstudio from https://www.rstudio.com/
-
Open R and install all dependencies. Please ensure that you have writing permissions to install packages. Execute the following lines one by one:
if (!requireNamespace("BiocManager", quietly=TRUE)) install.packages("BiocManager") install("GenomicRanges") install("GenomicAlignments") install.packages("devtools") library(devtools)
-
To install StrandPhaseR package from github
install_github("daewoooo/StrandPhaseR")
install_github("daewoooo/StrandPhaseR", ref = "devel")
- Start Rstudio
- Load StrandPhaseR package: library('StrandPhaseR')
- Run StrandPhaseR: strandPhaseR(inputfolder = <input_folder>, outputfolder = <output_folder>, positions = <SNV_positions>, WCregions = <haplotypeInformative_WCregions>, chromosomes = ) or use config file as follows strandPhaseR(inputfolder = <input_folder>, outputfolder = <output_folder>, positions = <SNV_positions>, WCregions = <haplotypeInformative_WCregions>, configfile = <config_file>)
More information on how to use StrandPhaseR for phasing can be found here.
If you encounter errors of any kind, please report an issue here.
The developemtal (branch 'devel') version of StrandPhaseR includes recent unpublished work. To avoid any conflict of interest please consult usage for publication with the author.