scripts/validation/validate_genomes.py
def check_wgs_file_exists(wgs_accession, dest_dir):
    """
    Check if a WGS sequence file was copied in the correct location

    param wgs_accession: A valid Whole Genome Shotgun accession

    return: True if the file exists, False otherwise. Defaults to True
    """

    wgs_prefix = wgs_accession[0:6]

    wgs_file_loc = os.path.join(dest_dir,
                                wgs_prefix + ".fasta.gz")

    if not os.path.exists(wgs_file_loc):
        return False

    return True

    Check if a WGS sequence file was copied in the correct location

    param wgs_accession: A valid Whole Genome Shotgun accession

    return: True if the file exists, False otherwise. Defaults to True
    
Check if a WGS sequence file was copied in the correct location
param wgs_accession: A valid Whole Genome Shotgun accession

True if the file exists, False otherwise. Defaults to True
Check if a WGS sequence file was copied in the correct location param wgs_accession : A valid Whole Genome Shotgun accession True if the file exists False otherwise . Defaults to True
def check_wgs_file_exists(wgs_accession, dest_dir):
    wgs_prefix = wgs_accession[0:6]
    wgs_file_loc = os.path.join(dest_dir,
                                wgs_prefix + ".fasta.gz")
    if not os.path.exists(wgs_file_loc):
        return False
    return True
def check_wgs_file_exists ( wgs_accession , dest_dir ) : wgs_prefix = wgs_accession [ 0 : 6 ] wgs_file_loc = os . path . join ( dest_dir , wgs_prefix + ".fasta.gz" ) if not os . path . exists ( wgs_file_loc ) : return False return True
Check if a WGS sequence file was copied in the correct location
param wgs_accession: A valid Whole Genome Shotgun accession
Check if a WGS sequence file was copied in the correct location param wgs_accession : A valid Whole Genome Shotgun accession
"""
    Check if a WGS sequence file was copied in the correct location

    param wgs_accession: A valid Whole Genome Shotgun accession

    return: True if the file exists, False otherwise. Defaults to True
    """
wgs_accession
dest_dir