test_util.py 766 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 13 2020

@author: Yoann Pradat

    CentraleSupelec
    MICS laboratory
    9 rue Juliot Curie, Gif-Sur-Yvette, 91190 France

Test functions in util.py module.
"""

import os
15
from .._util import load_vcf
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

def test_load_vcf():
    folder = "./examples/data/TCGA_GA/"

    #### Indel with header
    file = "TCGA-A1-A0SB_db9d40fb-bfce-4c3b-a6c2-41c5c88982f1_a3254f8e-3bbd-42fc-abea-a5f25b7648b3.indel.capture.tcga.vcf"
    df_vcf = load_vcf(
        filepath = os.path.join(folder, file)
    )

    #### SNV with header
    file = "TCGA-A1-A0SB_db9d40fb-bfce-4c3b-a6c2-41c5c88982f1_a3254f8e-3bbd-42fc-abea-a5f25b7648b3.oxoG.snp.capture.tcga.vcf"
    df_vcf = load_vcf(
        filepath = os.path.join(folder, file)
    )