Skip to content

Commit

Permalink
Fix wrongly mandatory counts_file column in counts_design
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Apr 22, 2024
1 parent 700dcc3 commit bb516f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def format_yaml_like(data: dict, indent: int = 0) -> str:
df = pd.read_csv("$samplesheet", index_col=0, header=0)

df.index.name = "experiment_accession"
df = df.drop("counts_file", axis=1)
if "counts_file" in df.columns:
df = df.drop("counts_file", axis=1)

# Keep only columns with more than one unique value
df = df.loc[:, df.nunique() > 1]
Expand Down

0 comments on commit bb516f1

Please sign in to comment.