Skip to content

Commit

Permalink
update biospi run. wrong meta file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Montout committed Jan 9, 2024
1 parent 1a2d64e commit aacf43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main(

datasets = sorted([x for x in Path(out_dir).glob("**/*/samples.csv")])
print(f"datasets={datasets}")
meta_columns = [pd.read_csv(x).values.flatten().tolist() for x in Path(out_dir).glob("**/*/meta_columns.csv")]
meta_columns = sorted([pd.read_csv(x).values.flatten().tolist() for x in Path(out_dir).glob("**/*/meta_columns.csv")])

assert len(datasets) > 0, f"There is no dataset in {out_dir}."

Expand All @@ -72,6 +72,7 @@ def main(
# if int(dataset.parent.parent.name.split('_')[-1]) < 4: #todo remove
# continue
print(f"dataset={dataset}")
print(f"meta_columns={meta_columns}")
if ml_exist: #if you already ran the classification pipeline on hpc
print("Parsing existing results...")
ml_out = [x.parent for x in dataset.parent.parent.glob("**/fold_data")]
Expand Down

0 comments on commit aacf43b

Please sign in to comment.