Dynamic Linq Select from String Value - asp.net
Question Edit because simple table doesnt make things simpler..
The issue is i have to pick dynamic column value..
the column name came from prev page (DropDownList) => Current Page (HiddenField)
This is my Current Codes:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Data;
public partial class ViewChart : System.Web.UI.Page
{
BlupDataContext database = new BlupDataContext();
protected void Page_Load(object sender, EventArgs e)
{
HiddenFieldWCellName.Value = Request.QueryString["WCEL_Name"];
HiddenFieldSeries1.Value = Request.QueryString["Series1"];
HiddenFieldSeries2.Value = Request.QueryString["Series2"];
var q = from x in database.RSRAN079s
join y in database.RSRAN084s
on x.WCEL_Name equals y.WCEL_Name
where x.WCEL_Name == HiddenFieldWCellName.Value
select new
{
RSRAN079_ID = x.RSRAN079_ID,
PeriodStartTime = x.PeriodStartTime,
PLMN_Name = x.PLMN_Name,
RNC_Name = x.RNC_Name,
WBTS_Name = x.WBTS_Name,
WBTS_ID = x.WBTS_ID,
WCEL_Name = x.WCEL_Name,
WCEL_ID = x.WCEL_ID,
RRC_Conn_Access_Completitions = x.RRC_Conn_Access_Completitions,
RRC_Active_Drops_IU_FR = x.RRC_Active_Drops_IU_FR,
RRC_Active_Drops_IU_Fails = x.RRC_Active_Drops_IU_Fails,
RRC_Active_Drops_Radio_FR = x.RRC_Active_Drops_Radio_FR,
RRC_Active_Drops_Radio_Fails = x.RRC_Active_Drops_Radio_Fails,
RRC_Active_Drops_BTS_FR = x.RRC_Active_Drops_BTS_FR,
RRC_Active_Drops_BTS_Fails = x.RRC_Active_Drops_BTS_Fails,
RRC_Active_Drops_IUR_FR = x.RRC_Active_Drops_IUR_FR,
RRC_Active_Drops_IUR_Fails = x.RRC_Active_Drops_IUR_Fails,
RRC_Active_Drops_CIPH_FR = x.RRC_Active_Drops_CIPH_FR,
RRC_Active_Drops_CIPH_Fails = x.RRC_Active_Drops_CIPH_Fails,
RRC_Active_Drops_RNC_FR = x.RRC_Active_Drops_RNC_FR,
RRC_Active_Drops_RNC_Fails = x.RRC_Active_Drops_RNC_Fails,
RRC_Active_Drops_UE_FR = x.RRC_Active_Drops_UE_FR,
RRC_Active_Drops_UE_Fails = x.RRC_Active_Drops_UE_Fails,
RAB_Retainability_CS_Voice_SR = x.RAB_Retainability_CS_Voice_SR,
RAB_Retainability_CS_Conv_SR = x.RAB_Retainability_CS_Conv_SR,
RAB_Retainability_PS_SR = x.RAB_Retainability_PS_SR,
AMR_RAB_Setup_Access_Completitions = x.AMR_RAB_Setup_Access_Completitions,
AMR_RAB_Drop_Active_Drops_IF_FR = x.AMR_RAB_Drop_Active_Drops_IF_FR,
AMR_RAB_Drop_Active_Drops_IU_Fails = x.AMR_RAB_Drop_Active_Drops_IU_Fails,
AMR_RAB_Drop_Active_Drops_Radio_FR = x.AMR_RAB_Drop_Active_Drops_Radio_FR,
AMR_RAB_Drop_Active_Drops_Radio_Fails = x.AMR_RAB_Drop_Active_Drops_Radio_Fails,
AMR_RAB_Drop_Active_Drops_BTS_FR = x.AMR_RAB_Drop_Active_Drops_BTS_FR,
AMR_RAB_Drop_Active_Drops_BTS_Fails = x.AMR_RAB_Drop_Active_Drops_BTS_Fails,
AMR_RAB_Drop_Active_Drops_IUR_FR = x.AMR_RAB_Drop_Active_Drops_IUR_FR,
AMR_RAB_Drop_Active_Drops_IUR_Fails = x.AMR_RAB_Drop_Active_Drops_IUR_Fails,
AMR_RAB_Drop_Active_Drops_RNC_FR = x.AMR_RAB_Drop_Active_Drops_RNC_FR,
AMR_RAB_Drop_Active_Drops_RNC_Fails = x.AMR_RAB_Drop_Active_Drops_RNC_Fails,
AMR_RAB_Drop_Active_Drops_UE_FR = x.AMR_RAB_Drop_Active_Drops_UE_FR,
AMR_RAB_Drop_Active_Drops_UE_Fails = x.AMR_RAB_Drop_Active_Drops_UE_Fails,
CS_Conv_RAB_Setup_Access_Completitions = x.CS_Conv_RAB_Setup_Access_Completitions,
CS_Conv_RAB_Retainability_Completitions = x.CS_Conv_RAB_Retainability_Completitions,
CS_Conv_RAB_Active_Drops_IU_FR = x.CS_Conv_RAB_Active_Drops_IU_FR,
CS_Conv_RAB_Active_Drops__IU_Fails = x.CS_Conv_RAB_Active_Drops__IU_Fails,
CS_Conv_RAB_Active_Drops_Radio_FR = x.CS_Conv_RAB_Active_Drops_Radio_FR,
CS_Conv_RAB_Active_Drops_Radio_Fails = x.CS_Conv_RAB_Active_Drops_Radio_Fails,
CS_Conv_RAB_Active_Drops_BTS_FR = x.CS_Conv_RAB_Active_Drops_BTS_FR,
CS_Conv_RAB_Active_Drops_BTS_Fails = x.CS_Conv_RAB_Active_Drops_BTS_Fails,
CS_Conv_RAB_Active_Drops_IUR_FR = x.CS_Conv_RAB_Active_Drops_IUR_FR,
CS_Conv_RAB_Active_Drops_IUR_Fails = x.CS_Conv_RAB_Active_Drops_IUR_Fails,
CS_Conv_RAB_Active_Drops_RNC_FR = x.CS_Conv_RAB_Active_Drops_RNC_FR,
CS_Conv_RAB_Active_Drops_RNC_Fails = x.CS_Conv_RAB_Active_Drops_RNC_Fails,
CS_Conv_RAB_Active_Drops_UE_FR = x.CS_Conv_RAB_Active_Drops_UE_FR,
CS_Conv_RAB_Active_Drops_UE_Fails = x.CS_Conv_RAB_Active_Drops_UE_Fails,
Packet_Service_RAB_Setup_Access_Completitions = x.Packet_Service_RAB_Setup_Access_Completitions,
Packet_Service_RAB_Retainability_Completitions = x.Packet_Service_RAB_Retainability_Completitions,
Packet_Service_RAB_Active_Drops_IU_FR = x.Packet_Service_RAB_Active_Drops_IU_FR,
Packet_Service_RAB_Active_Drops_Fails = x.Packet_Service_RAB_Active_Drops_Fails,
Packet_Service_RAB_Active_Drops_Radio_FR = x.Packet_Service_RAB_Active_Drops_Radio_FR,
Packet_Service_RAB_Active_Drops_Radio_Fails = x.Packet_Service_RAB_Active_Drops_Radio_Fails,
Packet_Service_RAB_Active_Drops_BTS_FR = x.Packet_Service_RAB_Active_Drops_BTS_FR,
Packet_Service_RAB_Active_Drops_BTS_Fails = x.Packet_Service_RAB_Active_Drops_BTS_Fails,
Packet_Service_RAB_Active_Drops_IUR_FR = x.Packet_Service_RAB_Active_Drops_IUR_FR,
Packet_Service_RAB_Active_Drops_IUR_Fails = x.Packet_Service_RAB_Active_Drops_IUR_Fails,
Packet_Service_RAB_Active_Drops_RNC_FR = x.Packet_Service_RAB_Active_Drops_RNC_FR,
Packet_Service_RAB_Active_Drops_RNC_Fails = x.Packet_Service_RAB_Active_Drops_RNC_Fails,
Packet_Service_RAB_Active_Drops_UE_FR = x.Packet_Service_RAB_Active_Drops_UE_FR,
Packet_Service_RAB_Active_Drops_UE_Fails = x.Packet_Service_RAB_Active_Drops_UE_Fails,
Packet_Session_Rel_HSDSCH_EDCH = x.Packet_Session_Rel_HSDSCH_EDCH,
Packet_Session_Rel_HSDSCH_DCH = x.Packet_Session_Rel_HSDSCH_DCH,
Packet_Session_Rel_Alloc_Rel = x.Packet_Session_Rel_Alloc_Rel,
Packet_Session_Success_Ratio_SR = x.Packet_Session_Success_Ratio_SR,
Packet_Session_Drops_HSDSCH_EDCH_DR = x.Packet_Session_Drops_HSDSCH_EDCH_DR,
Packet_Session_Drops_HSDSCH_EDCH_Drops = x.Packet_Session_Drops_HSDSCH_EDCH_Drops,
Packet_Session_Drops_HSDSCH_DCH_DR = x.Packet_Session_Drops_HSDSCH_DCH_DR,
Packet_Session_Drops_HSDSCH_DCH_Drops = x.Packet_Session_Drops_HSDSCH_DCH_Drops,
Packet_Session_Drops_DCH_DR = x.Packet_Session_Drops_DCH_DR,
Packet_Session_Drops_DCH_Drops = x.Packet_Session_Drops_DCH_Drops,
Packet_Session_Drops_HSDSCH_EDCH_Other_DR = x.Packet_Session_Drops_HSDSCH_EDCH_Other_DR,
Packet_Session_Drops_HSDSCH_EDCH_Other_Drops = x.Packet_Session_Drops_HSDSCH_EDCH_Other_Drops,
Packet_Session_Drops_HSDSCH_DCH_Other_DR = x.Packet_Session_Drops_HSDSCH_DCH_Other_DR,
Packet_Session_Drops_HSDSCH_DCH_Other_Drops = x.Packet_Session_Drops_HSDSCH_DCH_Other_Drops,
Packet_Session_Drops_DCH_Other_DR = x.Packet_Session_Drops_DCH_Other_DR,
Packet_Session_Drops_DCH_Other_Drops = x.Packet_Session_Drops_DCH_Other_Drops,
HSDSCH_Alloc_Rel = x.HSDSCH_Alloc_Rel,
HSDPA_Retain_NW = x.HSDPA_Retain_NW,
HSDPA_Retain_RL_FR = x.HSDPA_Retain_RL_FR,
HSDPA_Retain_Non_RL_FR = x.HSDPA_Retain_Non_RL_FR,
HSDPA_Retain_Mobility_FR = x.HSDPA_Retain_Mobility_FR,
HSDPA_Retain_PRE_EMPTION_FR = x.HSDPA_Retain_PRE_EMPTION_FR,
HSDPA_Retain_Other_Mob_FR = x.HSDPA_Retain_Other_Mob_FR,
EDCH_Alloc_Rel = x.EDCH_Alloc_Rel,
HSUPA_Retain_NW = x.HSUPA_Retain_NW,
HSUPA_Retain_RL_FR = x.HSUPA_Retain_RL_FR,
HSUPA_Retain_EDCH_Rel_HSDSCH_SCC = x.HSUPA_Retain_EDCH_Rel_HSDSCH_SCC,
HSUPA_Retain_Other_FR = x.HSUPA_Retain_Other_FR,
HSDSCH_SCC_UE_FR = x.HSDSCH_SCC_UE_FR,
HSDSCH_SCC_UE_Fails = x.HSDSCH_SCC_UE_Fails,
HSDSCH_SCC_BTS_FR = x.HSDSCH_SCC_BTS_FR,
HSDSCH_SCC_BTS_Fails = x.HSDSCH_SCC_BTS_Fails,
HSDSCH_SCC_Trans_FR = x.HSDSCH_SCC_Trans_FR,
HSDSCH_SCC_Trans_Fails = x.HSDSCH_SCC_Trans_Fails,
HSDSCH_SCC_AC_FR = x.HSDSCH_SCC_AC_FR,
HSDSCH_SCC_AC_Fails = x.HSDSCH_SCC_AC_Fails,
HSDSCH_SCC_Other_FR = x.HSDSCH_SCC_Other_FR,
HSDSCH_SCC_Other_Fails = x.HSDSCH_SCC_Other_Fails,
R99_Alloc_Rel = x.R99_Alloc_Rel,
R99_Retain_NW = x.R99_Retain_NW,
Inter_RNC_SCC_Fail = x.Inter_RNC_SCC_Fail,
Inter_RNC_SCC_Drop = x.Inter_RNC_SCC_Drop,
RSRAN084_ID = y.RSRAN084_ID,
PeriodStartTime2 = y.PeriodStartTime,
RNC_Name2 = y.RNC_Name,
WBTS_Name2 = y.WBTS_Name,
WBTS_ID2 = y.WBTS_ID,
WCEL_Name2 = y.WCEL_Name,
WCEL_ID2 = y.WCEL_ID,
Cell_Availability = y.Cell_Availability,
Cell_Availability_Exclude = y.Cell_Availability_Exclude,
RRC_Set_Att = y.RRC_Set_Att,
RRC_Set_Acc_CR_NW = y.RRC_Set_Acc_CR_NW,
RRC_Set_Acc_CR_UE = y.RRC_Set_Acc_CR_UE,
RRC_Conn_Setup_SR = y.RRC_Conn_Setup_SR,
RRC_Conn_SR = y.RRC_Conn_SR,
RRC_Reg_Att = y.RRC_Reg_Att,
Regist_SR = y.Regist_SR,
RAB_Att_Voice = y.RAB_Att_Voice,
RAB_STP_and_ACC_CR_Voice = y.RAB_STP_and_ACC_CR_Voice,
RAB_SR_AMR_Voice = y.RAB_SR_AMR_Voice,
Min_per_Drop_Voice = y.Min_per_Drop_Voice,
CS_Serv_Dur_Voice = y.CS_Serv_Dur_Voice,
RAB_Att_UDI = y.RAB_Att_UDI,
RAB_Stp_Acc_SR = y.RAB_Stp_Acc_SR,
RAB_SR_UDI = y.RAB_SR_UDI,
Min_Per_Drop_UDI = y.Min_Per_Drop_UDI,
CS_Serv_Dur_UDI = y.CS_Serv_Dur_UDI,
PS_NRT_RAB_Att = y.PS_NRT_RAB_Att,
PS_NRT_RAB_CR = y.PS_NRT_RAB_CR,
PS_NRT_RAB_SR_NW = y.PS_NRT_RAB_SR_NW,
PS_NRT_RAB_SR_User = y.PS_NRT_RAB_SR_User,
Packet_Session_Att = y.Packet_Session_Att,
Packet_Session_Stp_SR = y.Packet_Session_Stp_SR,
RAB_Att_Stream = y.RAB_Att_Stream,
RAB_Stp_Acc_SR_Stream = y.RAB_Stp_Acc_SR_Stream,
RAB_SR_Stream = y.RAB_SR_Stream,
M_RAB_Att = y.M_RAB_Att,
M_RAB_Stp_Acc_SR = y.M_RAB_Stp_Acc_SR,
M_RAB_SR = y.M_RAB_SR,
SHO_Update_Att_RT = y.SHO_Update_Att_RT,
SHO_Update_Att_NRT = y.SHO_Update_Att_NRT,
SHO_SR_RT = y.SHO_SR_RT,
SHO_SR_NRT = y.SHO_SR_NRT,
SHO_Overhead = y.SHO_Overhead,
Inter_Sys_HHO_Att_RT = y.Inter_Sys_HHO_Att_RT,
Inter_Sys_HHO_Att_NRT = y.Inter_Sys_HHO_Att_NRT,
Inter_Sys_HHO_RT_SR = y.Inter_Sys_HHO_RT_SR,
Inter_Sys_HHOO_NRT_SR = y.Inter_Sys_HHOO_NRT_SR,
Inter_Sys_HHO_RT_DR = y.Inter_Sys_HHO_RT_DR,
Inter_Sys_HHO_NRT_DR = y.Inter_Sys_HHO_NRT_DR,
Inc_IS_Change_Att = y.Inc_IS_Change_Att,
Intra_Sys_HHO_Att = y.Intra_Sys_HHO_Att,
Intra_Sys_HHO_SR = y.Intra_Sys_HHO_SR,
R99_Allo_DL_DCH_Cap_Data_Call = y.R99_Allo_DL_DCH_Cap_Data_Call,
R99_Allo_UL_DCH_Cap_Data_Call = y.R99_Allo_UL_DCH_Cap_Data_Call,
HSDSCH_Selections = y.HSDSCH_Selections,
HSDPA_Res_Acc_NRT = y.HSDPA_Res_Acc_NRT,
HSDPA_Res_Retain_NRT = y.HSDPA_Res_Retain_NRT,
HSDPA_Res_Retain_RT = y.HSDPA_Res_Retain_RT,
HSDPA_Attempt = y.HSDPA_Attempt,
HSDPA_SR = y.HSDPA_SR,
Avg_MAC_D_THP = y.Avg_MAC_D_THP,
Act_HSDSCH_MAC_D_THP_NW = y.Act_HSDSCH_MAC_D_THP_NW,
HSDPA_DL_DATA_Rcvd_NodeB = y.HSDPA_DL_DATA_Rcvd_NodeB,
HSDPA_MAC_HS_Data_Vol_at_RNC = y.HSDPA_MAC_HS_Data_Vol_at_RNC,
HSPDA_MAC_HS_Efficiency = y.HSPDA_MAC_HS_Efficiency,
HARQ_Non_Ack_Ratio_Mean = y.HARQ_Non_Ack_Ratio_Mean,
HSDPA_SCC_Att = y.HSDPA_SCC_Att,
E_DCH_Selections = y.E_DCH_Selections,
HSUPA_Res_Acc_NRT = y.HSUPA_Res_Acc_NRT,
HSUPA_Res_Retain_NRT = y.HSUPA_Res_Retain_NRT,
HSUPA_Res_Retain_RT = y.HSUPA_Res_Retain_RT,
HSUPA_Att = y.HSUPA_Att,
HSUPA_SR = y.HSUPA_SR,
HSUPA_MAC_es_Data_Vol_RNC = y.HSUPA_MAC_es_Data_Vol_RNC,
HSUPA_MAC_es_BLER = y.HSUPA_MAC_es_BLER,
E_DCH_HARQ_Non_Ack_Ratio = y.E_DCH_HARQ_Non_Ack_Ratio,
HSUPA_SCC_Att = y.HSUPA_SCC_Att,
AVG_CS_Traffic = y.AVG_CS_Traffic,
Inc_SMS_Att = y.Inc_SMS_Att
};
Chart1.DataSource = q;
Chart1.Series[0].XValueMember = "PeriodStartTime";
Chart1.Series[0].YValueMembers = HiddenFieldSeries1.Value.ToString();
Chart1.Series.Add(HiddenFieldSeries2.Value);
Chart1.Series[1].XValueMember = "PeriodstartTime2";
Chart1.Series[1].YValueMembers = HiddenFieldSeries2.Value.ToString();
}
}
Can We simplify Linq Select New codes?? while i only need 4 columns only.. :(
Your question dosen't make too much sense as far as your comments/labeling, so I took my best guess:
DDLLessons.DataSource = lesson;
DDLLessons.DataBind();
var query = from x in db.Scores
where x.StudentName == DDLStudentName.SelectedItem.Value
select new {
Day = x.Day,
Class = DDLLessons.SelectedItem.Value
};
Are you looking for selecting table name dynamically using strings (this is what I understood). If yes, have a look at this and select the table object from the string:
How can I dynamically select my Table at runtime with Dynamic LINQ
From the above link, this is what is relevant to you:
'' get the table from a type (which corresponds to a table in your database)
Dim typeName = "DatabaseTest.AdventureWorks." & tableName & ", DatabaseTest"
Dim entityType = Type.GetType(typeName)
Dim table = dc.GetTable(entityType)
Dim query As IQueryable = table
(credit for the code goes to original poster of the answer on the link that I've provided)
UPDATE: C# version of code:
// get the table from a type (which corresponds to a table in your database)
string typeName = "DatabaseTest.AdventureWorks." + tableName + ", DatabaseTest";
Type entityType = Type.GetType(typeName);
object table = dc.GetTable(entityType);
IQueryable query = table as IQueryable;
Related
Extracting HSV values from RGB Error--R
I am trying to extract HSV values from my previously collect RGB values, but I am running into an error that I don't understand. Using the code > Hmean<-rgb2hsv(Hmean, maxColorValue=255) I get the error: Error in if (any(0 > rgb) || any(rgb > 1)) stop("rgb values must be in [0, maxColorValue]") : missing value where TRUE/FALSE needed Any help would be greatly appreciated! I am new to R and am really not sure where to go from here. EDIT I have added my data below: Hmean <- structure(list(`BIOUG06754-A02` = c(60.517, 68.521, 107.304), `BIOUG06754-A04` = c(150.321, 142.084, 136.413), `BIOUG06754-A05` = c(147.89, 133.011, 92.305), `BIOUG06754-A06` = c(122.536, 131.516, 153.172), `BIOUG06754-A07` = c(123.994, 122.671, 129.04), `BIOUG06754-A11` = c(103.295, 96.326, 97.662), `BIOUG06754-A12` = c(143.705, 125.768, 99.034), `BIOUG06754-B01` = c(80.218, 84.49, 105.947 ), `BIOUG06754-B03` = c(150.792, 153.816, 177.636), `BIOUG06754-B04` = c(171.702, 150.65, 143.737), `BIOUG06754-B05` = c(180.981, 161.6, 129.986 ), `BIOUG06754-B06` = c(138.058, 130, 130.393), `BIOUG06754-B07` = c(179.172, 170.086, 148.312), `BIOUG06754-B08` = c(124.126, 121.128, 110.269), `BIOUG06754-B10` = c(162.904, 140.356, 84.089), `BIOUG06754-B11` = c(149.631, 137.925, 122.061), `BIOUG06754-B12` = c(129.984, 125.308, 126.05), `BIOUG06754-C01` = c(146.569, 148.399, 191.916), `BIOUG06754-C02` = c(81.706, 72.88, 90.784), `BIOUG06754-C05` = c(107.256, 80.714, 111.902), `BIOUG06754-C07` = c(56.156, 61.983, 102.082 ), `BIOUG06754-C09` = c(176.229, 144.778, 98.893), `BIOUG06754-C11` = c(141.205, 144.914, 123.44), `BIOUG06754-C12` = c(140.845, 137.706, 123.588), `BIOUG06754-D01` = c(134.978, 137.257, 143.5), `BIOUG06754-D03` = c(99.99, 99.829, 94.698), `BIOUG06754-D06` = c(92.634, 70.545, 45.073), `BIOUG06754-D09` = c(172.178, 160.303, 126.69 ), `BIOUG06754-D10` = c(166.664, 151.808, 128.265), `BIOUG06754-D11` = c(160.247, 122.13, 77.719), `BIOUG06754-D12` = c(153.807, 152.699, 170.198 ), `BIOUG06754-E01` = c(135.272, 133.118, 155.628), `BIOUG06754-E05` = c(124.053, 114.822, 85.961), `BIOUG06754-E07` = c(157.281, 121.47, 53.801 ), `BIOUG06754-E08` = c(77.183, 76.687, 75.278), `BIOUG06754-E09` = c(112.063, 109.666, 107.04), `BIOUG06754-E11` = c(93.102, 87.039, 79.305 ), `BIOUG06754-F01` = c(165.828, 147.252, 119.478), `BIOUG06754-F02` = c(197.223, 185.272, 159.957), `BIOUG06754-F04` = c(152.897, 136.457, 141.096), `BIOUG06754-F05` = c(117.035, 119.651, 145.869), `BIOUG06754-F06` = c(185.506, 173.124, 157.736), `BIOUG06754-F12` = c(148.994, 140.52, 165.125), `BIOUG06754-G01` = c(128.958, 122.56, 113.381 ), `BIOUG06754-G02` = c(144.513, 136.457, 128.134), `BIOUG06754-G08` = c(113.76, 106.878, 98.195), `BIOUG06754-G09` = c(95.095, 87.19, 104.044 ), `BIOUG06754-G10` = c(106.903, 112.908, 132.635), `BIOUG06754-G12` = c(153.118, 131.854, 129.546), `BIOUG06754-H01` = c(166.928, 171.271, 174.863), `BIOUG06754-H02` = c(192.864, 166.996, 103.896), `BIOUG06754-H03` = c(119.428, 116.207, 107.578), `BIOUG06754-H06` = c(156.38, 157.738, 166.2), `BIOUG06754-H07` = c(200.05, 193.561, 180.402 ), `BIOUG06754-H08` = c(138.912, 141.456, 139.468), `BIOUG07431-A01` = c(196.442, 194.256, 198.569), `BIOUG07431-A02` = c(199.362, 203.439, 221.293), `BIOUG07431-A04` = c(110.508, 109.606, 125.026), `BIOUG07431-A05` = c(154.941, 142.16, 162.201), `BIOUG07431-A07` = c(133.31, 124.794, 166.369), `BIOUG07431-A08` = c(152.72, 145.893, 161.726), `BIOUG07431-A11` = c(193.428, 195.137, 202.514), `BIOUG07431-B01` = c(173.636, 158.312, 166.014), `BIOUG07431-B03` = c(113.928, 101.418, 119.616), `BIOUG07431-B04` = c(158.961, 149.822, 135.504), `BIOUG07431-B05` = c(181.021, 160.866, 135.597), `BIOUG07431-B06` = c(166.364, 166.912, 165.706), `BIOUG07431-B08` = c(108.665, 100.64, 109.878), `BIOUG07431-B09` = c(112.773, 116.487, 136.531), `BIOUG07431-B10` = c(108.834, 103.844, 115.001), `BIOUG07431-B11` = c(86.766, 97.206, 144.516), `BIOUG07431-C02` = c(98.251, 88.443, 127.958), `BIOUG07431-C05` = c(113.635, 117.251, 133.339), `BIOUG07431-C06` = c(115.451, 119.857, 149.481), `BIOUG07431-C08` = c(159.056, 128.007, 110.938), `BIOUG07431-C12` = c(126.557, 125.67, 126.041), `BIOUG07431-D01` = c(214.479, 191.064, 143.42), `BIOUG07431-D02` = c(180.004, 173.532, 161.336), `BIOUG07431-D03` = c(201.794, 192.762, 179.586), `BIOUG07431-D04` = c(125.512, 132.976, 163.184), `BIOUG07431-D05` = c(142.465, 124.835, 113.436), `BIOUG07431-D06` = c(185.26, 186.626, 208.822), `BIOUG07431-D07` = c(195.833, 198.765, 205.444), `BIOUG07431-D09` = c(124.785, 124.127, 144.171), `BIOUG07431-D12` = c(129.071, 140.159, 171.218), `BIOUG07431-E02` = c(182.027, 182.472, 180.621), `BIOUG07431-E03` = c(126.32, 126.024, 133.868), `BIOUG07431-E04` = c(89.118, 72.014, 46.126), `BIOUG07431-E05` = c(125.737, 117.231, 154.487 ), `BIOUG07431-E06` = c(161.714, 152.781, 130.912), `BIOUG07431-E07` = c(149.006, 144.284, 132.184), `BIOUG07431-E09` = c(118.235, 116.151, 123.239), `BIOUG07431-E12` = c(161.982, 163.57, 195.893), `BIOUG07431-F01` = c(210.534, 183.649, 136.178), `BIOUG07431-F06` = c(143.074, 129.267, 105.536), `BIOUG07431-G03` = c(194.663, 168.915, 137.132), `BIOUG07431-G06` = c(125.605, 92.018, 61.595), `BIOUG07431-G07` = c(162.248, 143.445, 169.436), `BIOUG07431-G09` = c(197.991, 197.706, 197.506), `BIOUG07431-G10` = c(156.518, 145.15, 156.341), `BIOUG07431-G11` = c(154.482, 141.215, 144.517), `BIOUG07431-H01` = c(120.332, 122.402, 140.211), `BIOUG07431-H02` = c(153.665, 148.427, 159.549), `BIOUG07431-H04` = c(239.422, 214.916, 171.416), `BIOUG07431-H06` = c(194.847, 181.091, 139.541), `BIOUG07431-H07` = c(200.076, 193.944, 181.532), `BIOUG07797-A01` = c(148.506, 146.768, 173.34), `BIOUG07797-A02` = c(147.511, 144.895, 189.464), `BIOUG07797-A03` = c(222.678, 225.497, 230.171), `BIOUG07797-A05` = c(119.967, 131.053, 203.64), `BIOUG07797-A08` = c(104.015, 108.071, 124.549), `BIOUG07797-A09` = c(164.519, 159.228, 140.04), `BIOUG07797-A11` = c(189.19, 182.955, 189.946), `BIOUG07797-B01` = c(106.99, 110.57, 141.549), `BIOUG07797-B02` = c(113.587, 110.997, 149.402), `BIOUG07797-C01` = c(117.026, 114.161, 128.523), `BIOUG07797-C04` = c(83.18, 84.456, 111.268), `BIOUG07797-C05` = c(118.447, 119.369, 156.932), `BIOUG07797-C06` = c(176.7, 165.73, 139.284 ), `BIOUG07797-C11` = c(148.172, 127.719, 122.872), `BIOUG07797-D02` = c(106.939, 95.452, 108.28), `BIOUG07797-D10` = c(143.813, 130.423, 111.83 ), `BIOUG07797-F03` = c(78.894, 54.359, 50.642), `BIOUG07797-F04` = c(145.08, 123.273, 117.647), `BIOUG07797-F06` = c(235.565, 180.099, 56.442), `BIOUG07797-F07` = c(180.997, 183.258, 183.278), `BIOUG07797-G11` = c(170.54, 175.451, 170.098), `BIOUG07797-H01` = c(190.966, 188.429, 166.054), `BIOUG07797-H09` = c(90.894, 85.603, 111.644 ), `BIOUG09330-A02` = c(78.074, 91.958, 152.859), `BIOUG09330-A03` = c(117.371, 130.345, 172.74), `BIOUG09330-A04` = c(91.953, 110.488, 159.267 ), `BIOUG09330-A05` = c(108.764, 95.986, 109.759), `BIOUG09330-A06` = c(150.302, 107.83, 73.904), `BIOUG09330-A07` = c(97.401, 120.961, 211.18 ), `BIOUG09330-A09` = c(74.834, 79.806, 120.349), `BIOUG09330-A10` = c(95.294, 96.306, 144.771), `BIOUG09330-A11` = c(64.172, 45.898, 71.995 ), `BIOUG09330-A12` = c(117.116, 126.698, 168.934), `BIOUG09330-B01` = c(52.654, 64.766, 128.408), `BIOUG09330-B02` = c(107.182, 133.682, 188.383), `BIOUG09330-B04` = c(125.463, 91.091, 43.414), `BIOUG09330-B05` = c(NA_real_, NA_real_, NA_real_), `BIOUG09330-B06` = c(56.263, 54.981, 81.805), `BIOUG09330-B07` = c(162.31, 159.495, 166.396 ), `BIOUG09330-B08` = c(125.672, 122.209, 116.596), `BIOUG09330-B09` = c(135.056, 129.756, 162.686), `BIOUG09330-B10` = c(202.435, 208.733, 241.3), `BIOUG09330-B11` = c(169.697, 156.222, 141.06), `BIOUG09330-B12` = c(128.235, 102.118, 106.082), `BIOUG09330-C01` = c(98.755, 122.772, 209.765), `BIOUG09330-C02` = c(NA_real_, NA_real_, NA_real_ ), `BIOUG09330-C05` = c(158.578, 130.13, 69.21), `BIOUG09330-C08` = c(103.718, 117.53, 147.786), `BIOUG09330-D02` = c(117.738, 114.214, 118.959), `BIOUG09330-D04` = c(130.504, 122.31, 138.672), `BIOUG09330-D06` = c(218.095, 195.467, 144.224), `BIOUG09330-D07` = c(157.568, 145.151, 91.566), `BIOUG09330-D08` = c(175.808, 172.062, 161.954), `BIOUG09330-D09` = c(144.897, 157.836, 189.74), `BIOUG09330-D11` = c(76.909, 88.817, 121.806), `BIOUG09330-D12` = c(124.881, 126.963, 171.977), `BIOUG09330-E05` = c(129.372, 127.583, 187.464), `BIOUG09330-E08` = c(88.864, 103.971, 212.299), `BIOUG09330-E09` = c(64.557, 72.148, 138.387), `BIOUG09330-E11` = c(135.383, 141.872, 165.028), `BIOUG09330-E12` = c(157.918, 167.997, 181.808), `BIOUG09330-F04` = c(70.144, 79.535, 180.141), `BIOUG09330-F05` = c(70.921, 70.844, 104.806), `BIOUG09330-F09` = c(124.519, 129.736, 189.402), `BIOUG09330-F10` = c(210.979, 205.764, 212.236), `BIOUG09330-F11` = c(190.944, 183.007, 157.038), `BIOUG09330-F12` = c(211.616, 155.883, 39.493), `BIOUG09330-G01` = c(108.666, 120.852, 159.902), `BIOUG09330-G02` = c(156.677, 146.856, 135.241), `BIOUG09330-G03` = c(130.527, 137.194, 144.195), `BIOUG09330-G04` = c(84.576, 81.307, 105.66), `BIOUG09330-G05` = c(144.604, 147.933, 177.82), `BIOUG09330-G06` = c(158.099, 155.194, 175.577), `BIOUG09330-G07` = c(74.709, 67.784, 102.697), `BIOUG09330-G08` = c(76.496, 74.44, 107.494), `BIOUG09330-G09` = c(183.169, 192.008, 235.085), `BIOUG09330-G10` = c(184.362, 180.48, 159.234), `BIOUG09330-G12` = c(77.055, 86.239, 143.91), `BIOUG09330-H06` = c(74.967, 79.455, 144.986), `BIOUG09330-H07` = c(70.484, 70.173, 105.897 ), `BIOUG09330-H09` = c(174.575, 150.184, 80.233), `BIOUG09331-A03` = c(129.706, 113.527, 74.197), `BIOUG09331-A04` = c(136.851, 129.773, 117.237), `BIOUG09331-A05` = c(157.295, 147.808, 124.672), `BIOUG09331-A06` = c(92.13, 90.853, 93.149), `BIOUG09331-A07` = c(144.478, 120.684, 78.015), `BIOUG09331-A08` = c(136.908, 122.667, 88.92), `BIOUG09331-A09` = c(135.86, 106.256, 55.891), `BIOUG09331-A10` = c(203.39, 157.816, 91.879), `BIOUG09331-A11` = c(138.371, 123.186, 96.59), `BIOUG09331-A12` = c(95.404, 88.144, 78.755), `BIOUG09331-B01` = c(91.657, 76.132, 73.637), `BIOUG09331-B03` = c(114.362, 97.15, 87.333 ), `BIOUG09331-B04` = c(125.27, 114.192, 111.006), `BIOUG09331-B05` = c(238.213, 199.398, 99.51), `BIOUG09331-B06` = c(162.797, 133.397, 96.207 ), `BIOUG09331-B07` = c(170.996, 152.071, 91.138), `BIOUG09331-B08` = c(90.596, 83.036, 85.444), `BIOUG09331-B09` = c(78.688, 71.075, 89.184 ), `BIOUG09331-B10` = c(125.612, 113.445, 109.073), `BIOUG09331-B11` = c(145.36, 129.069, 106.892), `BIOUG09331-B12` = c(106.722, 100.317, 89.757), `BIOUG09331-C01` = c(218.155, 179.369, 88.206), `BIOUG09331-C03` = c(90.819, 93.85, 127.7), `BIOUG09331-C04` = c(141.697, 133.081, 128.473), `BIOUG09331-C08` = c(80.76, 78.165, 84.414 ), `BIOUG09331-C09` = c(99.405, 91.629, 88.325), `BIOUG09331-C10` = c(160.779, 152.102, 128.027), `BIOUG09331-C11` = c(146.007, 121.818, 123.986), `BIOUG09331-C12` = c(155.322, 126.561, 76.122), `BIOUG09331-D01` = c(114.51, 108.85, 106.159), `BIOUG09331-D02` = c(168.561, 158.569, 142.675), `BIOUG09331-D03` = c(93.604, 77.639, 72.308 ), `BIOUG09331-D04` = c(115.836, 106.453, 97.403), `BIOUG09331-D05` = c(201.406, 168.583, 121.714), `BIOUG09331-D06` = c(64.72, 39.534, 61.58 ), `BIOUG09331-D07` = c(104.396, 90.888, 88.357), `BIOUG09331-D08` = c(190.058, 162.695, 122.753), `BIOUG09331-D09` = c(130.358, 119.073, 113.842), `BIOUG09331-D10` = c(208.173, 184.573, 150.762), `BIOUG09331-D11` = c(75.621, 68.526, 100.973), `BIOUG09331-D12` = c(120.384, 113.948, 126.971), `BIOUG09331-E02` = c(131.588, 105.849, 112.459), `BIOUG09331-E05` = c(165.058, 153.182, 136.807), `BIOUG09331-E08` = c(205.842, 149.21, 46.914), `BIOUG09331-E09` = c(119.88, 96.932, 81.06), `BIOUG09331-E10` = c(142.077, 129.643, 113.374 ), `BIOUG09331-E11` = c(174.945, 158.418, 140.231), `BIOUG09331-E12` = c(190.955, 157.802, 101.379), `BIOUG09331-F02` = c(149.787, 134.032, 118.371), `BIOUG09331-F03` = c(165.562, 153.43, 129.294), `BIOUG09331-F04` = c(137.762, 130.078, 114.159), `BIOUG09331-F05` = c(154.205, 137.268, 113.15), `BIOUG09331-F06` = c(139.79, 114.26, 79.178 ), `BIOUG09331-F07` = c(164.205, 143.319, 124.28), `BIOUG09331-F08` = c(103.566, 91.445, 117.365), `BIOUG09331-F09` = c(129.748, 116.184, 112.51), `BIOUG09331-F10` = c(89.52, 82.218, 92.811), `BIOUG09331-G03` = c(193.037, 167.988, 161.19), `BIOUG09331-G04` = c(66.484, 61.662, 107.38 ), `BIOUG09331-G05` = c(78.386, 79.355, 127.106), `BIOUG09331-G06` = c(130.345, 121.306, 157.942), `BIOUG09331-G10` = c(228.768, 220.396, 213.442), `BIOUG09331-G11` = c(74.002, 66.019, 115.924), `BIOUG09331-H02` = c(205.078, 182.418, 134.441), `BIOUG09331-H06` = c(175.326, 173.91, 203.724), `BIOUG09331-H08` = c(173.58, 158.376, 136.998 ), `BIOUG09331-H09` = c(81.942, 83.35, 141.956), `BIOUG09331-H10` = c(54.907, 59.226, 100.034), `BIOUG09331-H11` = c(104.378, 99.155, 120 ), `BIOUG09332-A01` = c(144.726, 137.16, 172.673), `BIOUG09332-A03` = c(165.363, 159.332, 152.342), `BIOUG09332-A05` = c(199.72, 201.405, 204.246), `BIOUG09332-A06` = c(161.826, 164.125, 180.692), `BIOUG09332-A07` = c(136.393, 145.575, 171.102), `BIOUG09332-A08` = c(128.538, 131.427, 152.795), `BIOUG09332-A10` = c(184.266, 174.629, 162.196), `BIOUG09332-B03` = c(208.574, 207.05, 205.724), `BIOUG09332-B05` = c(101.794, 110.731, 155.385), `BIOUG09332-B07` = c(122.239, 112.155, 127.472), `BIOUG09332-B09` = c(187.713, 182.566, 170.627), `BIOUG09332-B11` = c(133.217, 133.466, 129.422), `BIOUG09332-C01` = c(101.814, 91.709, 107.163), `BIOUG09332-C03` = c(91.116, 96.167, 131.836), `BIOUG09332-C05` = c(160.936, 156.711, 152.594), `BIOUG09332-C06` = c(149.988, 137.356, 110.038), `BIOUG09332-C07` = c(126.787, 121.185, 127.856), `BIOUG09332-C09` = c(108.19, 120.506, 190.562), `BIOUG09332-C11` = c(175.914, 167.613, 170.927), `BIOUG09332-C12` = c(82.267, 78.821, 94.969), `BIOUG09332-D01` = c(68.758, 70.229, 93.4), `BIOUG09332-D09` = c(144.802, 138.01, 151.703 ), `BIOUG09332-E01` = c(88.358, 92.77, 132.612), `BIOUG09332-E05` = c(106.86, 59.931, 66.577), `BIOUG09332-E09` = c(197.423, 189.931, 176.184 ), `BIOUG09332-E10` = c(151.695, 121.97, 69.789), `BIOUG09332-E11` = c(74.158, 63.902, 68.372), `BIOUG09332-F06` = c(109.16, 120.619, 174.715 ), `BIOUG09332-F09` = c(144.682, 120.658, 129.593), `BIOUG09332-F11` = c(137.976, 113.727, 87.593), `BIOUG09332-G02` = c(182.113, 145.291, 84.664), `BIOUG09332-G03` = c(150.52, 121.721, 96.076), `BIOUG09332-G04` = c(175.154, 165.939, 163.944), `BIOUG09332-G05` = c(217.682, 203.291, 184.977), `BIOUG09332-G06` = c(154.436, 116.008, 59.53), `BIOUG09332-G08` = c(177.95, 142.221, 93.299), `BIOUG09332-G09` = c(213.532, 166.837, 79.52), `BIOUG09332-G11` = c(194.616, 164.073, 126.89 ), `BIOUG09332-H01` = c(151.457, 133.94, 142.631), `BIOUG09332-H06` = c(99.24, 68.681, 52.919), `BIOUG09332-H07` = c(218.904, 150.498, 4.059 ), `BIOUG09332-H08` = c(173.864, 142.466, 109.555), `BIOUG09332-H09` = c(195.81, 156.113, 72.609), `BIOUG09332-H10` = c(178.388, 164.201, 154.31), `BIOUG09332-H11` = c(149.498, 136.439, 122.352)), .Names = c("BIOUG06754-A02", "BIOUG06754-A04", "BIOUG06754-A05", "BIOUG06754-A06", "BIOUG06754-A07", "BIOUG06754-A11", "BIOUG06754-A12", "BIOUG06754-B01", "BIOUG06754-B03", "BIOUG06754-B04", "BIOUG06754-B05", "BIOUG06754-B06", "BIOUG06754-B07", "BIOUG06754-B08", "BIOUG06754-B10", "BIOUG06754-B11", "BIOUG06754-B12", "BIOUG06754-C01", "BIOUG06754-C02", "BIOUG06754-C05", "BIOUG06754-C07", "BIOUG06754-C09", "BIOUG06754-C11", "BIOUG06754-C12", "BIOUG06754-D01", "BIOUG06754-D03", "BIOUG06754-D06", "BIOUG06754-D09", "BIOUG06754-D10", "BIOUG06754-D11", "BIOUG06754-D12", "BIOUG06754-E01", "BIOUG06754-E05", "BIOUG06754-E07", "BIOUG06754-E08", "BIOUG06754-E09", "BIOUG06754-E11", "BIOUG06754-F01", "BIOUG06754-F02", "BIOUG06754-F04", "BIOUG06754-F05", "BIOUG06754-F06", "BIOUG06754-F12", "BIOUG06754-G01", "BIOUG06754-G02", "BIOUG06754-G08", "BIOUG06754-G09", "BIOUG06754-G10", "BIOUG06754-G12", "BIOUG06754-H01", "BIOUG06754-H02", "BIOUG06754-H03", "BIOUG06754-H06", "BIOUG06754-H07", "BIOUG06754-H08", "BIOUG07431-A01", "BIOUG07431-A02", "BIOUG07431-A04", "BIOUG07431-A05", "BIOUG07431-A07", "BIOUG07431-A08", "BIOUG07431-A11", "BIOUG07431-B01", "BIOUG07431-B03", "BIOUG07431-B04", "BIOUG07431-B05", "BIOUG07431-B06", "BIOUG07431-B08", "BIOUG07431-B09", "BIOUG07431-B10", "BIOUG07431-B11", "BIOUG07431-C02", "BIOUG07431-C05", "BIOUG07431-C06", "BIOUG07431-C08", "BIOUG07431-C12", "BIOUG07431-D01", "BIOUG07431-D02", "BIOUG07431-D03", "BIOUG07431-D04", "BIOUG07431-D05", "BIOUG07431-D06", "BIOUG07431-D07", "BIOUG07431-D09", "BIOUG07431-D12", "BIOUG07431-E02", "BIOUG07431-E03", "BIOUG07431-E04", "BIOUG07431-E05", "BIOUG07431-E06", "BIOUG07431-E07", "BIOUG07431-E09", "BIOUG07431-E12", "BIOUG07431-F01", "BIOUG07431-F06", "BIOUG07431-G03", "BIOUG07431-G06", "BIOUG07431-G07", "BIOUG07431-G09", "BIOUG07431-G10", "BIOUG07431-G11", "BIOUG07431-H01", "BIOUG07431-H02", "BIOUG07431-H04", "BIOUG07431-H06", "BIOUG07431-H07", "BIOUG07797-A01", "BIOUG07797-A02", "BIOUG07797-A03", "BIOUG07797-A05", "BIOUG07797-A08", "BIOUG07797-A09", "BIOUG07797-A11", "BIOUG07797-B01", "BIOUG07797-B02", "BIOUG07797-C01", "BIOUG07797-C04", "BIOUG07797-C05", "BIOUG07797-C06", "BIOUG07797-C11", "BIOUG07797-D02", "BIOUG07797-D10", "BIOUG07797-F03", "BIOUG07797-F04", "BIOUG07797-F06", "BIOUG07797-F07", "BIOUG07797-G11", "BIOUG07797-H01", "BIOUG07797-H09", "BIOUG09330-A02", "BIOUG09330-A03", "BIOUG09330-A04", "BIOUG09330-A05", "BIOUG09330-A06", "BIOUG09330-A07", "BIOUG09330-A09", "BIOUG09330-A10", "BIOUG09330-A11", "BIOUG09330-A12", "BIOUG09330-B01", "BIOUG09330-B02", "BIOUG09330-B04", "BIOUG09330-B05", "BIOUG09330-B06", "BIOUG09330-B07", "BIOUG09330-B08", "BIOUG09330-B09", "BIOUG09330-B10", "BIOUG09330-B11", "BIOUG09330-B12", "BIOUG09330-C01", "BIOUG09330-C02", "BIOUG09330-C05", "BIOUG09330-C08", "BIOUG09330-D02", "BIOUG09330-D04", "BIOUG09330-D06", "BIOUG09330-D07", "BIOUG09330-D08", "BIOUG09330-D09", "BIOUG09330-D11", "BIOUG09330-D12", "BIOUG09330-E05", "BIOUG09330-E08", "BIOUG09330-E09", "BIOUG09330-E11", "BIOUG09330-E12", "BIOUG09330-F04", "BIOUG09330-F05", "BIOUG09330-F09", "BIOUG09330-F10", "BIOUG09330-F11", "BIOUG09330-F12", "BIOUG09330-G01", "BIOUG09330-G02", "BIOUG09330-G03", "BIOUG09330-G04", "BIOUG09330-G05", "BIOUG09330-G06", "BIOUG09330-G07", "BIOUG09330-G08", "BIOUG09330-G09", "BIOUG09330-G10", "BIOUG09330-G12", "BIOUG09330-H06", "BIOUG09330-H07", "BIOUG09330-H09", "BIOUG09331-A03", "BIOUG09331-A04", "BIOUG09331-A05", "BIOUG09331-A06", "BIOUG09331-A07", "BIOUG09331-A08", "BIOUG09331-A09", "BIOUG09331-A10", "BIOUG09331-A11", "BIOUG09331-A12", "BIOUG09331-B01", "BIOUG09331-B03", "BIOUG09331-B04", "BIOUG09331-B05", "BIOUG09331-B06", "BIOUG09331-B07", "BIOUG09331-B08", "BIOUG09331-B09", "BIOUG09331-B10", "BIOUG09331-B11", "BIOUG09331-B12", "BIOUG09331-C01", "BIOUG09331-C03", "BIOUG09331-C04", "BIOUG09331-C08", "BIOUG09331-C09", "BIOUG09331-C10", "BIOUG09331-C11", "BIOUG09331-C12", "BIOUG09331-D01", "BIOUG09331-D02", "BIOUG09331-D03", "BIOUG09331-D04", "BIOUG09331-D05", "BIOUG09331-D06", "BIOUG09331-D07", "BIOUG09331-D08", "BIOUG09331-D09", "BIOUG09331-D10", "BIOUG09331-D11", "BIOUG09331-D12", "BIOUG09331-E02", "BIOUG09331-E05", "BIOUG09331-E08", "BIOUG09331-E09", "BIOUG09331-E10", "BIOUG09331-E11", "BIOUG09331-E12", "BIOUG09331-F02", "BIOUG09331-F03", "BIOUG09331-F04", "BIOUG09331-F05", "BIOUG09331-F06", "BIOUG09331-F07", "BIOUG09331-F08", "BIOUG09331-F09", "BIOUG09331-F10", "BIOUG09331-G03", "BIOUG09331-G04", "BIOUG09331-G05", "BIOUG09331-G06", "BIOUG09331-G10", "BIOUG09331-G11", "BIOUG09331-H02", "BIOUG09331-H06", "BIOUG09331-H08", "BIOUG09331-H09", "BIOUG09331-H10", "BIOUG09331-H11", "BIOUG09332-A01", "BIOUG09332-A03", "BIOUG09332-A05", "BIOUG09332-A06", "BIOUG09332-A07", "BIOUG09332-A08", "BIOUG09332-A10", "BIOUG09332-B03", "BIOUG09332-B05", "BIOUG09332-B07", "BIOUG09332-B09", "BIOUG09332-B11", "BIOUG09332-C01", "BIOUG09332-C03", "BIOUG09332-C05", "BIOUG09332-C06", "BIOUG09332-C07", "BIOUG09332-C09", "BIOUG09332-C11", "BIOUG09332-C12", "BIOUG09332-D01", "BIOUG09332-D09", "BIOUG09332-E01", "BIOUG09332-E05", "BIOUG09332-E09", "BIOUG09332-E10", "BIOUG09332-E11", "BIOUG09332-F06", "BIOUG09332-F09", "BIOUG09332-F11", "BIOUG09332-G02", "BIOUG09332-G03", "BIOUG09332-G04", "BIOUG09332-G05", "BIOUG09332-G06", "BIOUG09332-G08", "BIOUG09332-G09", "BIOUG09332-G11", "BIOUG09332-H01", "BIOUG09332-H06", "BIOUG09332-H07", "BIOUG09332-H08", "BIOUG09332-H09", "BIOUG09332-H10", "BIOUG09332-H11" ), row.names = c("Red", "Green", "Blue"), class = "data.frame")
These data would be much easier to work with if each sample was a row, and the colors were on the columns: Hmean.transpose <- as.data.frame(t(Hmean)) head(Hmean.transpose) Red Green Blue BIOUG06754-A02 60.517 68.521 107.304 BIOUG06754-A04 150.321 142.084 136.413 BIOUG06754-A05 147.890 133.011 92.305 BIOUG06754-A06 122.536 131.516 153.172 BIOUG06754-A07 123.994 122.671 129.040 BIOUG06754-A11 103.295 96.326 97.662 ... Now it's easier to see which rows have NA values: subset(Hmean.transpose, is.na(Red)) Red Green Blue BIOUG09330-B05 NA NA NA BIOUG09330-C02 NA NA NA If we filter these out, the color conversion will work as expected: Hmean.filter <- subset(Hmean.transpose, !is.na(Red)) data.hsv <- with(Hmean.filter, rgb2hsv(Red, Green, Blue))
If you just want to drop NA values, you can exclude columns that have NA values. For example sapply(Filter(function(x) any(!is.na(x)), Hmean), rgb2hsv, maxColorValue=255) Or using the tidyverse purrr functions, library(purrr) Hmean %>% discard(~any(is.na(.))) %>% map_dfr(rgb2hsv, maxColorValue=255)
Oracle R Enterprise: Error ORE object has no unique key
I need to make a function which call Oracle R Enterprise ore.corr function and output result as a data.frame. My R code here: f_sts_corelation = function(dat, target_col="",corr_type="spearman",group_by="") { v_target_col = gsub("\n","",target_col, fixed = TRUE); v_target_col_list = ""; library("gdata"); for (s_name in strsplit(v_target_col,",")[[1]]) { n_pos = regexpr(".",s_name,fixed = TRUE); if (n_pos > 0) { s_name = substring(s_name,n_pos+1); } s_name = gsub("\"","",s_name, fixed = TRUE); if (is.numeric(dat[,trim(s_name)])) { if (nchar(v_target_col_list)== 0) { v_target_col_list = trim(s_name) } else { v_target_col_list =paste(v_target_col_list,",",trim(s_name)) } } } ore.data = ore.push(dat) v_id = c() v_group=c() v_row = c() v_col = c() v_statistic = c() v_pvalue = c() v_df = c() #group_by = "" s_group_by = trim(gsub("\n","",group_by, fixed = TRUE)); if (nchar(s_group_by) > 0) { n_pos = regexpr(".",s_group_by,fixed = TRUE); if (n_pos > 0) { s_group_by = substring(s_group_by,n_pos+1); } s_group_by = trim(gsub("\"","",s_group_by, fixed = TRUE)); ore.corr.res = ore.corr(ore.data,var = v_target_col_list, group.by = s_group_by) for (i in 1:length(ore.corr.res)) { if (i == 1) { v_group = rep(names(ore.corr.res[i]),length(ore.corr.res[[i]]$ROW)) v_row = as.vector(ore.corr.res[[i]]$ROW) v_col = as.vector(ore.corr.res[[i]]$COL) v_statistic = as.vector(ore.corr.res[[i]][,3]) v_pvalue = as.vector(ore.corr.res[[i]][,4]) v_df = as.vector(ore.corr.res[[i]][,5]) } else { v_group = c(v_group,rep(names(ore.corr.res[i]),length(ore.corr.res[[i]]$ROW))) v_row = c(v_row,as.vector(ore.corr.res[[i]]$ROW)) v_col = c(v_col,as.vector(ore.corr.res[[i]]$COL)) v_statistic = c(v_statistic,as.vector(ore.corr.res[[i]][,3])) v_pvalue = c(v_pvalue,as.vector(ore.corr.res[[i]][,4])) v_df = c(v_df,as.vector(ore.corr.res[[i]][,5])) } } } else if(nchar(s_group_by) == 0) { ore.corr.res = ore.corr(ore.data,var = v_target_col_list) v_group = rep(" ",length(ore.corr.res$ROW)) v_row = as.vector(ore.corr.res$ROW) v_col = as.vector(ore.corr.res$COL) v_statistic = as.vector(ore.corr.res[,3]) v_pvalue = as.vector(ore.corr.res[,4]) v_df = as.vector(ore.corr.res[,5]) } df_res = data.frame(Group_by = v_group, Row = v_row, Col = v_col, Statistic = v_statistic, P_Value = v_pvalue, DF = v_df) } After that, I run the function by following script: dat = iris; corr_type="spearman"; V_target_col= '"IRIS_N$10002"."Sepal.Length", "IRIS_N$10002"."Sepal.Width", "IRIS_N$10002"."Petal.Width", "IRIS_N$10002"."Petal.Length"'; group_by = ' "IRIS_N$10002"."Species" ' df_result = f_sts_corelation(dat,target_col = target_col, group_by = group_by) But following error happen. Error: ORE object has no unique key I have tried to run each R command inside my function step by step and I sure that the Error happen from the last R command: df_res = data.frame(Group_by = v_group, Row = v_row, Col = v_col, Statistic = v_statistic, P_Value = v_pvalue, DF = v_df) I don't know how to avoid this error.
Putting labels inside of a vb.net Array
So i've created 5 different arrays for labels These are Dim ovsoLabels As Label(), customerLabels() As Label, itemNameLabels() As Label, quantityLabels() As Label, topRightItemNameLbls(5) As Label Dim indexLabels() As Label After that I have a function that assigns those variables to actual labels. 'assign labels to array ovsoLabels(0) = oVSO10 ovsoLabels(1) = oVSO11 ovsoLabels(2) = oVSO12 ovsoLabels(3) = oVSO13 ovsoLabels(4) = oVSO14 customerLabels(0) = custLbl20 customerLabels(1) = custLbl21 customerLabels(2) = custLbl22 customerLabels(3) = custLbl23 customerLabels(4) = custLbl24 itemNameLabels(0) = nameLbl1 itemNameLabels(1) = nameLbl2 itemNameLabels(2) = nameLbl3 itemNameLabels(3) = nameLbl4 itemNameLabels(4) = nameLbl5 quantityLabels(0) = quantLbl1 quantityLabels(1) = quantLbl2 quantityLabels(2) = quantLbl3 quantityLabels(3) = quantLbl4 quantityLabels(4) = quantLbl6 indexLabels(0) = indexLbl10 indexLabels(1) = indexLbl11 indexLabels(2) = indexLbl12 indexLabels(3) = indexLbl13 indexLabels(4) = indexLbl14 After that I call the function in my timer tick and this is what i'm triying to do (Not quoteArray has numbers in it 0 - infinity) For i = 0 To 4 If quantityArray(i) = Nothing Then ElseIf quantityArray(i) = 0 Then quantityLabels(i).ForeColor = Drawing.Color.Green customerLabels(i).ForeColor = Drawing.Color.Green itemNameLabels(i).ForeColor = Drawing.Color.Green ovsoLabels(i).ForeColor = Drawing.Color.Green indexLabels(i).ForeColor = Drawing.Color.Green Else quantityLabels(i).ForeColor = Drawing.Color.Black customerLabels(i).ForeColor = Drawing.Color.Black itemNameLabels(i).ForeColor = Drawing.Color.Black ovsoLabels(i).ForeColor = Drawing.Color.Black indexLabels(i).ForeColor = Drawing.Color.Black End If Next This is my first post, so tell me if I can format better. The error I'm getting is that it tells me that there is no object and I need to use the keyword new. Not sure what that means, thanks!
I want to insert "An error occurred object reference not set to an instance of an object while insert and update new record" into database
I want to insert and update data into database on button click but when I fill all fields and start debugging and when dubugger is on buyer code this error is occurred "object reference not set to an instance of an object". Kindly help me....... protected void btnSaveChanges_Click(object sender, EventArgs e) { if (Convert.ToInt32(ViewState["BuyerId"]) > 0) { oBuyer = new Buyer(); //Fill object with Text box values oBuyer.BuyerId = Convert.ToInt32(ViewState["BuyerId"]); oBuyer.BuyerCode = txtBuyerCode.Text; oBuyer.SunCode = txtSunCode.Text; oBuyer.BuyerName = txtBuyerName.Text; oBuyer.BuyerAddress1 = txtBuyerAddress1.Text; oBuyer.BuyerAddress2 = txtBuyerAddress2.Text; oBuyer.BuyerAddress3 = txtBuyerAddress3.Text; oBuyer.BuyerAddress4 = txtBuyerAddress4.Text; oBuyer.BuyerPostCode = txtBuyerPostcode.Text; oBuyer.BuyerPhone = txtBuyerPhone.Text; oBuyer.BuyerFax = txtBuyerFax.Text; oBuyer.BuyerEmail = txtBuyerMail.Text; oBuyer.PfaCode = txtBuyerPFACode.Text; oBuyer.Guarantee = Convert.ToDecimal(txtBuyerGuarantee.Text); oBuyer.DefaultDestination = ddlBuyerDefaultDestination.SelectedValue; oBuyer.HbaLevy = chkHBALeavy.Checked; oBuyer.SfiaWhite = chkSFIAPelagic.Checked; oBuyer.SfiaPelagic = chkSFIAPelagic.Checked; oBuyer.MarketBox = txtBuyerMarketBox.Text; oBuyer.Comments = txtComments.Text; oBuyer.BuyerRegistrationNo = txtBuyerRigistrationNo.Text; } else { //Fill object with Text box values oBuyer.BuyerCode = txtBuyerCode.Text; oBuyer.SunCode = txtSunCode.Text; oBuyer.BuyerName = txtBuyerName.Text; oBuyer.BuyerAddress1 = txtBuyerAddress1.Text; oBuyer.BuyerAddress2 = txtBuyerAddress2.Text; oBuyer.BuyerAddress3 = txtBuyerAddress3.Text; oBuyer.BuyerAddress4 = txtBuyerAddress4.Text; oBuyer.BuyerPostCode = txtBuyerPostcode.Text; oBuyer.BuyerPhone = txtBuyerPhone.Text; oBuyer.BuyerFax = txtBuyerFax.Text; oBuyer.BuyerEmail = txtBuyerMail.Text; oBuyer.PfaCode = txtBuyerPFACode.Text; oBuyer.Guarantee = Convert.ToDecimal(txtBuyerGuarantee.Text); oBuyer.DefaultDestination = ddlBuyerDefaultDestination.SelectedValue; oBuyer.HbaLevy = chkHBALeavy.Checked; oBuyer.SfiaWhite = chkSFIAPelagic.Checked; oBuyer.SfiaPelagic = chkSFIAPelagic.Checked; oBuyer.MarketBox = txtBuyerMarketBox.Text; oBuyer.Comments = txtComments.Text; oBuyer.BuyerRegistrationNo = txtBuyerRigistrationNo.Text; } //enter into nSYScatch6 service bool saveBuyer = nSYSCatch6ServiceInitiator.SaveBuyer(oBuyer); if (saveBuyer) { } Response.Redirect(Request.RawUrl); }
You are missing an oBuyer = new Buyer(); in the else branch.
full page not accessible
I have scraped following page my problem is that I want to redirect my code to desired page . I get the page but its not fully loaded contain many missing information why is that? here is the code include("admin/LIB_http.php"); include("admin/LIB_parse.php"); include("admin/LIB_resolve_addresses.php"); include("admin/LIB_http_codes.php"); include("admin/database.php"); $action = "http://domestic-air-tickets.expedia.co.in/flights/initiate-booking"; $method="GET"; // GET method $ref = "http://domestic-air-tickets.expedia.co.in/flights/results?from=DEL&to=HYD&depart_date=25/08/2012&adults=2&childs=0&infants=0&dep_time=0&class=Economy&airline=&carrier=&x=57&y=16&flexi_search=no "; // Referer variable $data_array['rnd_one'] = "O"; $data_array['from'] = "DEL"; $data_array['to'] = "HYD"; $data_array['depart_date'] = "25/08/2012"; $data_array['adults'] = "2"; $data_array['childs'] = "0"; $data_array['dep_time'] = "0"; $data_array['class'] = "Economy"; $data_array['airline'] =""; $data_array['carrier'] = ""; $data_array['timestamp'] = "1345783916448"; $data_array['companyid'] = "110342"; $data_array['source'] = "WL"; $data_array['BIZ_ACTION_MODE'] = "VIEW_ORDER_CAPTURE"; $data_array['topLevelRateRules'] = '{"cc":{"df":{"pg":{"f":250.0}}},"dc":{"df":{"pg":{"f":250.0}}},"nb":{"df":{"pg":{"f":250.0}}},"kc":{"df":{"pg":{"f":250.0}}},"ca":{"df":{"pg":{"f":250.0}}},"tax":{"CC":0.0, "DC":0.0, "NB":0.0, "KC":0.0, "CA":0.0}}'; $data_array['emiJson'] = "{}"; $data_array['out_no_legs'] = "1"; $data_array['out_base_price'] = "8860"; $data_array['out_adult_base'] = "8860"; $data_array['out_taxes'] = "7678"; $data_array['out_disc'] = "0"; $data_array['out_price'] = "16538"; $data_array['out_fare_key'] = "supp_INDIGO|si-90efea02-d16b-4cec-808a-3d79792ea2b2|fk_6E_311_1345859400000_E0DELHYD_true_"; $data_array['out_leg_aircode_1'] = "6E"; $data_array['out_leg_from_1'] = "DEL"; $data_array['out_leg_fromCityName_1'] = "New Delhi"; $data_array['out_leg_fromAirportName_1'] = "Indira Gandhi Airport"; $data_array['out_leg_to_1'] = "HYD"; $data_array['out_leg_toCityName_1'] = "Hyderabad"; $data_array['out_leg_toAirportName_1'] = "Rajiv Gandhi International"; $data_array['out_leg_via_1'] = "n"; $data_array['out_leg_departs_date_1'] = "25/08/2012"; $data_array['out_leg_flt_num_1'] = "311"; $data_array['out_leg_arrives_date_1'] = "25/08/2012"; $data_array['out_leg_fare_basis_1'] = "E0DELHYD"; $data_array['out_leg_fare_class_1'] = "supp_INDIGO|si-90efea02-d16b-4cec-808a-3d79792ea2b2|"; $data_array['out_leg_cabin_type_1'] = "E"; $data_array['out_leg_refundable_1'] = "R"; $data_array['out_leg_oa_1'] = ""; $data_array['out_leg_arrives_1'] = "09:20"; $data_array['out_leg_departs_1'] = "07:20"; $data_array['out_leg_stops_1'] = "0"; $data_array['out_leg_departure_terminal_1'] = "Terminal 1D"; $data_array['ts'] = "10135741"; $data_array['fromCityName'] = "New Delhi"; $data_array['toCityName'] = "Hyderabad"; $response = http($target=$action, $ref, $method, $data_array, EXCL_HEAD); print_r($response); I can't upload images other wise u can see how page is different from original site page
I Solved it by var_dump the $response and then explode to get required URL