getTargetRow            package:SAGElyzer            R Documentation

_F_u_n_c_t_i_o_n _t_h_a_t _r_e_t_r_i_e_v_e_s _d_a_t_a _f_r_o_m _s_e_l_e_c_t_e_d _S_A_G_E _l_i_b_r_a_r_i_e_s _f_o_r _a
_g_i_v_e_n _S_A_G_E _t_a_g

_D_e_s_c_r_i_p_t_i_o_n:

     Given a SAGE tag, this function queries an existing table in a
     database and retrieves data across all the selected SAGE libraies
     for that SAGE tag

_U_s_a_g_e:

     getTargetRow(dbArgs, conn, libs, tagColName, targetSAGE, what = "counts")

_A_r_g_u_m_e_n_t_s:

  dbArgs: 'dbArgs' a list containing arguments needed to make
          connection to a database and queries against a table. The
          elements include a DSN under Windows and database name, user
          name, password, and host under Unix plus the names for three
          tables that will be used by functions of SAGElyzer

    conn: 'conn' a connection to a database

    libs: 'libs' a vector of character strings for column names of
          database table where SAGE library data are stored

tagColName: 'tagColName' a character string for the column name of a
          database table where SAGE tags are stored

targetSAGE: 'targetSAGE' a character string for the SAGE tag whose
          counts across SAGE libraries will be retrieved

    what: 'what' a character string that is either "counts", "info", or
          "map" to indicating the what database table to use

_D_e_t_a_i_l_s:

     This function is called by 'SAGELyzer' for the calculation of
     nearest neighbors for a given SAGE tag. It may not have much other
     practical use.

_V_a_l_u_e:

     'getTargetRow' returns a vector containing the data retrieved

_A_u_t_h_o_r(_s):

     Jianhua Zhang

_E_x_a_m_p_l_e_s:

       # No example is give as the function needs a database support

