13
13
14
14
ARGUMENT_CASE_ID = click .argument ("case_id" , required = True )
15
15
OPTION_EXTERNAL_REF = click .option ("-e" , "--external-ref" , is_flag = True )
16
+ OPTION_USE_BWA_MEM = click .option ("-b" , "--use-bwa-mem" , is_flag = True )
16
17
17
18
LOG = logging .getLogger (__name__ )
18
19
@@ -51,15 +52,27 @@ def create_samplesheet(context: CGConfig, case_id: str, dry_run: bool):
51
52
@DRY_RUN
52
53
@click .option ("-c" , "--config" , help = "Path to fluffy config in .json format" )
53
54
@OPTION_EXTERNAL_REF
55
+ @OPTION_USE_BWA_MEM
54
56
@click .pass_obj
55
- def run (context : CGConfig , case_id : str , dry_run : bool , config : str , external_ref : bool = False ):
57
+ def run (
58
+ context : CGConfig ,
59
+ case_id : str ,
60
+ dry_run : bool ,
61
+ config : str ,
62
+ external_ref : bool ,
63
+ use_bwa_mem : bool ,
64
+ ):
56
65
"""
57
66
Run Fluffy analysis
58
67
"""
59
68
analysis_api : FluffyAnalysisAPI = context .meta_apis ["analysis_api" ]
60
69
analysis_api .status_db .verify_case_exists (case_internal_id = case_id )
61
70
analysis_api .run_fluffy (
62
- case_id = case_id , workflow_config = config , dry_run = dry_run , external_ref = external_ref
71
+ case_id = case_id ,
72
+ workflow_config = config ,
73
+ dry_run = dry_run ,
74
+ external_ref = external_ref ,
75
+ use_bwa_mem = use_bwa_mem ,
63
76
)
64
77
if dry_run :
65
78
return
@@ -78,12 +91,14 @@ def run(context: CGConfig, case_id: str, dry_run: bool, config: str, external_re
78
91
@DRY_RUN
79
92
@click .option ("-c" , "--config" , help = "Path to fluffy config in .json format" )
80
93
@OPTION_EXTERNAL_REF
94
+ @OPTION_USE_BWA_MEM
81
95
@click .pass_context
82
96
def start (
83
97
context : click .Context ,
84
98
case_id : str ,
85
99
dry_run : bool ,
86
- external_ref : bool = False ,
100
+ external_ref : bool ,
101
+ use_bwa_mem : bool ,
87
102
config : str = None ,
88
103
):
89
104
"""
@@ -96,7 +111,14 @@ def start(
96
111
analysis_api .prepare_fastq_files (case_id = case_id , dry_run = dry_run )
97
112
context .invoke (link , case_id = case_id , dry_run = dry_run )
98
113
context .invoke (create_samplesheet , case_id = case_id , dry_run = dry_run )
99
- context .invoke (run , case_id = case_id , config = config , dry_run = dry_run , external_ref = external_ref )
114
+ context .invoke (
115
+ run ,
116
+ case_id = case_id ,
117
+ config = config ,
118
+ dry_run = dry_run ,
119
+ external_ref = external_ref ,
120
+ use_bwa_mem = use_bwa_mem ,
121
+ )
100
122
101
123
102
124
@fluffy .command ("start-available" )
0 commit comments