forked from sequana/sequana_pipetools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sequana#7 from ddesvillechabrol/add_snaketools
Add snaketools and sequana manager
- Loading branch information
Showing
37 changed files
with
3,054 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
easydev | ||
parse | ||
ruamel.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pytest | ||
mock | ||
git+https://github.com/sequana/fastqc.git@master#egg=sequana-fastqc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import pkg_resources | ||
|
||
try: | ||
version = pkg_resources.require("sequana_pipetools")[0].version | ||
except: #pragma: no cover | ||
except pkg_resources.DistributionNotFound: # pragma: no cover | ||
version = ">=0.2.0" | ||
|
||
|
||
from easydev.logging_tools import Logging | ||
|
||
logger = Logging("sequana_pipetools", "WARNING") | ||
# To keep the inheritance/propagation of levels. Logging from easydev will do | ||
# the formatting only. | ||
import colorlog | ||
logger = colorlog.getLogger(logger.name) | ||
|
||
|
||
logger = colorlog.getLogger(logger.name) | ||
|
||
from .snaketools import Module, SequanaConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
# | ||
# This file is part of Sequana software | ||
# | ||
# Copyright (c) 2016-2021 - Sequana Development Team | ||
# Copyright (c) 2016-2021 - Sequana Dev Team (https://sequana.readthedocs.io) | ||
# | ||
# Distributed under the terms of the 3-clause BSD license. | ||
# The full license is in the LICENSE file, distributed with this software. | ||
# | ||
# website: https://github.com/sequana/sequana | ||
# documentation: http://sequana.readthedocs.io | ||
# | ||
# Website: https://github.com/sequana/sequana | ||
# Documentation: http://sequana.readthedocs.io | ||
# Contributors: https://github.com/sequana/sequana/graphs/contributors | ||
############################################################################## | ||
import glob | ||
|
||
from .slurm import DebugJob | ||
|
||
|
||
class PipeError(): | ||
class PipeError: | ||
def __init__(self, name, **kwars): | ||
self.name = name | ||
|
||
def status(self, slurm_directory="./"): | ||
print(f"An error occurred during the execution. Please fix the issue and run the script again (sh {self.name}.sh)") | ||
print( | ||
f"An error occurred during the execution. Please fix the issue and run the script again (sh {self.name}.sh)" | ||
) | ||
|
||
filenames = glob.glob(slurm_directory + "slurm*") | ||
if len(filenames): #pragma: no cover | ||
from sequana_pipetools.slurm import DebugJob | ||
if len(filenames): # pragma: no cover | ||
dj = DebugJob(slurm_directory) | ||
print(dj) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.