snakemake-wrappers | development home of the Snakemake wrapper repository | BPM library

 by   snakemake Python Version: v1.3.2 License: No License

kandi X-RAY | snakemake-wrappers Summary

kandi X-RAY | snakemake-wrappers Summary

snakemake-wrappers is a Python library typically used in Automation, BPM applications. snakemake-wrappers has no bugs, it has no vulnerabilities and it has low support. However snakemake-wrappers build file is not available. You can download it from GitHub.

The Snakemake Wrapper Repository is a collection of reusable wrappers that allow to quickly use popular command line tools from Snakemake rules and workflows. Visit for more information.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              snakemake-wrappers has a low active ecosystem.
              It has 130 star(s) with 108 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 32 open issues and 43 have been closed. On average issues are closed in 125 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of snakemake-wrappers is v1.3.2

            kandi-Quality Quality

              snakemake-wrappers has no bugs reported.

            kandi-Security Security

              snakemake-wrappers has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              snakemake-wrappers does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              snakemake-wrappers releases are available to install and integrate.
              snakemake-wrappers has no build file. You will be need to create the build yourself to build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed snakemake-wrappers and discovered the below as its top functions. This is intended to give you an instant insight into snakemake-wrappers implemented functionality, and help decide if they suit your requirements.
            • Setup workflow
            • Render meta file
            • Render snakefile
            • Return the path to the output directory
            • Process the input_file
            • Separates a file name based on the ending index
            • Get the length of the longest sequence in a file
            • Check if the query is a header
            • Return the only child directory of path
            • Convert an answer to a boolean
            • Return the suffix of a path
            • Get a named input by name
            • Compose a gzipped output
            • Return a base filename without file extension
            • Compose a gzipped input file
            • Move files from in_list to out_list
            • Format a resampling response
            • Unzip bz2 files
            • Distribute the number of threads in the input_files
            • Get named output by name
            Get all kandi verified functions for this library.

            snakemake-wrappers Key Features

            No Key Features are available at this moment for snakemake-wrappers.

            snakemake-wrappers Examples and Code Snippets

            No Code Snippets are available at this moment for snakemake-wrappers.

            Community Discussions

            QUESTION

            Snakemake --use-conda with --cluster and NFS4 storage
            Asked 2021-Apr-01 at 11:12

            I am using snakemake in cluster mode to submit a simple one rule workflow to the HPCC, which runs Torque with several compute nodes. The NFSv4 storage is mounted on /data. There is a link /PROJECT_DIR -> /data/PROJECT_DIR/

            I submit the job using:

            ...

            ANSWER

            Answered 2021-Apr-01 at 11:12

            Solved by providing a jobscript (--jobscript SCRIPT) with:

            Source https://stackoverflow.com/questions/66868935

            QUESTION

            How to use singularity and conda wrappers in Snakemake
            Asked 2020-Sep-22 at 23:02

            TLDR I'm getting the following error:

            The 'conda' command is not available inside your singularity container image. Snakemake mounts your conda installation into singularity. Sometimes, this can fail because of shell restrictions. It has been tested to work with docker://ubuntu, but it e.g. fails with docker://bash

            I had created a Snakemake workflow and converted the shell: commands to rule-based package management via Snakemake wrappers: .

            However, I ran into issues running this on HPC and one of the HPC support staff strongly recommended against using conda on any HPC system as:

            "if the builder [of wrapper] is not super careful, dynamic libraries present in the conda environment that relies on the host libs (there are always a couple present because builder are most of the time carefree) will break. I think that relying on Singularity for your pipeline would make for a more robust system." - Anon

            I did some reading over the weekend and according to this document, it's possible to combine containers with conda-based package management; by defining a global conda docker container and per-rule yaml files.

            Note: In contrast to the example in the link above (Figure 5.4), which uses a predefined yaml and shell: command, here I've use conda wrappers which download these yaml files into the Singularity container (if I'm thinking correctly) so I thought should function the same - see the Note: at the end though...

            Snakefile, config.yaml and samples.txt Snakefile ...

            ANSWER

            Answered 2020-Sep-22 at 15:02

            TLDR:

            fastqc singularity container used in qc rule likely doesn't have conda available in it, and this doesn't satisfy what snakemake's--use-conda expects.

            Explanation:

            You have singularity containers defined at two different levels - 1. global level that will be used for all rules, unless they are overridden at rule level; 2. per-rule level that will be used at the rule level.

            Source https://stackoverflow.com/questions/64000711

            QUESTION

            lambda wildcards not working in BWA MEM (or BWA-MEM2) Snakemake wrapper(s)
            Asked 2020-Sep-02 at 15:46

            I'm in the process of porting Snakemake Shell: into Snakemake Wrappers and have noticed that the lambda wildcards: I've successfully used for other wrappers is failing for the BWA MEM wrapper.

            I've only managed to get the wrapper to work if it's hard-coded like:

            ...

            ANSWER

            Answered 2020-Sep-02 at 15:46
            input:
                reads=["lambda wildcards: getTrims(wildcards.sample)[0]", "lambda wildcards: getTrims(wildcards.sample)[1]"]
            

            Source https://stackoverflow.com/questions/63708047

            QUESTION

            Snakemake: temp files lead to immediate failure in repeated rule attempts
            Asked 2020-Aug-17 at 19:30

            I have a rule using the bwa mem wrapper that sometimes fails due to cluster time limits. As this only happens occasionally, I do not want to generally increase the time limit for that job, but instead increase it with the number of attempts.

            However, after failing due to cluster time limit, a lot of bwa mem tmp files are left in the output directory, which cause bwa mem to immediately fail in the next attempt. The generated tmp files are numbered out.tmp.1.bam .. out.tmp.n.bam, where n is some number as bwa mem sees fit, so I cannot simply mark these as temp files in Snakemake and rely on them being deleted on failure (I'm not even sure that this would happen - I don't know exactly when the deletion of files marked as temp is triggered...).

            I considered the following solutions:

            • Delete these files first (by not using the wrapper, but instead copy the wrapper code, and modify it to delete all out.tmp.*.bam files before running bwa mem), but this seems ugly.

            • Use a shadow directory, in the hope that this is directory cleared after each attempt, but the documentation says

              Shadow directories are stored one per rule execution in .snakemake/shadow/, and are cleared on successful execution.

              Hence, for a failed execution, the temp files would still be there, which will cause subsequent attempts to fail as well. I guess that this is done in order to be able to debug failed runs. But here, it hinders restarts.

            • An alternative solution would be to have onstart, onsuccess, and onerror hooks per rule, as previously suggested in #133, but that is an option for the future...

            I have posted a feature request for this problem already, but maybe there already is a pure Snakemake solution already out there. Any help appreciated!

            Thanks, Lucas

            ...

            ANSWER

            Answered 2020-Aug-17 at 19:30

            Update: From a bit more experimentation, it seems that shadow: "full" does the job, and indeed also deletes the files when the job failed. Not entirely sure though, and the documentation is not clear on that. But so far, it works.

            Source https://stackoverflow.com/questions/62506767

            QUESTION

            submitting a snakemake job to the cluster from within a ('correct') conda environment
            Asked 2020-Apr-08 at 15:37

            I am writing a snakemake file that shall perform multiple operations on multiple samples. After I validated the workflow running on my local computer, I am now working on running the workflow on a cluster.

            My first two rules are independent from one another, the first uses fastqc and the other bwa mem

            These two rules look like (at this point I am only calling the workflow on a single SAMPLE = 'NIPT-PearlPPlasma-03-PPx_S3downSample'):

            ...

            ANSWER

            Answered 2020-Apr-07 at 18:46

            Take a look at: https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#integrated-package-management

            You will have to make a make a conda environment yaml for the rule sort_bam, something like this:

            Source https://stackoverflow.com/questions/61084623

            QUESTION

            Do snakemake-wrappers get fetched once and stored locally? Or fetched everytime from remote URL?
            Asked 2020-Mar-12 at 14:23

            When snakemake wrappers are used with snakemake scripts, do they get fetched everytime from remote URL or are they stored locally? I don't see them stored anywhere in .snakemake directory, which makes me think it gets fetched everytime even if same version of wrapper script is used everytime.

            ...

            ANSWER

            Answered 2020-Mar-12 at 14:23

            Unfortunately Snakemake does fetch wrapper script from remote URL everytime, and currently there doesn't appear to be a solution to change this behavior. One alternative is to have a local clone of the wrapper repository and point snakemake to it using --wrapper-prefix.

            Here is the error message when internet is not available:

            Source https://stackoverflow.com/questions/60639909

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install snakemake-wrappers

            You can download it from GitHub.
            You can use snakemake-wrappers like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/snakemake/snakemake-wrappers.git

          • CLI

            gh repo clone snakemake/snakemake-wrappers

          • sshUrl

            git@github.com:snakemake/snakemake-wrappers.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular BPM Libraries

            Try Top Libraries by snakemake

            snakemake

            by snakemakeHTML

            snakefmt

            by snakemakePython

            snakemake-github-action

            by snakemakeShell

            snakedeploy

            by snakemakePython