<reponame>populationgenomics/tob-wgs<gh_stars>0
"""Change the CRAM directory structure from versions to batches."""

import os
import subprocess

output = os.getenv('OUTPUT')
assert output and output == 'cram/batch0/'
output = 'gs://cpg-tob-wgs-archive/{output}'

subprocess.run(['gsutil', 'mv', 'gs://cpg-tob-wgs-archive/v0/*', output], check=True)

# Copy missing sample TOB1521.
subprocess.run(
    ['gsutil', 'mv', 'gs://cpg-tob-wgs-upload/TOB1521.cram*', output], check=True
)

"""Change the CRAM directory structure from versions to batches."""

import os
import subprocess

output = os.getenv('OUTPUT')
assert output and output == 'cram/batch0/'
output = 'gs://cpg-tob-wgs-archive/{output}'

subprocess.run(['gsutil', 'mv', 'gs://cpg-tob-wgs-archive/v0/*', output], check=True)

# Copy missing sample TOB1521.
subprocess.run(
    ['gsutil', 'mv', 'gs://cpg-tob-wgs-upload/TOB1521.cram*', output], check=True
)
Change the CRAM directory structure from versions to batches. # Copy missing sample TOB1521.