@@ -69,7 +69,7 @@ def test_ingestion_tasks(tmp_path):
6969 if platform .system () != "Linux" :
7070 return
7171
72- # query allele_count array with TileDB
72+ # Query allele_count array with TileDB
7373 ac_uri = tiledb .Group (uri )["allele_count" ].uri
7474
7575 skip_if_incompatible (ac_uri )
@@ -83,7 +83,7 @@ def test_ingestion_tasks(tmp_path):
8383 assert df ["alt" ].array == "C"
8484 assert df ["count" ].array == 1
8585
86- # query variant_stats array with TileDB
86+ # Query variant_stats array with TileDB
8787 vs_uri = tiledb .Group (uri )["variant_stats" ].uri
8888
8989 contig = "1"
@@ -263,15 +263,14 @@ def test_ingest_merging(tmp_path):
263263
264264def test_ingest_mode_merged (tmp_path ):
265265 """Verify contig_mode='merged' ingests only pseudo-contigs."""
266- # tiledbvcf.config_logging("debug")
267266 # Create the dataset
268267 uri = os .path .join (tmp_path , "dataset_merging" )
269268 ds = tiledbvcf .Dataset (uri , mode = "w" )
270269 samples = [
271270 os .path .join (TESTS_INPUT_DIR , s ) for s in ["v2-DjrIAzkP-downsampled.vcf.gz" ]
272271 ]
273272 ds .create_dataset ()
274- # ingest only merged contigs (pseudo-contigs)
273+ # Ingest only merged contigs (pseudo-contigs)
275274 ds .ingest_samples (samples , contig_mode = "merged" )
276275
277276 # Open it back in read mode and check some queries
@@ -283,12 +282,10 @@ def test_ingest_mode_merged(tmp_path):
283282@skip_if_no_bcftools
284283def test_ingest_with_stats_v2 (tmp_path , bgzip_and_index_vcfs ):
285284 """Verify ingestion with v2 stats, AF filtering, scan_all_samples, and allele counts."""
286- # tiledbvcf.config_logging("debug")
287285 shutil .copytree (
288286 os .path .join (TESTS_INPUT_DIR , "stats" ), os .path .join (tmp_path , "stats" )
289287 )
290288 bgzipped_inputs = bgzip_and_index_vcfs (os .path .join (tmp_path , "stats" ))
291- # tiledbvcf.config_logging("trace")
292289 ds = tiledbvcf .Dataset (uri = os .path .join (tmp_path , "stats_test" ), mode = "w" )
293290 ds .create_dataset (enable_variant_stats = True , enable_allele_count = True )
294291 ds .ingest_samples (bgzipped_inputs )
@@ -337,15 +334,13 @@ def test_ingest_with_stats_v2(tmp_path, bgzip_and_index_vcfs):
337334 assert sum (df ["count" ] == (8 , 5 , 3 , 4 , 2 , 2 , 1 )) == 7
338335
339336
340- # Ok to skip is missing bcftools in Windows CI job
341337@skip_if_no_bcftools
342338def test_ingest_polyploid (tmp_path , bgzip_and_index_vcfs ):
343339 """Smoke Test: Verify ingestion and AF filtering on polyploid VCF data."""
344340 shutil .copytree (
345341 os .path .join (TESTS_INPUT_DIR , "polyploid" ), os .path .join (tmp_path , "polyploid" )
346342 )
347343 bgzipped_inputs = bgzip_and_index_vcfs (os .path .join (tmp_path , "polyploid" ))
348- # tiledbvcf.config_logging("trace")
349344 ds = tiledbvcf .Dataset (uri = os .path .join (tmp_path , "polyploid_test" ), mode = "w" )
350345 ds .create_dataset (enable_variant_stats = True )
351346 ds .ingest_samples (bgzipped_inputs )
@@ -356,20 +351,18 @@ def test_ingest_polyploid(tmp_path, bgzip_and_index_vcfs):
356351 attrs = ["contig" , "pos_start" , "id" , "qual" , "info_TILEDB_IAF" , "sample_name" ],
357352 set_af_filter = "<0.8" ,
358353 )
359- # print(data_frame)
360354
361355
362356def test_ingest_mode_separate (tmp_path ):
363357 """Verify contig_mode='separate' ingests only non-merged contigs."""
364- # tiledbvcf.config_logging("debug")
365358 # Create the dataset
366359 uri = os .path .join (tmp_path , "dataset_merging" )
367360 ds = tiledbvcf .Dataset (uri , mode = "w" )
368361 samples = [
369362 os .path .join (TESTS_INPUT_DIR , s ) for s in ["v2-DjrIAzkP-downsampled.vcf.gz" ]
370363 ]
371364 ds .create_dataset ()
372- # ingest only merged contigs (pseudo-contigs)
365+ # Ingest only merged contigs (pseudo-contigs)
373366 ds .ingest_samples (
374367 samples , contigs_to_keep_separate = ["chr1" ], contig_mode = "separate"
375368 )
0 commit comments