Giter VIP home page Giter VIP logo

proline-workflow's Introduction

Update

This project and workflow has been merged into the WOMBAT pipelines.

Please go to https://github.com/wombat-p/WOMBAT-Pipelines

Workflows to analyze label-free data with SearchGUI and Proline

Content

Nextflow folder: Implementation of workflow

Results folder: Output from running the UPS data set

The provided workflow is based on the docker image wombatp/proline-pipeline that is automatically downloaded.

You can also create the image by the following command:

# main.nf workflow image creation from the Nextflow folder
docker build -t "wombat/proline-pipeline:dev" .

Getting started

Here is a little script that can be used to test the workflow execution. This script assumes that Docker is available on your system and is targeting Debian/Ubuntu linux distributions.

# Install Java
sudo apt-get install openjdk-8-jdk

# Fix docker permission issue (https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue)
# Note: this allows to run docker as non-root user
sudo usermod -aG docker $USER
newgrp docker

# Fetch scripts and data
git clone https://github.com/wombat-p/Proline-Workflow.git
cd ./Proline-Workflow/Nextflow/data
wget ftp://ftp.pride.ebi.ac.uk/pride/data/archive/2015/12/PXD001819/UPS1_500amol_R1.raw

# Nextflow
cd ..
curl -s https://get.nextflow.io | bash

# Worfklow
./nextflow run main.nf -profile docker,test

Run benchmarking data set

You should have successfully tested the workflow using the procedure above.

Download the raw files from PRIDE: http://proteomecentral.proteomexchange.org/cgi/GetDataset?ID=PXD001819

Run the workflow with the following command and parameters after changing RAWFOLDER to the folder where the raw files are located. You will also need to adjust the paths to pxd001819.txt, yeast_UPS.fasta and lfq_param_file.txt. These files are given in the data folder of this workflow: https://github.com/wombat-p/Proline-Workflow/tree/dev/data

Also adjust the parameter values max_cpus and max_memory to the computing power you have available. When running all files, Proline will need at least 16GB.

nextflow run main.nf --raws 'RAWFOLDER/*.raw' --fasta '../data/yeast_UPS.fasta' --precursor_mass_tolerance 5 \
  --fragment_mass_tolerance 0.8 --miscleavages 2 --variable_mods 'Oxidation of M, Acetylation of protein N-term' \
  --experiment_design '../data/pxd001819.txt' --lfq_param '../data/lfq_param_file.txt' \
  --max_cpus 8 --max_memory 16GB -profile docker -with-report -with-trace -with-timeline

proline-workflow's People

Contributors

veitveit avatar julianu avatar flevander avatar

Watchers

James Cloos avatar  avatar

Forkers

julianu

proline-workflow's Issues

Upload pxd001819.txt

In this section https://github.com/wombat-p/Proline-Workflow#run-benchmarking-data-set
we give this example of nextflow execution:

nextflow run main.nf --raws 'RAWFOLDER/*.raw' --fasta yeast_UPS.fasta --precursor_mass_tolerance 5 --fragment_mass_tolerance 0.8 --miscleavages 2 \
--variable_mods 'Oxidation of M, Acetylation of protein N-term' --experiment_design 'pxd001819.txt' --lfq_param \
'lfq_param_file.txt' --max_cpus 8 --max_memory 16GB -profile docker -with-report -with-trace -with-timeline

However there is no "pxd001819.txt" file in this repo.

We should thus upload a file named "pxd001819.txt" in the folder
https://github.com/wombat-p/Proline-Workflow/tree/dev/Nextflow/data

This file should contain the full experimental design.

This should help to understand/execute the provided example.

Workflow fails at run_polystest step

Step to reproduce :

./nextflow run main.nf --raws "../../data/*.raw" --fasta "../../data/*.fasta" --precursor_mass_tolerance 10.0 --fragment_mass_tolerance 0.5 --miscleavages 2 --variable_mods "Acetylation of protein N-term" --experiment_design "../../data/pxd001819.txt" --lfq_param "../../data/lfq_param_file.txt" --max_cpus 16 --max_memory 60GB -profile docker -with-report -with-trace -with-timeline

Main error

Error in smooth.spline(lambda, pi0, df = smooth.df) :
    missing or infinite values in inputs are not allowed
  Calls: UnpairedDesign -> qvalue -> pi0est -> smooth.spline

Error log

Error executing process > 'run_polystest (1)'

Caused by:
  Process `run_polystest (1)` terminated with an error exit status (1)

Command executed:

  convertProline=$(which runPolySTestCLI.R)

  echo $convertProline
  convertProline=$(dirname $convertProline)

  echo $convertProline
  Rscript ${convertProline}/convertFromProline.R quant_exp_design.txt proline_results_2274b219-a96c-4237-9d62-f64558d6c667.xlsx

  sed -i "s/threads: 2/threads: 16/g" pep_param.yml
  sed -i "s/threads: 2/threads: 16/g" prot_param.yml

  runPolySTestCLI.R pep_param.yml
  runPolySTestCLI.R prot_param.yml

