Skip to content

Commit

Permalink
Drop exclusive screen/experiment assumption in stats.py as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Feb 9, 2021
1 parent 7a1e236 commit b8f62df
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ def studies(study_list, default_columns=["name", "path"]):
continue

logging.info("Finding containers for study %s" % study)
target = "Plate"
containers = glob(join(study, "screen[A-Z]"))
if containers:
assert not glob(join(study, "experiment*")), study
else:
target = "Dataset"
containers = glob(join(study, "experiment[A-Z]"))
containers = glob(
join(study, "screen[A-Z]")) + glob(join(study, "experiment[A-Z]"))

assert len(containers) >= 1
for container in sorted(containers):
if container.startswith(join(study, "screen")):
target = "Plate"
else:
target = "Dataset"
bulks = glob(join(container, "*-bulk.yml"))
bulks += glob(join(container, "**/*-bulk.yml"))
for bulk in bulks:
Expand Down

0 comments on commit b8f62df

Please sign in to comment.