Git Product home page Git Product logo

cookiecutter-snakemake-workflow's Introduction

cookiecutter-snakemake-workflow's People

Contributors

brwnj avatar dlaehnemann avatar henningtimm avatar johanneskoester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cookiecutter-snakemake-workflow's Issues

NonTemplatedInputDirException when trying to create instance

When trying to instantiate the template using cookiecutter, I get the following exception:

Traceback (most recent call last):
  File "/Users/Julian/Anaconda/bin/cookiecutter", line 6, in <module>
    sys.exit(cookiecutter.cli.main())
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/cookiecutter/cli.py", line 123, in main
    default_config=default_config,
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/cookiecutter/main.py", line 91, in cookiecutter
    output_dir=output_dir
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/cookiecutter/generate.py", line 253, in generate_files
    template_dir = find_template(repo_dir)
  File "/Users/Julian/Anaconda/lib/python3.6/site-packages/cookiecutter/find.py", line 36, in find_template
    raise NonTemplatedInputDirException
cookiecutter.exceptions.NonTemplatedInputDirException

This is using cookiecutter 1.5.1 on Python 3.6.

Isn't this exception occurring because of the structure of the template? Most examples I have seen have the actual template in a subdirectory (see https://github.com/drivendata/cookiecutter-data-science for example), which is named after the repo name or something similar.

dependency unmet

The default template requires pandas to work, but that dependency is not accounted for in the template:

In workflow/rules/common.smk pandas is used:

import pandas as pd

so the template doesn't work as shipped.

$ snakemake -j 1
ModuleNotFoundError in line 2 of rna-seq/workflow/rules/common.smk:
No module named 'pandas'
  File "rna-seq/workflow/Snakefile", line 17, in <module>
  File "rna-seq/workflow/rules/common.smk", line 2, in <module>

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.