GithubHelp home page GithubHelp logo

thehyve / pmc-conversion Goto Github PK

View Code? Open in Web Editor NEW
2.0 9.0 0.0 13.24 MB

Data extraction, transformation and loading pipeline for the Princess Maxima Center

License: MIT License

Python 97.95% Shell 2.05%
luigi transmart cbioportal

pmc-conversion's People

Contributors

alepev avatar ewelinagr avatar forus avatar gijskant avatar jankanis avatar jochemb avatar spayralbe avatar wardweistra avatar wibo-pipping avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pmc-conversion's Issues

Can't run individual task because of input signal file

@forus What is the purpose of comparing the input signal file with done file? A pipeline can run sequentially even without input signal files and without a requirement function. To check if a task has completed, the task itself can return a success.

To run the entire pipeline, we use python -m luigi --module scripts LoadDataFromNewFilesTask

If we remove the dependency of input signal files, we can run individual tasks, such as python -m luigi --module scripts CbioportalDataValidation without an error. This is also useful for unit testing, right?

This is the error I receive now when I only run CbioportalDataValidation

DEBUG: No input signal file specified. Create done signal file in the current directory.
ERROR: [pid 18307] Worker Worker(salt=127452127, workers=1, host=Sanders-MacBook-Pro.local, username=sander, pid=18307) failed    CbioportalDataValidation()
Traceback (most recent call last):
  File "/Users/sander/anaconda/envs/Python36/lib/python3.6/site-packages/luigi/worker.py", line 204, in run
    expl = self.task.on_success()
  File "/Users/sander/Data/Project_Princess/05_Pipeline/scripts/luigi_commons.py", line 107, in on_success
    f.write(self.calc_done_signal())
  File "/Users/sander/Data/Project_Princess/05_Pipeline/scripts/luigi_commons.py", line 92, in calc_done_signal
    input_signal_file = self.input_signal_file[0]
IndexError: list index out of range
DEBUG: 1 running tasks, waiting for next task to finish
INFO: Informed scheduler that task   CbioportalDataValidation__99914b932b   has status   FAILED

Pipeline succeeds when loading to cBioPortal fails

When the data loading step for cBioPortal fails, the data loading task still succeeds. Probably this is due to the concatenation of commands in https://github.com/thehyve/pmc-conversion/blob/master/luigi-pipeline/main.py#L280, https://github.com/thehyve/pmc-conversion/blob/master/luigi-pipeline/main.py#L287. When the last command is successful (restarting the service), the concatenation succeeds as well.
This is probably fixed by replacing ; by &&.

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.