Command exit status:
  1

Command output:
  /opt/conda/envs/nf-core-proline-labelfree/bin/runPolySTestCLI.R
  /opt/conda/envs/nf-core-proline-labelfree/bin
  ****** Found 10 different experimental conditions with up to 3 replicates


  |Var1       | Freq|
  |:----------|----:|
  |12500amol  |    3|
  |125amol    |    3|
  |250000amol |    2|
  |25000amol  |    1|
  |2500amol   |    3|
  |250amol    |    3|
  |50000amol  |    3|
  |5000amol   |    3|
  |500amol    |    3|
  |50amol     |    3|
  Files pep_param.yml and peptides.txt written
  Files prot_param.yml and proteins.txt written
  [1] "Reading pep_param.yml"
  [1] "16"
  Getting R functions from files located in /opt/conda/envs/nf-core-proline-labelfree/bin
  [1] "Set number of threads to 16"

  Experimental setup as read:

  |            |Condition 1 |Condition 2 |Condition 3 |Condition 4 |Condition 5 |Condition 6 |Condition 7  |Condition 8   |Condition 9  |Condition 10 |
  |:-----------|:-----------|:-----------|:-----------|:-----------|:-----------|:-----------|:------------|:-------------|:------------|:------------|
  |Replicate 1 |X125amol.1  |X50amol.1   |X250amol.1  |X500amol.1  |X2500amol.1 |X5000amol.1 |X12500amol.1 |X250000amol.1 |X25000amol.1 |X50000amol.1 |
  |Replicate 2 |X125amol.2  |X50amol.2   |X250amol.2  |X500amol.2  |X2500amol.2 |X5000amol.2 |X12500amol.2 |X250000amol.2 |X25000amol.2 |X50000amol.2 |
  |Replicate 3 |X125amol.3  |X50amol.3   |X250amol.3  |X500amol.3  |X2500amol.3 |X5000amol.3 |X12500amol.3 |X250000amol.3 |X25000amol.3 |X50000amol.3 |

  All pairwise comparison between conditions:

  |            |Comparison 1 |Comparison 2 |Comparison 3 |Comparison 4 |Comparison 5 |Comparison 6 |Comparison 7 |Comparison 8 |Comparison 9 |Comparison 10 |Comparison 11 |Comparison 12 |Comparison 13 |Comparison 14 |Comparison 15 |Comparison 16 |Comparison 17 |Comparison 18 |Comparison 19 |Comparison 20 |Comparison 21 |Comparison 22 |Comparison 23 |Comparison 24 |Comparison 25 |Comparison 26 |Comparison 27 |Comparison 28 |Comparison 29 |Comparison 30 |Comparison 31 |Comparison 32 |Comparison 33 |Comparison 34 |Comparison 35 |Comparison 36 |Comparison 37 |Comparison 38 |Comparison 39 |Comparison 40 |Comparison 41 |Comparison 42 |Comparison 43 |Comparison 44 |Comparison 45 |
  |:-----------|:------------|:------------|:------------|:------------|:------------|:------------|:------------|:------------|:------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|:-------------|
  |Condition A |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X125amol.    |X50amol.      |X50amol.      |X50amol.      |X50amol.      |X50amol.      |X50amol.      |X50amol.      |X50amol.      |X250amol.     |X250amol.     |X250amol.     |X250amol.     |X250amol.     |X250amol.     |X250amol.     |X500amol.     |X500amol.     |X500amol.     |X500amol.     |X500amol.     |X500amol.     |X2500amol.    |X2500amol.    |X2500amol.    |X2500amol.    |X2500amol.    |X5000amol.    |X5000amol.    |X5000amol.    |X5000amol.    |X12500amol.   |X12500amol.   |X12500amol.   |X250000amol.  |X250000amol.  |X25000amol.   |
  |Condition B |X50amol.     |X250amol.    |X500amol.    |X2500amol.   |X5000amol.   |X12500amol.  |X250000amol. |X25000amol.  |X50000amol.  |X250amol.     |X500amol.     |X2500amol.    |X5000amol.    |X12500amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X500amol.     |X2500amol.    |X5000amol.    |X12500amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X2500amol.    |X5000amol.    |X12500amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X5000amol.    |X12500amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X12500amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X250000amol.  |X25000amol.   |X50000amol.   |X25000amol.   |X50000amol.   |X50000amol.   |
  Running limma tests
  Running rank products and permutations tests ...
  ================================================================================

Command error:
  Error in smooth.spline(lambda, pi0, df = smooth.df) :
    missing or infinite values in inputs are not allowed
  Calls: UnpairedDesign -> qvalue -> pi0est -> smooth.spline
  In addition: There were 50 or more warnings (use warnings() to see the first 50)
  Execution halted

Work dir:
  /home/gelonch/dev/jupyterlab_root/wombatp/Proline-Workflow/Nextflow/work/b2/7bcdb51604277b6240c315b3d187f0

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.