Files
reproduce_setup/pgx-main/copy_allele_file.py
2025-08-18 12:06:58 +02:00

11 lines
245 B
Python

import os
import shutil
x = "pgx_results"
with open("genes.txt", "r") as f:
genes = [g.strip() for g in f.readlines() if g.strip()]
for d in os.listdir(x):
for g in genes:
shutil.copy(f"data/{d[:-10]}{g}.alleles", f"{x}/{d}/")