Skip to content

Commit 65a876c

Browse files
kMutageneclaude
andcommitted
refactor: rename Project/Sample -> BioProject/BioSample for INSDC clarity
In INSDC terminology, BioProject and BioSample are the cross-archive entity names (visible to data submitters via the PRJ*/SAM* accession prefixes), while the SRA/ENA XML schema uses `Project` and `Sample` internally. Rename to the cross-archive names so the library surface matches what biology users already know. Substitution rules added to typename-substitutions.txt: E) Names starting with `Project` -> `BioProject*`; names starting with `Sample` -> `BioSample*`, EXCEPT `SampleGroup*` which is a distinct entity (the ENA.sample_group.xsd schema). F) Collapse the trivially duplicated stems that the schema element names introduced, before the Bio prefix: ProjectProjectAttributes -> BioProjectAttributes SampleSampleName -> BioSampleName (etc. for Links/Name/Attributes pairs) F# IO layer follows: - module BioProject now exposes `type BioProject` (was `type Project`) - module Sample renamed to module BioSample (file Sample.fs -> BioSample.fs); exposes `type BioSample` (was `type Sample`) - Tests.fs updated to construct BioProject.BioProject() / BioSample.BioSample() SampleGroup, SampleRef inside other entities (e.g. AnalysisSampleRef), and non-leading occurrences of "Project"/"Sample" are intentionally unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 58b8159 commit 65a876c

31 files changed

Lines changed: 175 additions & 165 deletions

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/Project.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProject.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace BioFSharp.FileFormats.INSDC
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
2121
[System.Xml.Serialization.XmlRootAttribute("PROJECT", Namespace="")]
22-
public partial class Project : BioFSharp.FileFormats.INSDC.Object
22+
public partial class BioProject : BioFSharp.FileFormats.INSDC.Object
2323
{
2424

2525
/// <summary>
@@ -83,12 +83,12 @@ public bool CollaboratorsSpecified
8383
}
8484

