Skip to content

Commit

Permalink
Merge pull request #505 from maxplanck-ie/snakemake_5.7
Browse files Browse the repository at this point in the history
Snakemake 5.7
  • Loading branch information
dpryan79 committed Oct 10, 2019
2 parents 7504691 + b9bafec commit 86e20c4
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 16 deletions.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
displayName: Add conda to PATH
- bash: |
if [ -f /Users/vsts/.conda/pkgs/urls.txt ]; then
echo "chown"
sudo chown 501:20 /Users/vsts/.conda/pkgs/urls.txt
fi
displayName: Fix OSX permissions
Expand Down
4 changes: 2 additions & 2 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: snakepipes
version: 1.3.0
version: 1.3.1

source:
path: ../
Expand All @@ -14,7 +14,7 @@ requirements:
- python >=3
run:
- python >=3
- snakemake >=5.2.3
- snakemake >=5.7
- pandas
- graphviz
- fuzzywuzzy
Expand Down
5 changes: 5 additions & 0 deletions docs/content/News.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
snakePipes News
===============

snakePipes 1.3.1
----------------

* Support for snakeMake 5.7.0

snakePipes 1.3.0
----------------

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
snakemake >= 5.2.3
snakemake >= 5.7.0
psutil
pandas
fuzzywuzzy
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
for d in glob('snakePipes/workflows/*'):
scripts.append(os.path.join(d, os.path.split(d)[1]))

requires = open("requirements.txt").read().strip().split("\n")

setup(
name='snakePipes',
version=__version__, # noqa: F821
scripts=scripts,
packages=find_packages(),
include_package_data=True,
install_requires=requires,
url='https://github.com/maxplanck-ie/snakepipes',
license='MIT',
description='Snakemake workflows and wrappers for NGS data processing from the MPI-IE',
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.0'
__version__ = '1.3.1'
6 changes: 3 additions & 3 deletions snakePipes/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ def sanity_dict_clean(myDict):
return myDict


def load_configfile(configFile, verbose, info='Config'):
with open(configFile, "r") as f:
def load_configfile(configFiles, verbose, info='Config'):
with open(configFiles, "r") as f:
config = yaml.load(f, Loader=yaml.FullLoader)

config = sanity_dict_clean(config)

if verbose:
print("\n--- " + info + " ---------------------------------------------------------------------")
print("config file: {}".format(configFile))
print("config file: {}".format(configFiles))
for k, v in sorted(config.items()):
print("{}: {}".format(k, v))
print("-" * 80, "\n")
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/ATAC-seq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflow_rscripts=os.path.join(maindir, "shared", "rscripts")
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/ChIP-seq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ workflow_rscripts=os.path.join(maindir, "shared", "rscripts")
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/DNA-mapping/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maindir = os.path.dirname(os.path.dirname(workflow.basedir))
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/HiC/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maindir = os.path.dirname(os.path.dirname(workflow.basedir))
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/RNA-seq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maindir = os.path.dirname(os.path.dirname(workflow.basedir))
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/WGBS/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ workflow_rscripts=os.path.join(maindir, "shared", "rscripts")
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/createIndices/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ maindir = os.path.dirname(os.path.dirname(workflow.basedir))
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))

### include modules of other snakefiles ########################################
################################################################################
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/preprocessing/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maindir = os.path.dirname(os.path.dirname(workflow.basedir))
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))

# do workflow specific stuff now
include: os.path.join(workflow.basedir, "internals.snakefile")
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/workflows/scRNAseq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ workflow_rscripts=os.path.join(maindir, "shared", "rscripts")
globals().update(cf.set_env_yamls())

# load config file
globals().update(cf.load_configfile(workflow.overwrite_configfile, config["verbose"]))
globals().update(cf.load_configfile(workflow.overwrite_configfiles[0], config["verbose"]))
# load organism-specific data, i.e. genome indices, annotation, etc.
globals().update(cf.load_organism_data(genome, maindir, config["verbose"]))

Expand Down

0 comments on commit 86e20c4

Please sign in to comment.