lassosum_standalone.md

lassosum (standalone version for Linux)

Description

This page is for the standalone version of lassosum. For full details of lassosum as an R package, please refer to this page.

Installation

Follow the instruction here to install lassosum on R. Then add the lassosum path to the $PATH variable. The lassosum path can be obtained by typing the following in R:

> system.file(package="lassosum")

For example, on my computer, I would type

$ PATH=/home/tshmak/WORK/Rpackages2/nonMRAN/lassosum/:$PATH

in my Linux shell.

A quick example

The following is a quick example to run lassosum from a Linux shell, assuming lassosum has been included in $PATH.

$ lassosum --data summarystats.txt --chr Chr --pos Position \
        --A1 A1 --A2 A2 --pval P_val --n 50000 \
        --OR OR_A1 --test.bfile testsample \
        --LDblocks EUR.hg19 --pheno testsample.pheno.txt \
        --nthreads 2

This will generate the following files:

The best PGS calculated by validation and split-validation are given in lassosum.validate.results.txt and lassosum.validate.results.txt. The .rds files are for further processing. For example, if you want to apply the best validated PGS to a new dataset (with bfile=refsample), type:

$ lassosum --lassosum.pipeline lassosum.lassosum.pipeline.rds \
        --validate.rds lassosum.validate.rds \
        --applyto refsample

This will create a file called:

containing the best PGS in the new data.

To actually try out the above example, copy the relevant files from the directory given by

> system.file("data", package="lassosum")

Options

Almost all of the options available to the R version can be passed to lassosum standalone by prepending the option with --. For example, type

$ lassosum ... --ref.bfile refsample --lambda 0.001, 0.002 --keep.test keep.txt ... 

to include refsample as the reference bfile, use 0.001 and 0.002 as values for lambda, and use only those samples specified in the keep.txt file as the testing dataset.

However, there are a number of options which are specific to the standalone version, given below:

Reference

Berisa, T. & Pickrell, J. K. (2015) Approximately independent linkage disequilibrium blocks in human populations. Bioinformatics 32, 283–285

Support

If there are any questions or problems with running or installing lassosum, please do email me at timmak@yahoo.com.



tshmak/lassosum documentation built on Sept. 24, 2020, 9:41 a.m.