scripts/export/genomes/ena_genome_downloader.py
def fetch_genome_from_ENA(genome_accession, dest_dir):
    """
    Uses ENAs enaBrowserTools to download a specific directory

    genome_accession: A valid ENA accession to Download
    dest_dir: Destination directory where genome will be downloaded

    return: void
    """

    exec_path = os.path.join(gc.ENA_TOOLKIT, 'enaDataGet')
    cmd = "%s -f fasta -m -d %s %s" % (exec_path, dest_dir, genome_accession)

    subprocess.call(cmd, shell=True)

    Uses ENAs enaBrowserTools to download a specific directory

    genome_accession: A valid ENA accession to Download
    dest_dir: Destination directory where genome will be downloaded

    return: void
    
Uses ENAs enaBrowserTools to download a specific directory
genome_accession: A valid ENA accession to Download
dest_dir: Destination directory where genome will be downloaded

void
Uses ENAs enaBrowserTools to download a specific directory genome_accession : A valid ENA accession to Download dest_dir : Destination directory where genome will be downloaded void
def fetch_genome_from_ENA(genome_accession, dest_dir):
    exec_path = os.path.join(gc.ENA_TOOLKIT, 'enaDataGet')
    cmd = "%s -f fasta -m -d %s %s" % (exec_path, dest_dir, genome_accession)
    subprocess.call(cmd, shell=True)
def fetch_genome_from_ENA ( genome_accession , dest_dir ) : exec_path = os . path . join ( gc . ENA_TOOLKIT , 'enaDataGet' ) cmd = "%s -f fasta -m -d %s %s" % ( exec_path , dest_dir , genome_accession ) subprocess . call ( cmd , shell = True )
Uses ENAs enaBrowserTools to download a specific directory
genome_accession: A valid ENA accession to Download
dest_dir: Destination directory where genome will be downloaded
Uses ENAs enaBrowserTools to download a specific directory genome_accession : A valid ENA accession to Download dest_dir : Destination directory where genome will be downloaded
"""
    Uses ENAs enaBrowserTools to download a specific directory

    genome_accession: A valid ENA accession to Download
    dest_dir: Destination directory where genome will be downloaded

    return: void
    """
genome_accession
dest_dir