Scripts/CNV_vis.py
def vcf_calls():
    """ The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file.

    :return regions: A list of coordinates specified in the vcf file.
    """
    vcf_file = pysam.VariantFile(args.vcf)
    regions = []

    for call in vcf_file:
        chr = call.chrom
        start = str(call.start - args.capture_region)
        stop = str(call.stop + args.capture_region)
        region = [chr, start, stop]
        regions.append(region)

    return regions
 The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file.

    :return regions: A list of coordinates specified in the vcf file.
    
The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file.
The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file .
def vcf_calls():
    vcf_file = pysam.VariantFile(args.vcf)
    regions = []
    for call in vcf_file:
        chr = call.chrom
        start = str(call.start - args.capture_region)
        stop = str(call.stop + args.capture_region)
        region = [chr, start, stop]
        regions.append(region)
    return regions
def vcf_calls ( ) : vcf_file = pysam . VariantFile ( args . vcf ) regions = [ ] for call in vcf_file : chr = call . chrom start = str ( call . start - args . capture_region ) stop = str ( call . stop + args . capture_region ) region = [ chr , start , stop ] regions . append ( region ) return regions
The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file.
The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file .
""" The vcf_calls function opens a vcf file and retrieves al the reqions called in the vcf file.

    :return regions: A list of coordinates specified in the vcf file.
    """
A list of coordinates specified in the vcf file.
A list of coordinates specified in the vcf file .
regions