Skip to content

Commit

Permalink
adding initial report script #90
Browse files Browse the repository at this point in the history
  • Loading branch information
louisegrimble committed Jan 30, 2025
1 parent eed0cd3 commit de49f38
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions solosis/commands/irods/imeta_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,10 @@ def cmd(sample, samplefile):

# Check if output exists
if os.path.exists(cellranger_path):
if overwrite:
echo_message(
f"Overwriting existing outputs for sample '{sample}' in {cellranger_path}.",
"warn",
)
try:
# Remove the directory and its contents
# subprocess.run(["rm", "-rf", cellranger_path], check=True)
echo_message(
f"[DRY RUN] Would remove directory: '{cellranger_path}'.",
"info",
)
except subprocess.CalledProcessError as e:
echo_message(
f"Failed to remove existing directory '{cellranger_path}': {e.stderr}",
"error",
)
return
samples_to_download.append(sample)
else:
echo_message(
f"Cellranger outputs already downloaded for sample '{sample}' in {cellranger_path}. Skipping download.",
"warn",
)
echo_message(
f"Overwriting existing outputs for sample '{sample}' in {cellranger_path}.",
"warn",
)
else:
samples_to_download.append(sample)

Expand Down

0 comments on commit de49f38

Please sign in to comment.