Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schema for sample #84

Merged
merged 1 commit into from
Jun 27, 2016
Merged
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
28 changes: 28 additions & 0 deletions src/main/resources/avro/bdg.avdl
Original file line number Diff line number Diff line change
Expand Up @@ -1180,4 +1180,32 @@ record Feature {
*/
map<string> attributes = {};
}

/**
Sample.
*/
record Sample {

/**
Identifier for this sample, e.g. IDENTIFIERS &rarr; PRIMARY_ID or other
subelements of IDENTIFERS in SRA metadata, sample tag SM in read group @RG header lines
in SAM/BAM files, or sample ID from the header or ##SAMPLE=&lt;ID=S_ID meta-information
lines in VCF files.
*/
union { null, string } sampleId = null;

/**
Descriptive name for this sample, e.g. SAMPLE_NAME &rarr; TAXON_ID, COMMON_NAME,
INDIVIDUAL_NAME, or other subelements of SAMPLE_NAME in SRA metadata.
*/
union { null, string } name = null;

/**
Map of attributes. Common attributes may include: SRA metadata not mentioned above,
e.g. SAMPLE &rarr; TITLE, SAMPLE &rarr; DESCRIPTION, and SAMPLE_ATTRIBUTES; ENA default
sample checklist attributes such as cell_type, dev_stage, and germline; and Genomes,
Mixture, and Description from sample meta-information lines in VCF files.
*/
map<string> attributes = {};
}
}