Skip to content

Commit

Permalink
Added some more debug stuff for samplecomponents in snakemake
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskiil committed Jan 5, 2024
1 parent eb44e28 commit 9095384
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bifrost_chewbbaca/pipeline.smk
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ try:
raise Exception("invalid component passed") # component needs to be in database
samplecomponent_ref = SampleComponentReference(name=SampleComponentReference.name_generator(sample.to_reference(), component.to_reference()))
samplecomponent = SampleComponent.load(samplecomponent_ref)
if samplecomponent is None:
print(f"SampleComponent: {samplecomponent}\nCreating New")
try:
print(samplecomponent.has_requirements())
except Exception:
samplecomponent:SampleComponent = SampleComponent(sample_reference=sample.to_reference(), component_reference=component.to_reference()) # schema 2.1
print(f"{samplecomponent.json}")
common.set_status_and_save(sample, samplecomponent, "Running")
Expand Down

0 comments on commit 9095384

Please sign in to comment.