Sign inSign up

lincspipelines/pccse

By lincspipelines

•Updated over 8 years ago

A container to validate PCCSE pipeline for LINCS project

Image
0

155

lincspipelines/pccse repository overview

⁠pccse

⁠pccse: Docker container for running PCCSE(P100 and GCP) processing pipelines in RStudio

This docker image is developed to make a countainer for the processing of P100 and GCP data and generate level 4 of data from level 2. The docker is tested on August-31-2017 on the level 2 of P100 and GCP data from panorama using multiple operating systems (Ubuntu 14.04 and 16.04, macOS 10.11.6 and Windows 7 Enterprise).


⁠Installation of Docker

Ubuntu: follow the instructions⁠ to get Docker CE for Ubuntu.

Mac: follow the instructions⁠ to install the Stable verion of Docker CE⁠ on Mac.

Windows: follow the instructions⁠ to install Docker Tookbox⁠ on Windows.

⁠For list of useful docker commands please see:

https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes⁠


⁠Download the docker container

To obtain the docker image and run the container,

[sudo] docker pull ucbd2k/pccse:v3

Linux users may need to use sudo to run Docker.

First make sure that port 8787 is free to use for the rstudio, (Typically rstudio dockers run on this port, if this port is free ignore the rest of this section). You can stop and kill any othe docker containers on this port by

[sudo] docker stop <container ID> && docker rm <container ID>

To know the container ID run this command:

docker ps -a

⁠Run the Docker

To run the container execute the following command:

[sudo] docker run -d -p <an available port>:8787 ucbd2k/pccse:v3

or

[sudo] docker run -d -p 8787:8787 ucbd2k/pccse:v3

To start an RStudio session, open a browser and type in the address bar http://localhost:8787 on Mac or Linux systems when 8787 port is used. Use rstudio for the user name and password.

Host URL on Ubuntu and Mac is localhost, if accessed locally. On Windows, the IP is shown when Docker is launched by double-clicking the Docker Quickstart Terminal icon on desktop, or it can be obtained from the output of docker-machine ls in the interactive shell window.


⁠Execute the processing pipeline

After entering the rstudio environment, on the "Files" tab in the lower right panel in the RStudio, go to "pipeline+input".

In this folder you can see five files which are the processing pipeline or "pccse_processing.R" a wrapper over the processing pipeline that runs two examples for the P100 and GCP level 2 data, "running_script.R", a bash file that makes necessary changes in the input files, "start.bash", and two input files to execute the processing pipeline.

To run the examples open "running_script.R" and run the file.

setwd("./pipeline+input/")
system("./start.bash")
source("pccse_processing.R")

GCPprocessGCTMaster("LINCS_GCP_Plate44_annotated_minimized_2017-04-18_16-53-17.gct",log2=FALSE)
P100processGCTMaster("LINCS_P100_DIA_Plate53_annotated_minimized_2017-08-30_09-40-00.gct",log2=FALSE)

It generates two backup files for the input files and two processed or level 4 data from the examples in the same folder.


⁠Please be advised

The start.bash should be run and run only once for each input file, so if you want to get the processed file for the same input, please remove the input file and the two backup files that are already generated and upload the input file again and follow the steps.

In the same fashion you can download level 2 data from Panorama:https://panoramaweb.org/labkey/project/LINCS/P100/begin.view⁠ and put it in the pipeline+input, it is better to delete unnecessary input files in the folder, then change the corresponding lines in the "running_script.R" to:

P100processGCTMaster("./pipeline+input/<input P100 file>",log2=FALSE)

For P100 data and

GCPprocessGCTMaster("./pipeline+input/<input GCP file>",log2=FALSE)

for GCP data.

Tag summary

Content type

Image

Digest

Size

385.8 MB

Last updated

over 8 years ago

docker pull lincspipelines/pccse