aws-quickstart / quickstart-illumina-dragen
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 39 units with 637 lines of code in units (26.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (112 lines of code)
    • 2 medium complex units (79 lines of code)
    • 11 simple units (254 lines of code)
    • 25 very simple units (192 lines of code)
0% | 17% | 12% | 39% | 30%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 17% | 12% | 39% | 30%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
app/source/dragen/src0% | 25% | 13% | 40% | 21%
app/source/dragen/src/scheduler0% | 0% | 10% | 38% | 50%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def download_inputs()
in app/source/dragen/src/dragen_qs.py
112 26 1
def parse_download_args()
in app/source/dragen/src/dragen_qs.py
58 25 1
def s3_download_dir()
in app/source/dragen/src/scheduler/aws_utils.py
21 12 5
def set_resource_limits()
in app/source/dragen/src/dragen_qs.py
29 9 1
def log()
in app/source/dragen/src/scheduler/logger.py
18 9 3
def _s3_upload_files_recursively()
in app/source/dragen/src/scheduler/aws_utils.py
13 9 5
def s3_download_file()
in app/source/dragen/src/scheduler/aws_utils.py
17 8 2
def run_job()
in app/source/dragen/src/dragen_qs.py
36 7 1
def __init__()
in app/source/dragen/src/dragen_qs.py
40 6 2
def copy_var_log_dragen_files()
in app/source/dragen/src/dragen_qs.py
22 6 1
def download_ref_tables()
in app/source/dragen/src/dragen_qs.py
21 6 1
def upload_job_outputs()
in app/source/dragen/src/dragen_qs.py
18 6 1
def create_output_dir()
in app/source/dragen/src/dragen_qs.py
14 6 1
def __init__()
in app/source/dragen/src/scheduler/logger.py
26 6 6
def get_s3_bucket_key()
in app/source/dragen/src/dragen_qs.py
11 4 1
def check_create_dir()
in app/source/dragen/src/scheduler/scheduler_utils.py
12 4 1
def _s3_upload_file()
in app/source/dragen/src/scheduler/aws_utils.py
12 4 5
def find_arg_in_list()
in app/source/dragen/src/dragen_qs.py
9 3 2
def run()
in app/source/dragen/src/dragen_qs.py
17 3 1
def localtime_to_utc()
in app/source/dragen/src/scheduler/scheduler_utils.py
9 3 1