INNER CODE UNIT · Python

parse_summary

kblin/ncbi-genome-download · ncbi_genome_download/core.py:437

def parse_summary(summary_file):
    """Parse the summary file from TSV format to a csv DictReader-like object."""
    return SummaryReader(summary_file)


def downloadjob_creator_caller(args):  # pragma: no cover  # No point testing this without testing multiprocessing d/ls
    """Call the download job function from a worker pool runner."""
    return create_downloadjob(*args)


def create_downloadjob(entry, domain, config):
    """Create download jobs for all file formats from a summary file entry."""
    logger = logging.getLogger("ncbi-genome-download")
    logger.info('Checking record %r', entry['assembly_accession'])
    full_output_dir = create_dir(entry, config.section, domain, config.output, config.flat_output)

    symlink_path = None
    if config.human_readable:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…