Exemple #1
0
        //constructors
        public CosmicItem(ExtendedBinaryReader reader)
        {
            if (reader == null)
            {
                return;
            }

            ID          = reader.ReadAsciiString();
            SaAltAllele = reader.ReadAsciiString();
            AltAllele   = SupplementaryAnnotationUtilities.ReverseSaReducedAllele(SaAltAllele);
            RefAllele   = reader.ReadAsciiString();
            Gene        = reader.ReadAsciiString();
            SampleCount = reader.ReadOptNullableInt32();

            var countStudy = reader.ReadOptInt32();

            if (countStudy > 0)
            {
                Studies = new HashSet <CosmicStudy>();
            }

            for (var i = 0; i < countStudy; i++)
            {
                Studies.Add(new CosmicStudy(reader));
            }
        }
Exemple #2
0
        public void Read(ExtendedBinaryReader reader)
        {
            ExacCoverage = reader.ReadOptInt32();

            ExacAllAn = reader.ReadOptNullableInt32();
            ExacAfrAn = reader.ReadOptNullableInt32();
            ExacAmrAn = reader.ReadOptNullableInt32();
            ExacEasAn = reader.ReadOptNullableInt32();
            ExacFinAn = reader.ReadOptNullableInt32();
            ExacNfeAn = reader.ReadOptNullableInt32();
            ExacOthAn = reader.ReadOptNullableInt32();
            ExacSasAn = reader.ReadOptNullableInt32();

            ExacAllAc = reader.ReadOptNullableInt32();
            ExacAfrAc = reader.ReadOptNullableInt32();
            ExacAmrAc = reader.ReadOptNullableInt32();
            ExacEasAc = reader.ReadOptNullableInt32();
            ExacFinAc = reader.ReadOptNullableInt32();
            ExacNfeAc = reader.ReadOptNullableInt32();
            ExacOthAc = reader.ReadOptNullableInt32();
            ExacSasAc = reader.ReadOptNullableInt32();
        }
Exemple #3
0
        public void Read(ExtendedBinaryReader reader)
        {
            AncestralAllele = reader.ReadAsciiString();

            OneKgAllAn = reader.ReadOptNullableInt32();
            OneKgAfrAn = reader.ReadOptNullableInt32();
            OneKgAmrAn = reader.ReadOptNullableInt32();
            OneKgEasAn = reader.ReadOptNullableInt32();
            OneKgEurAn = reader.ReadOptNullableInt32();
            OneKgSasAn = reader.ReadOptNullableInt32();

            OneKgAllAc = reader.ReadOptNullableInt32();
            OneKgAfrAc = reader.ReadOptNullableInt32();
            OneKgAmrAc = reader.ReadOptNullableInt32();
            OneKgEasAc = reader.ReadOptNullableInt32();
            OneKgEurAc = reader.ReadOptNullableInt32();
            OneKgSasAc = reader.ReadOptNullableInt32();
        }