Skip to content

Commit

Permalink
Merge pull request #171 from hammerlab/changes-for-avocado-to-build
Browse files Browse the repository at this point in the history
Add back in allele dosage for genotypes.
  • Loading branch information
fnothaft committed Mar 12, 2014
2 parents aa658ca + ef1825e commit 5dd3a46
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class NormalizationUtilsSuite extends FunSuite {

println(new_cigar)
assert(new_cigar.toString == "10M10D10M")
assert(read.samtoolsCigar.getReadLength === new_cigar.getReadLength)
// TODO: the implicit for ADAMRecord->RichADAMRecord doesn't get
// called here for some reason.
assert(RichADAMRecord(read).samtoolsCigar.getReadLength === new_cigar.getReadLength)
}

test("shift an indel left by 0 in a cigar") {
Expand Down
17 changes: 17 additions & 0 deletions adam-format/src/main/resources/avro/adam.avdl
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,22 @@ record ADAMContig {
union { null, string } referenceURL = null;
}

enum VariantType {
SNP,
MNP,
Insertion,
Deletion,
Complex,
SV
}

record ADAMVariant {
union { null, ADAMContig } contig = null;
union { null, long } position = null;
string referenceAllele;
string variantAllele;
// enum to describe type of variant called
union { null, VariantType } variantType = null;
}

enum ADAMGenotypeAllele {
Expand Down Expand Up @@ -227,6 +238,12 @@ record ADAMGenotype {
// Phred-scaled. Always length 3 since we are not multiallelic.
array<int> genotypeLikelihoods = null;

// Allele dosage
union { null, float } expectedAlleleDosage = null;

// number of reads mapped at site on forward strand
union { null, int } readsMappedForwardStrand = null;

// In the ADAM world we split multiallelic VCF lines into multiple
// single-alternate records. This bit is set if that happened for this
// record.
Expand Down

0 comments on commit 5dd3a46

Please sign in to comment.