Installation
0. Installfacets-suite v2.0.4
facets-suite v2.0.4
facets-review v2.1.0
requires facets-suite v2.0.4
or higher (https://github.com/mskcc/facets-suite/releases).
1. Install XQuartz
via https://www.xquartz.org/, or, if using Homebrew
, install Cairo
with brew install cairo
2. Install facets-preview
facets-preview
3. Use sshfs
to mount juno
sshfs
to mount juno
Rationale for this: facets-preview
loads facets runs from sample level directories with facets outputs. Often, these runs are kept on network storage such as /juno
. To seamlessly access the runs on local machine without tinkering the paths, it is convenient to remotely mount the file system and simply access the facets run with its full path. For example, /juno/work/ccs/bandlamc/facets_runs/P-0012345-T01-IM6_P-0012345-N01-IM6/
can be accessed from local machine simply mounting /juno
locally. Similarly, if the facets re-fit jobs are to be run on /juno
, this mounting step is required.
First, install "FUSE for OS X" from http://osxfuse.github.io. If using Homebrew
, execute the following to install FUSE:
Next, install "SSHFS" from https://github.com/osxfuse/osxfuse/wiki/SSHFS
Finally, setup mount with the following instructions:
4. Configuration file
Example .json config file:
repo
- facets repositorymanifest_file
: A tab-delimited file with only three required columns that are necessary forfacets-preview
to load the facets runs. See input requirements for more detail."sample_id" column. eg: P-0012345-T01-IM6_P-0012345-N01-IM6
"sample_path" column. eg: /juno/work/ccs/bandlamc/facets_runs/P-0012345-T01-IM6_P-0012345-N01-IM6/
"tumor_id" column. eg: P-0012345-T01-IM6
tumor_id_format
: (optional) a regex to ensure tumor IDs are entered in proper format.counts_file_format
: (required) format of the counts file name.
watcher_dir
: directory to which facets-preview writes out refit commands. This directory is monitored by a daemon that picks up the command and executes it. For more information, see section: setup refit watcher below.verify_sshfs_mount
: (optional) Name of the file-system mount that facets-preview makes sure is properly mounted. Eg: "juno". If empty, then this verification is not performed.r_script_path
: path toRscript
binary.facets_lib
: these versions are available during refitfacets_suite_lib
: use this version offacets-suite
for preview. NOTE: This path should contain therun-facets-wrapper.sh
script.facets_qc_script
: specify the precise path to the version of facets QC script to be run withfacets-preview.
Note that this script needs to be separately downloaded from thefacets-preview
github repository.
5. Setup 'refit watcher'
Refit watcher is simply a script that launches a daemon that monitors a folder for new job files (with the file name facets_refit_cmd_.*sh
created in the refit_jobs
directory. Below is the directory structure for the "refit watcher". Once this structure is setup, simply modify the WATCHER_DIR variable in the refit_watcher.sh
script and run it. This works with inotify version 3.14. Binary (for juno
) is on facets-preview github repo.
Last updated
Was this helpful?