Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakemake data loader maintenance #166

Open
wants to merge 1 commit into
base: feat/external-deployment
Choose a base branch
from

Conversation

matthewstuartedwards
Copy link

The Snakemake pipeline was giving a lot of issues. First was the version of python in the Node:16 container was unable to parse syntax in the node-gyp module, specifically the := operator. Updating the container to Node:17 was enough to solve this.

With the update to Node:17, the 1.x.x version of the graphkb_parser was no longer working within the node dependency chain. I updated the graphkb_parser to ^2.0.0 and graphkb-schema to ^3.16.0 which allowed all dependencies to compile. Updating the parser changed how it was to be loaded in the javascript code, so there were a few superficial changes to get the library loaded.

The shell sections of many downloaders included commands to change directory. I don't know if this was causing all the problems or the dedent command, but for me the shell sections of these tasks would execute and exit without error, but without having run any commands. I reworked these tasks to download files without changing the current directory, often by replacing wget with curl --create-dirs -o.

Was still having some Node version issues when executing the pipeline, but npm rebuild seemed to fix that. I'm not sure if something else could be done to fix that, but putting an npm rebuild near the end of the Docker file was enough to solve that problem for me.

The Snakemake pipeline was giving a lot of issues.  First was the version of python in the Node:16 container was unable to parse syntax in the node-gyp module, specifically the := operator.  Updating the container to Node:17 was enough to solve this.

With the update to Node:17, the 1.x.x version of the graphkb_parser was no longer working within the node dependency chain.  I updated the graphkb_parser to ^2.0.0 and graphkb-schema to ^3.16.0 which allowed all dependencies to compile.  Updating the parser changed how it was to be loaded in the javascript code, so there were a few superficial changes to get the library loaded.

The shell sections of many downloaders included commands to change directory.  I don't know if this was causing all the problems or the dedent command, but for me the shell sections of these tasks would execute and exit without error, but without having run any commands.  I reworked these tasks to download files without changing directory, often by replacing wget with `curl --create-dirs -o`.

Was still having some Node version issues when executing the pipeline, but npm rebuild seemed to fix that.  I'm not sure if something else could be done to fix that, but putting an `npm rebuild` near the end of the Docker file was enough to solve that problem for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant