-
Notifications
You must be signed in to change notification settings - Fork 11
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 #88 from SebastianHollizeck/master
cleanup of spagetti code through inheritance
- Loading branch information
Showing
21 changed files
with
419 additions
and
769 deletions.
There are no files selected for viewing
11 changes: 3 additions & 8 deletions
11
janis_bioinformatics/tools/dawson/workflows/variantcalling/multisample/__init__.py
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,8 +1,3 @@ | ||
from .freebayessomaticworkflow import FreeBayesSomaticWorkflow | ||
from .freebayessomaticworkflow_cram import FreeBayesSomaticWorkflowCram | ||
|
||
from .mutect2jointsomaticworkflow import Mutect2JointSomaticWorkflow | ||
from .mutect2jointsomaticworkflow_cram import Mutect2JointSomaticWorkflowCram | ||
|
||
from .strelka2passworkflow import Strelka2PassWorkflow | ||
from .strelka2passworkflow_cram import Strelka2PassWorkflowCram | ||
from .freebayes import * | ||
from .mutect2 import * | ||
from .strelka2 import * |
2 changes: 2 additions & 0 deletions
2
janis_bioinformatics/tools/dawson/workflows/variantcalling/multisample/freebayes/__init__.py
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,2 @@ | ||
from .freebayessomaticworkflow import FreeBayesSomaticWorkflow | ||
from .freebayessomaticworkflow_cram import FreeBayesSomaticWorkflowCram |
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
30 changes: 30 additions & 0 deletions
30
...ls/dawson/workflows/variantcalling/multisample/freebayes/freebayessomaticworkflow_cram.py
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,30 @@ | ||
from .freebayessomaticworkflow import ( | ||
FreeBayesSomaticWorkflow, | ||
) | ||
|
||
|
||
class FreeBayesSomaticWorkflowCram(FreeBayesSomaticWorkflow): | ||
def id(self): | ||
return "FreeBayesSomaticWorkflowCram" | ||
|
||
def friendly_name(self): | ||
return "Freebayes somatic workflow (CRAM)" | ||
|
||
# this is a way to get the tool without spagetti code in bam and cram format | ||
def getFreebayesTool(self): | ||
from janis_bioinformatics.tools.freebayes.versions import ( | ||
FreeBayesCram_1_3 as freebayes, | ||
) | ||
|
||
return freebayes | ||
|
||
def getFreebayesInputType(self): | ||
from janis_bioinformatics.data_types import CramCrai | ||
|
||
return CramCrai | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
wf = FreeBayesSomaticWorkflowCram() | ||
wdl = wf.translate("wdl", to_console=True, to_disk=False, write_inputs_file=False) |
195 changes: 0 additions & 195 deletions
195
...matics/tools/dawson/workflows/variantcalling/multisample/freebayessomaticworkflow_cram.py
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
janis_bioinformatics/tools/dawson/workflows/variantcalling/multisample/mutect2/__init__.py
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,2 @@ | ||
from .mutect2jointsomaticworkflow import Mutect2JointSomaticWorkflow | ||
from .mutect2jointsomaticworkflow_cram import Mutect2JointSomaticWorkflowCram |
Oops, something went wrong.