Exemple #1
0
        /// <summary>
        /// Loads data from a query-returned row
        /// </summary>
        /// <param name="row"></param>
        public void LoadData(DataRow row)
        {
            NewResidue           = SNPDatabase.DbCStr(row["residue"]);
            aa_position          = SNPDatabase.DbCInt(row["aa_pos"]);
            MinorAlleleFrequency = SNPDatabase.DbCDouble(row["freq"]);
            easMAF = SNPDatabase.DbCDouble(row["eas"]);
            eurMAF = SNPDatabase.DbCDouble(row["eur"]);
            afrMAF = SNPDatabase.DbCDouble(row["afr"]);
            amrMAF = SNPDatabase.DbCDouble(row["amr"]);
            sasMAF = SNPDatabase.DbCDouble(row["sas"]);
            double high = Math.Max(easMAF, Math.Max(eurMAF, Math.Max(afrMAF,
                                                                     Math.Max(amrMAF, sasMAF))));
            double low = Math.Min(easMAF, Math.Min(eurMAF, Math.Min(afrMAF,
                                                                    Math.Min(amrMAF, sasMAF))));

            popVariation = high - low;
            SnpID        = SNPDatabase.DbCInt(row["snp_id"]);
        }
Exemple #2
0
 static Pvmrm()
 {
     database = new SNPDatabase();
 }