Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/data/invalid/MagsAnalysis_invalid-newer-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
id: nmdc:wfmag-11-547rwq94.1
ended_at_time: '2021-09-15T10:13:20+00:00'
execution_resource: NERSC-Perlmutter
processing_institution: NMDC
git_url: git_url1
name: MAG analysis for project ABCD
started_at_time: '2021-08-05T14:48:51+00:00'
type: nmdc:MagsAnalysis
was_informed_by:
- "nmdc:omprc-11-547rwq95"
has_input:
- "nmdc:dobj-11-547rwq96"
has_output:
- "nmdc:dobj-11-547rwq97"
- "nmdc:dobj-11-547rwq98"
mags_list:
- bin_name: bins.10
bin_quality: LQ
members_id:
- nmdc:wfmgas-13-56028x05.1_7_c1
- nmdc:wfmgas-13-56028x05.1_9_c1
type: nmdc:MagBin
eukaryotic_evaluation:
type: nmdc:EukEval
completeness: 14.71
contamination: 8.82
ncbi_lineage_tax_ids: "1-131567-2759-2611352-33682-191814-2603949"
ncbi_lineage: "root,cellular organisms,Eukaryota,Discoba,Euglenozoa,Diplonemea,Diplonemidae"
superseded_by: nmdc:wfmb-11-547rwq94.2
3 changes: 2 additions & 1 deletion src/data/valid/MagsAnalysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ mags_list:
completeness: 14.71
contamination: 8.82
ncbi_lineage_tax_ids: "1-131567-2759-2611352-33682-191814-2603949"
ncbi_lineage: "root,cellular organisms,Eukaryota,Discoba,Euglenozoa,Diplonemea,Diplonemidae"
ncbi_lineage: "root,cellular organisms,Eukaryota,Discoba,Euglenozoa,Diplonemea,Diplonemidae"
superseded_by: nmdc:wfmag-11-547rwq94.2
10 changes: 10 additions & 0 deletions src/schema/basic_classes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ classes:
- url
- was_generated_by
- in_manifest
- superseded_by
slot_usage:
name:
required: true
Expand All @@ -387,6 +388,7 @@ classes:
required: true
data_category:
required: true

DataEmitterProcess:
class_uri: nmdc:DataEmitterProcess
is_a: PlannedProcess
Expand Down Expand Up @@ -462,6 +464,7 @@ classes:
- version
- was_informed_by
- processing_institution_workflow_metadata
- superseded_by
rules:
- title: qc_status_pass_has_output_required
description: >-
Expand Down Expand Up @@ -687,6 +690,13 @@ slots:
description: >-
The type of planned process that the protocol describes.

superseded_by:
range: WorkflowExecution
description: >-
Links a DataObject or WorkflowExecution record to a newer WorkflowExecution that
supersedes it, marking this record as outdated. The linked WorkflowExecution or
resultant DataObjects should be used in favor of this record.

enums:
CreditEnum:
permissible_values:
Expand Down
51 changes: 51 additions & 0 deletions src/schema/workflow_execution_activity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: MetagenomeAssembly
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmgas-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

MetatranscriptomeAssembly:
class_uri: nmdc:MetatranscriptomeAssembly
Expand Down Expand Up @@ -105,6 +110,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: MetatranscriptomeAssembly
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmtas-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

MetatranscriptomeAnnotation:
class_uri: nmdc:MetatranscriptomeAnnotation
Expand Down Expand Up @@ -137,6 +147,11 @@ classes:
structured_pattern:
syntax: "^gold:Ga[0-9]+$"
interpolated: true
superseded_by:
range: MetatranscriptomeAnnotation
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmtan-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

MetatranscriptomeExpressionAnalysis:
is_a: WorkflowExecution
Expand All @@ -157,6 +172,12 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: MetatranscriptomeExpressionAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmtex-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

class_uri: nmdc:MetatranscriptomeExpressionAnalysis


Expand Down Expand Up @@ -186,6 +207,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: MagsAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmag-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

ReadQcAnalysis:
class_uri: nmdc:ReadQcAnalysis
Expand All @@ -210,6 +236,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: ReadQcAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfrqc-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

ReadBasedTaxonomyAnalysis:
class_uri: nmdc:ReadBasedTaxonomyAnalysis
Expand All @@ -227,6 +258,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgns)-{id_shoulder}-{id_blade}$"
interpolated: true
range: NucleotideSequencing
superseded_by:
range: ReadBasedTaxonomyAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfrbt-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

MetabolomicsAnalysis:
class_uri: nmdc:MetabolomicsAnalysis
Expand All @@ -246,6 +282,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgms)-{id_shoulder}-{id_blade}$"
interpolated: true
range: MassSpectrometry
superseded_by:
range: MetabolomicsAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmb-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

MetaproteomicsAnalysis:
class_uri: nmdc:MetaproteomicsAnalysis
Expand All @@ -263,6 +304,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgms)-{id_shoulder}-{id_blade}$"
interpolated: true
range: MassSpectrometry
superseded_by:
range: MetaproteomicsAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfmp-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

NomAnalysis:
class_uri: nmdc:NomAnalysis
Expand All @@ -280,6 +326,11 @@ classes:
syntax: "{id_nmdc_prefix}:(omprc|dgms)-{id_shoulder}-{id_blade}$"
interpolated: true
range: MassSpectrometry
superseded_by:
range: NomAnalysis
structured_pattern:
syntax: "{id_nmdc_prefix}:wfnom-{id_shoulder}-{id_blade}{id_version}$"
interpolated: true

slots:

Expand Down