Closed gregorjerse closed 3 months ago
@gregorjerse I have a problem accessing the position field of Variant model. You can test it yourself with the following code. As the migrations are made before every test, I suppose this is not the problem with the database being out of sync with Django models?
class SimpleGetVariant(ProcessBio):
slug = "test-variants-simple-get"
name = "Test variants"
process_type = "data:varianttest"
version = "1.0.0"
class Output:
"""Output fields."""
variant_positions = ListField(
IntegerField(), label="Variant positions", required=True
)
def run(self, inputs, outputs):
"""Start the process."""
variant_positions = [variant.position for variant in self.variant.iterate()]
outputs.variant_positions = variant_positions
Checklist
Additional guidelines
Processes
--maxlength
]).required = False
is not needed.Cmd()
for each call in the process (call of a tool, a Bash command, a Python script or an R script) and handle return codes.self.progress()
calls where appropriate.Commit and PR messages
Tests
genome_species.fa.gz
annotation_species.gtf.gz
adapters-name/type-source
.files/large
directory so it will be tracked with Git LFS.