Skip to content

Commit

Permalink
Removed unnacessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
eudesbarbosa committed Oct 19, 2022
1 parent 344b036 commit 68fd2bb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
13 changes: 0 additions & 13 deletions snappy_pipeline/workflows/adapter_trimming/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
from biomedsheets.shortcuts import GenericSampleSheet
from snakemake.io import expand

from snappy_pipeline.base import UnsupportedActionException
from snappy_pipeline.utils import dictify, listify
from snappy_pipeline.workflows.abstract import (
BaseStep,
Expand Down Expand Up @@ -537,15 +536,9 @@ def get_resource_usage(self, action):
:type action: str
:return: Returns ResourceUsage for step.
:raises UnsupportedActionException: if action not in class defined list of valid actions.
"""
# Validate action
self._validate_action(action)
if action not in self.actions:
actions_str = ", ".join(self.actions)
error_message = f"Action '{action}' is not supported. Valid options: {actions_str}"
raise UnsupportedActionException(error_message)
return ResourceUsage(
threads=self.config["bbduk"]["num_threads"],
time="12:00:00", # 40 hours
Expand All @@ -566,15 +559,9 @@ def get_resource_usage(self, action):
:type action: str
:return: Returns ResourceUsage for step.
:raises UnsupportedActionException: if action not in class defined list of valid actions.
"""
# Validate action
self._validate_action(action)
if action not in self.actions:
actions_str = ", ".join(self.actions)
error_message = f"Action '{action}' is not supported. Valid options: {actions_str}"
raise UnsupportedActionException(error_message)
return ResourceUsage(
threads=self.config["fastp"]["num_threads"],
time="12:00:00", # 60 hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ def _collect_reads(self, wildcards, library_name, prefix):
Yields paths to right reads if prefix=='right-'
"""
_ = library_name
folder_name = get_ngs_library_folder_name(self.parent.sheets, wildcards.library_name)
if self.config["path_link_in"]:
folder_name = library_name
Expand Down
1 change: 0 additions & 1 deletion snappy_pipeline/workflows/hla_typing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ def _collect_reads(self, wildcards, library_name, prefix):
Yields paths to right reads if prefix=='right-'
"""
_ = library_name
folder_name = get_ngs_library_folder_name(self.parent.sheets, wildcards.library_name)
if self.config["path_link_in"]:
folder_name = library_name
Expand Down
1 change: 0 additions & 1 deletion snappy_pipeline/workflows/ngs_data_qc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def _collect_reads(self, wildcards, library_name, prefix):
Yields paths to right reads if prefix=='right-'
"""
_ = library_name
folder_name = get_ngs_library_folder_name(self.parent.sheets, wildcards.library_name)
if self.config["path_link_in"]:
folder_name = library_name
Expand Down
1 change: 0 additions & 1 deletion snappy_pipeline/workflows/ngs_mapping/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@ def _collect_reads(self, wildcards, library_name, prefix):
Yields paths to right reads if prefix=='right-'
"""
_ = library_name
folder_name = get_ngs_library_folder_name(self.parent.sheets, wildcards.library_name)
if self.config["path_link_in"]:
folder_name = library_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def _collect_reads(self, wildcards, library_name, prefix):
Yields paths to right reads if prefix=='right-'
"""
_ = library_name
folder_name = get_ngs_library_folder_name(self.parent.sheets, wildcards.library_name)
if self.config["path_link_in"]:
folder_name = library_name
Expand Down

0 comments on commit 68fd2bb

Please sign in to comment.