예제 #1
0
def mirror_sample(sample_accession):
    import ena
    filetable = ena.get_project_reads_table(sample_accession,
                                            as_pandas_DataFrame=True)
    filetable = ena.expand_fastq_columns(filetable)
    mirror_all_files(study_accession, filetable, MIRROR_BASEDIR, use=DL_METHOD)
    return filetable
예제 #2
0
파일: jugfile.py 프로젝트: aniag/ena-mirror
def create_mirror(study_accession, target_directory):
    import ena
    filetable = ena.get_project_reads_table(study_accession, as_pandas_DataFrame=True)
    filetable = ena.expand_fastq_columns(filetable)
    mirror_all_files(filetable, MIRROR_BASEDIR, use_aspera=USE_ASPERA)
    if target_directory != '*':
        build_link_structure(filetable, MIRROR_BASEDIR, target_directory, study_accession)
    return filetable
예제 #3
0
def create_mirror(study_accession, target_directory):
    import ena
    filetable = ena.get_project_reads_table(study_accession, as_pandas_DataFrame=True)
    filetable = ena.expand_fastq_columns(filetable)
    mirror_all_files(filetable, MIRROR_BASEDIR, use_aspera=USE_ASPERA)
    if target_directory != '*':
        try:
            build_link_structure(filetable, MIRROR_BASEDIR, target_directory, study_accession)
        except IndexError:
            print("Failed to create link structure for:", study_accession, file=sys.stderr)
            raise
    return filetable
예제 #4
0
def mirror_sample(sample_accession):
    import ena
    filetable = ena.get_project_reads_table(sample_accession, as_pandas_DataFrame=True)
    filetable = ena.expand_fastq_columns(filetable)
    mirror_all_files(filetable, MIRROR_BASEDIR, use_aspera=USE_ASPERA)
    return filetable