blue_cwl¶
blue_cwl.
- class blue_cwl.Variant(*, description: str | None = None, wasAttributedTo: List[Agent] | None = None, wasGeneratedBy: Identifiable | None = None, wasDerivedFrom: List[Identifiable] | None = None, dateCreated: datetime | None = None, contribution: List[Contribution] | None = None, name: str, generatorName: str, variantName: str, version: str, distribution: DataDownload)¶
Variant class.
Method generated by attrs for class Variant.
- property definition: CommandLineTool | Workflow¶
Return the cwl definition for this variant.
- evolve(**changes) Variant¶
Create a new Variant instance with updated attributes.
Note: if ‘path’ is passed, a local distribution will be added in the new instance.
- classmethod from_file(filepath: Path, generator_name: str, variant_name: str, version: str) Variant¶
Create Variant object from variant file definition.
- classmethod from_id(resource_id: str, *, base: str | None = None, org: str | None = None, proj: str | None = None, use_auth: str | None = None, **kwargs)¶
Load entity from resource id.
- classmethod from_registry(generator_name: str, variant_name: str, version: str) Variant¶
Create Variant object from registry entry.
- classmethod from_search(generator_name: str, variant_name: str, version: str, *, base: str | None = None, org: str | None = None, proj: str | None = None, token: str | None = None) Variant¶
Create a Variant instance by searching the Knowledge Graph.
- get_content(*, token: str | None = None) dict¶
Return definition content.
- property overview: str¶
Return detailed representation.
- publish(*, update: bool = False, base: str | None = None, org: str | None = None, proj: str | None = None, token: str | None = None, **kwargs)¶
Publish or update Variant entity.
- property tool_definition: CommandLineTool | Workflow¶
Return the cwl definition for this variant.