Commit 7e13b479 authored by Erwan DELAGE's avatar Erwan DELAGE

Ne pas dupliquer les échantillons en créant le fichier contextuel par défaut

parent 487d4402
......@@ -243,6 +243,7 @@ def check_context():
df = pd.read_csv(config["global"]["manifest"], index_col=0)
df["sample_id"] = df.index
df = df[["sample_id"]]
df = df.drop_duplicates()
context_filename = config["global"]["manifest"].rsplit("/", 1)[0] + "/context.tsv"
config["global"]["context"] = context_filename
df.to_csv(context_filename, sep="\t")
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment