Created
October 28, 2022 19:13
-
-
Save aofarrel/f013cee20423f996445c3b865be8b029 to your computer and use it in GitHub Desktop.
Download files per shard from Terra.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| vcfs = [] | |
| bgas = [] | |
| diffs = [] | |
| for vcf in vcfs: | |
| for bga in bgas: | |
| for diff in diffs: | |
| split = diff.split("/") | |
| shard = split[-3:][0] | |
| os.system(f"mkdir {shard}") | |
| os.system(f"cd {shard}") | |
| os.system(f"gsutil cp {diff} .") | |
| os.system(f"gsutil cp {bga} .") | |
| os.system(f"gsutil cp {vcf} .") | |
| os.system("cd ..") | |
| exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment