@@ -46,6 +46,7 @@ def test_attribute_handling(self):
4646 genome = GENOME .HG38 ,
4747 genome_path = "" ,
4848 bam_color_by = [AllignmentColorByOption .NONE ],
49+ bam_color_by_tag = ["" ],
4950 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
5051 bam_hide_small_indels = [False ],
5152 bam_small_indel_threshold = [0 ],
@@ -73,6 +74,35 @@ def test_attribute_handling(self):
7374 genome = GENOME .HG38 ,
7475 genome_path = "" ,
7576 bam_color_by = [AllignmentColorByOption .NONE ],
77+ bam_color_by_tag = ["" ],
78+ bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
79+ bam_hide_small_indels = [False ],
80+ bam_small_indel_threshold = [0 ],
81+ bam_show_coverage = [False ],
82+ bam_show_junctions = [False ],
83+ bw_ranges = [BigWigRangeOption (minimum = 0.0 , baseline = 0.0 , maximum = 0.0 )],
84+ bw_color = [RGBColorOption .NONE ],
85+ bw_negative_color = [RGBColorOption .NONE ],
86+ bw_plot_type = [BigWigPlotTypeOption .NONE ],
87+ bw_auto_scale = [False ],
88+ vcf_show_genotypes = [False ],
89+ vcf_feature_visibility_window = [0 ],
90+ gtf_display_mode = [GtfDisplayModeOption .COLLAPSED ],
91+ )
92+
93+ self .assertRaises (
94+ ValueError ,
95+ generate_igv_session ,
96+ # Relevant arguments
97+ files = [self .input_bam ],
98+ bam_color_by = [AllignmentColorByOption .TAG ],
99+ bam_color_by_tag = ["PS" ],
100+ # Other arguments
101+ names = [],
102+ heights = [],
103+ genome = GENOME .HG38 ,
104+ genome_path = "" ,
105+ bam_group_by = [AllignmentGroupByOption .NONE ],
76106 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
77107 bam_hide_small_indels = [False ],
78108 bam_small_indel_threshold = [0 ],
@@ -101,6 +131,7 @@ def test_attribute_handling(self):
101131 genome = GENOME .HG38 ,
102132 genome_path = "" ,
103133 bam_color_by = [AllignmentColorByOption .NONE ],
134+ bam_color_by_tag = ["" ],
104135 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
105136 bam_group_by = [AllignmentGroupByOption .NONE ],
106137 bam_hide_small_indels = [False ],
@@ -128,6 +159,7 @@ def test_attribute_handling(self):
128159 genome = GENOME .HG38 ,
129160 genome_path = "" ,
130161 bam_color_by = [AllignmentColorByOption .NONE ],
162+ bam_color_by_tag = ["" ],
131163 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
132164 bam_group_by = [False ],
133165 bam_hide_small_indels = [False ],
@@ -154,6 +186,7 @@ def test_attribute_handling(self):
154186 genome = GENOME .HG38 ,
155187 genome_path = "" ,
156188 bam_color_by = [AllignmentColorByOption .NONE ],
189+ bam_color_by_tag = ["" ],
157190 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
158191 bam_group_by = [False ],
159192 bam_hide_small_indels = [False ],
@@ -181,6 +214,7 @@ def test_attribute_handling(self):
181214 genome = GENOME .HG38 ,
182215 genome_path = "" ,
183216 bam_color_by = [AllignmentColorByOption .NONE ],
217+ bam_color_by_tag = ["" ],
184218 bam_display_mode = [AllignmentDisplayModeOption .COLLAPSED ],
185219 bam_group_by = [False ],
186220 bam_hide_small_indels = [False ],
0 commit comments