Skip to content

Commit

Permalink
Skip instantiating SS3Sample for aborted samples
Browse files Browse the repository at this point in the history
  • Loading branch information
glrs committed Nov 29, 2024
1 parent 1033855 commit 4a40f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/realms/smartseq3/ss3_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ def extract_samples(self):
samples = []

for sample_id, sample_data in self.doc.get("samples", {}).items():
sample_status = sample_data.get("details", {}).get("status_(manual)", "")
if sample_status.lower() == "aborted":
logging.info(f"Skipping aborted sample '{sample_id}'.")
continue # Skip this sample
sample = SS3Sample(
sample_id, sample_data, self.project_info, self.config, self.ydm
)
Expand Down

0 comments on commit 4a40f68

Please sign in to comment.