Beispiel #1
0
 public static void write_locus_version_6(BinaryWriter bw, LocusEntry locus_entry)
 {
     bw.Write(locus_entry.ilmn_id);
     bw.Write(locus_entry.name);
     foreach (string str in locus_entry.after_name_string1)
     {
         bw.Write(str);
     }
     bw.Write(locus_entry.after_name_byte);
     foreach (string str in locus_entry.after_name_string2)
     {
         bw.Write(str);
     }
     bw.Write(locus_entry.snp);
     bw.Write(locus_entry.chrom);
     foreach (string str in locus_entry.after_chrom_string)
     {
         bw.Write(str);
     }
     bw.Write(locus_entry.map_info.ToString());
     foreach (string str in locus_entry.after_map_info_string)
     {
         bw.Write(str);
     }
     bw.Write(locus_entry.address_a);
     bw.Write(locus_entry.address_b);
     foreach (string str in locus_entry.after_address_string)
     {
         bw.Write(str);
     }
     bw.Write(locus_entry.after_address_byte);
     bw.Write((byte)locus_entry.assay_type);
 }
Beispiel #2
0
 public static void Writer(BinaryWriter bw, LocusEntry locus_entry)
 {
     bw.Write(locus_entry.version);
     if (locus_entry.version == 6)
     {
         write_locus_version_6(bw, locus_entry);
     }
     else if (locus_entry.version == 7)
     {
         write_locus_version_7(bw, locus_entry);
     }
     else if (locus_entry.version == 8)
     {
         write_locus_version_8(bw, locus_entry);
     }
     else
     {
         throw new Exception("Manifest format error: unknown version for locus entry (" + locus_entry.version + ")");
     }
 }
Beispiel #3
0
 public static void write_locus_version_8(BinaryWriter bw, LocusEntry locus_entry)
 {
     write_locus_version_7(bw, locus_entry);
     bw.Write(RefStrand.to_string(locus_entry.ref_strand));
 }
Beispiel #4
0
 public static void write_locus_version_7(BinaryWriter bw, LocusEntry locus_entry)
 {
     write_locus_version_6(bw, locus_entry);
     bw.Write(locus_entry.after_ver6_byte);
 }