8585
/// <summary>
86-
/// <para xml:lang="en">Initializes a new instance of the <see cref="Project" /> class.</para>
86+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProject" /> class.</para>
8787
/// </summary>
88-
public Project()
88+
public BioProject()
8989
{
9090
this._collaborators = new System.Collections.ObjectModel.Collection<string>();
91-
this._relatedProjects = new System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject>();
91+
this._relatedProjects = new System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject>();
9292
this._projectLinks = new System.Collections.ObjectModel.Collection<BioFSharp.FileFormats.INSDC.Link>();
9393
this._projectAttributes = new System.Collections.ObjectModel.Collection<BioFSharp.FileFormats.INSDC.Attribute>();
9494
}
@@ -98,25 +98,25 @@ public Project()
9898
/// </summary>
9999
[System.ComponentModel.DescriptionAttribute("A project for grouping submitted data together.")]
100100
[System.Xml.Serialization.XmlElementAttribute("SUBMISSION_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
101-
public ProjectSubmissionProject SubmissionProject { get; set; }
101+
public BioProjectSubmissionProject SubmissionProject { get; set; }
102102

103103
/// <summary>
104104
/// <para>A project for grouping other projects together.</para>
105105
/// </summary>
106106
[System.ComponentModel.DescriptionAttribute("A project for grouping other projects together.")]
107107
[System.Xml.Serialization.XmlElementAttribute("UMBRELLA_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
108-
public ProjectUmbrellaProject UmbrellaProject { get; set; }
108+
public BioProjectUmbrellaProject UmbrellaProject { get; set; }
109109

110110
[System.Xml.Serialization.XmlIgnoreAttribute()]
111-
private System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject> _relatedProjects;
111+
private System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject> _relatedProjects;
112112

113113
/// <summary>
114114
/// <para>Other projects related to this project.</para>
115115
/// </summary>
116116
[System.ComponentModel.DescriptionAttribute("Other projects related to this project.")]
117117
[System.Xml.Serialization.XmlArrayAttribute("RELATED_PROJECTS", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
118118
[System.Xml.Serialization.XmlArrayItemAttribute("RELATED_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
119-
public System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject> RelatedProjects
119+
public System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject> RelatedProjects
120120
{
121121
get
122122
{

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectProjectAttributes.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectAttributes.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectProjectAttributes", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectAttributes", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectProjectAttributes
21+
public partial class BioProjectAttributes
2222
{
2323

2424
[System.Xml.Serialization.XmlIgnoreAttribute()]
@@ -39,9 +39,9 @@ private set
3939
}
4040

4141
/// <summary>
42-
/// <para xml:lang="en">Initializes a new instance of the <see cref="ProjectProjectAttributes" /> class.</para>
42+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProjectAttributes" /> class.</para>
4343
/// </summary>
44-
public ProjectProjectAttributes()
44+
public BioProjectAttributes()
4545
{
4646
this._projectAttribute = new System.Collections.ObjectModel.Collection<BioFSharp.FileFormats.INSDC.Attribute>();
4747
}

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectCollaborators.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectCollaborators.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectCollaborators", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectCollaborators", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectCollaborators
21+
public partial class BioProjectCollaborators
2222
{
2323

2424
[System.Xml.Serialization.XmlIgnoreAttribute()]
@@ -39,9 +39,9 @@ private set
3939
}
4040

4141
/// <summary>
42-
/// <para xml:lang="en">Initializes a new instance of the <see cref="ProjectCollaborators" /> class.</para>
42+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProjectCollaborators" /> class.</para>
4343
/// </summary>
44-
public ProjectCollaborators()
44+
public BioProjectCollaborators()
4545
{
4646
this._collaborator = new System.Collections.ObjectModel.Collection<string>();
4747
}

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectProjectLinks.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectLinks.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectProjectLinks", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectLinks", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectProjectLinks
21+
public partial class BioProjectLinks
2222
{
2323

2424
[System.Xml.Serialization.XmlIgnoreAttribute()]
@@ -39,9 +39,9 @@ private set
3939
}
4040

4141
/// <summary>
42-
/// <para xml:lang="en">Initializes a new instance of the <see cref="ProjectProjectLinks" /> class.</para>
42+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProjectLinks" /> class.</para>
4343
/// </summary>
44-
public ProjectProjectLinks()
44+
public BioProjectLinks()
4545
{
4646
this._projectLink = new System.Collections.ObjectModel.Collection<BioFSharp.FileFormats.INSDC.Link>();
4747
}

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectRelatedProjects.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectRelatedProjects.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectRelatedProjects", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectRelatedProjects", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectRelatedProjects
21+
public partial class BioProjectRelatedProjects
2222
{
2323

2424
[System.Xml.Serialization.XmlIgnoreAttribute()]
25-
private System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject> _relatedProject;
25+
private System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject> _relatedProject;
2626

2727
[System.ComponentModel.DataAnnotations.RequiredAttribute(AllowEmptyStrings=true)]
2828
[System.Xml.Serialization.XmlElementAttribute("RELATED_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
29-
public System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject> RelatedProject
29+
public System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject> RelatedProject
3030
{
3131
get
3232
{
@@ -39,11 +39,11 @@ private set
3939
}
4040

4141
/// <summary>
42-
/// <para xml:lang="en">Initializes a new instance of the <see cref="ProjectRelatedProjects" /> class.</para>
42+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProjectRelatedProjects" /> class.</para>
4343
/// </summary>
44-
public ProjectRelatedProjects()
44+
public BioProjectRelatedProjects()
4545
{
46-
this._relatedProject = new System.Collections.ObjectModel.Collection<ProjectRelatedProjectsRelatedProject>();
46+
this._relatedProject = new System.Collections.ObjectModel.Collection<BioProjectRelatedProjectsRelatedProject>();
4747
}
4848
}
4949
}

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectRelatedProjectsRelatedProject.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectRelatedProjectsRelatedProject.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectRelatedProjectsRelatedProject", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectRelatedProjectsRelatedProject", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectRelatedProjectsRelatedProject
21+
public partial class BioProjectRelatedProjectsRelatedProject
2222
{
2323

2424
[System.Xml.Serialization.XmlElementAttribute("PARENT_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
25-
public ProjectRelatedProjectsRelatedProjectParentProject ParentProject { get; set; }
25+
public BioProjectRelatedProjectsRelatedProjectParentProject ParentProject { get; set; }
2626

2727
[System.Xml.Serialization.XmlElementAttribute("CHILD_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
28-
public ProjectRelatedProjectsRelatedProjectChildProject ChildProject { get; set; }
28+
public BioProjectRelatedProjectsRelatedProjectChildProject ChildProject { get; set; }
2929

3030
[System.Xml.Serialization.XmlElementAttribute("PEER_PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
31-
public ProjectRelatedProjectsRelatedProjectPeerProject PeerProject { get; set; }
31+
public BioProjectRelatedProjectsRelatedProjectPeerProject PeerProject { get; set; }
3232
}
3333
}

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectRelatedProjectsRelatedProjectPeerProject.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectRelatedProjectsRelatedProjectChildProject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectRelatedProjectsRelatedProjectPeerProject", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectRelatedProjectsRelatedProjectChildProject", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectRelatedProjectsRelatedProjectPeerProject
21+
public partial class BioProjectRelatedProjectsRelatedProjectChildProject
2222
{
2323

2424
/// <summary>

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectRelatedProjectsRelatedProjectParentProject.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectRelatedProjectsRelatedProjectParentProject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectRelatedProjectsRelatedProjectParentProject", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectRelatedProjectsRelatedProjectParentProject", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectRelatedProjectsRelatedProjectParentProject
21+
public partial class BioProjectRelatedProjectsRelatedProjectParentProject
2222
{
2323

2424
/// <summary>

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectRelatedProjectsRelatedProjectChildProject.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectRelatedProjectsRelatedProjectPeerProject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace BioFSharp.FileFormats.INSDC
1515

1616
[System.CodeDom.Compiler.GeneratedCodeAttribute("XmlSchemaClassGenerator", "3.0.1270.0")]
1717
[System.SerializableAttribute()]
18-
[System.Xml.Serialization.XmlTypeAttribute("ProjectRelatedProjectsRelatedProjectChildProject", Namespace="", AnonymousType=true)]
18+
[System.Xml.Serialization.XmlTypeAttribute("BioProjectRelatedProjectsRelatedProjectPeerProject", Namespace="", AnonymousType=true)]
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
21-
public partial class ProjectRelatedProjectsRelatedProjectChildProject
21+
public partial class BioProjectRelatedProjectsRelatedProjectPeerProject
2222
{
2323

2424
/// <summary>

src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/ProjectSet.cs renamed to src/BioFSharp.FileFormats.INSDC/Generated/BioFSharp.FileFormats.INSDC/BioProjectSet.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ namespace BioFSharp.FileFormats.INSDC
1919
[System.Diagnostics.DebuggerStepThroughAttribute()]
2020
[System.ComponentModel.DesignerCategoryAttribute("code")]
2121
[System.Xml.Serialization.XmlRootAttribute("PROJECT_SET", Namespace="")]
22-
public partial class ProjectSet
22+
public partial class BioProjectSet
2323
{
2424

2525
[System.Xml.Serialization.XmlIgnoreAttribute()]
26-
private System.Collections.ObjectModel.Collection<Project> _project;
26+
private System.Collections.ObjectModel.Collection<BioProject> _project;
2727

2828
[System.ComponentModel.DataAnnotations.RequiredAttribute(AllowEmptyStrings=true)]
2929
[System.Xml.Serialization.XmlElementAttribute("PROJECT", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
30-
public System.Collections.ObjectModel.Collection<Project> Project
30+
public System.Collections.ObjectModel.Collection<BioProject> Project
3131
{
3232
get
3333
{
@@ -40,11 +40,11 @@ private set
4040
}
4141

4242
/// <summary>
43-
/// <para xml:lang="en">Initializes a new instance of the <see cref="ProjectSet" /> class.</para>
43+
/// <para xml:lang="en">Initializes a new instance of the <see cref="BioProjectSet" /> class.</para>
4444
/// </summary>
45-
public ProjectSet()
45+
public BioProjectSet()
4646
{
47-
this._project = new System.Collections.ObjectModel.Collection<Project>();
47+
this._project = new System.Collections.ObjectModel.Collection<BioProject>();
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)