sampleWeights: Accessor function for the 'sampleWeights' information in a...

Description Usage Arguments Author(s) Examples

Description

TODO

Usage

1
2
3
4
## S4 method for signature 'mRMRe.Data'
sampleWeights(object)
## S4 replacement method for signature 'mRMRe.Data'
sampleWeights(object) <- value

Arguments

object

a mRMRe.Data object.

value

a numeric vector containing the biases of each sample in the mutual information computation.

Author(s)

Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.thread.count(2)
data(cgps)
feature_data <- mRMR.data(data = data.frame(cgps.ge))

# Uniform weight (default)
sampleWeights(feature_data)

# Random weighting  
sampleWeights(feature_data) <- runif(sampleCount(feature_data))
# Show result
sampleWeights(feature_data)

Example output

Loading required package: survival
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

[1] 2
          22RV1            5637           639_V           647_V             697 
              1               1               1               1               1 
          769_P           786_0         8_MG_BA           A101D            A204 
              1               1               1               1               1 
         A3_KAW            A431            A498          A4_FUK            A549 
              1               1               1               1               1 
           A673            ACHN          ALL_PO           AM_38          AN3_CA 
              1               1               1               1               1 
         ASPC_1           ATN_1          BALL_1        BB30_HNC        BB49_HNC 
              1               1               1               1               1 
       BB65_RCC           BCPAP           BE_13          BECKER             BEN 
              1               1               1               1               1 
       BFTC_905        BFTC_909             BHY           BPH_1           BT_20 
              1               1               1               1               1 
         BV_173          C2BBE1             C32          C_33_A             C3A 
              1               1               1               1               1 
          C8166          CA9_22          CAKI_1         CAL_120          CAL_27 
              1               1               1               1               1 
         CAL_33          CAL_39          CAL_51          CAL_54          CAL_62 
              1               1               1               1               1 
         CAL_72        CAL_85_1          CALU_3          CALU_6         CAPAN_1 
              1               1               1               1               1 
        CAPAN_2           CAS_1          CA_SKI        CCRF_CEM         CFPAC_1 
              1               1               1               1               1 
       CGTH_W_1           CHL_1         CHP_212    COLO_320_HSR        COLO_668 
              1               1               1               1               1 
       COLO_678        COLO_679       COLO_680N        COLO_684        COLO_792 
              1               1               1               1               1 
       COLO_824         COR_L23           CTB_1            CW_2         D_247MG 
              1               1               1               1               1 
        D_263MG        D_283MED         D_336MG         D_392MG         D_502MG 
              1               1               1               1               1 
           DAOY              DB      DBTRG_05MG             DEL      DETROIT562 
              1               1               1               1               1 
          DJM_1           DK_MG         DMS_273          DOHH_2             DOK 
              1               1               1               1               1 
     DOTC2_4510            DSH1          DU_145        EC_GI_10          EFM_19 
              1               1               1               1               1 
         EFO_21          EFO_27           EGI_1            EM_2       EPLC_272H 
              1               1               1               1               1 
            ES1             ES3             ES5             ES6             ES7 
              1               1               1               1               1 
            ES8           ETK_1            EW_1           EW_11           EW_13 
              1               1               1               1               1 
          EW_16           EW_22           EW_24            FADU         FTC_133 
              1               1               1               1               1 
          G_401            GAMG            GCIY            GI_1         GI_ME_N 
              1               1               1               1               1 
         GMS_10            GP5D           GR_ST          GT3TKB              H4 
              1               1               1               1               1 
         HAL_01         HCC1395         HCC1806         HCC1954           HCC38 
              1               1               1               1               1 
          HCC70           HCE_4         HCT_116           HEC_1             HEL 
              1               1               1               1               1 
         HGC_27              HH           HL_60             HLE              HN 
              1               1               1               1               1 
       HO_1_N_1          HOP_92             HOS         HPAF_II           HSC_3 
              1               1               1               1               1 
             HT         HT_1080         HT_1376            HT_3          HTC_C3 
              1               1               1               1               1 
         HUCCT1         HUO_3N1            HUO9          HUP_T3           IGR_1 
              1               1               1               1               1 
       IST_MES1         IST_SL1             J82           JEG_3      J_RT3_T3_5 
              1               1               1               1               1 
          JVM_3              K5          KALS_1      KARPAS_299           KE_37 
              1               1               1               1               1 
            KGN         KINGS_1           KM_H2          KMOE_2          KNS_42 
              1               1               1               1               1 
      KNS_81_FD          KOSC_2            KP_4         KP_N_YS            KS_1 
              1               1               1               1               1 
       KU_19_19       KURAMOCHI        KYSE_140        KYSE_150        KYSE_180 
              1               1               1               1               1 
       KYSE_270        KYSE_410        KYSE_450        KYSE_510        KYSE_520 
              1               1               1               1               1 
        KYSE_70           L_363           L_428         LAMA_84           LAN_6 
              1               1               1               1               1 
     LB2241_RCC      LB2518_MEL       LB771_HNC       LB831_BLC       LCLC_103H 
              1               1               1               1               1 
           LK_2          LN_405 LNCAP_CLONE_FGC            LOVO         LS_1034 
              1               1               1               1               1 
          22RV1            5637           639_V           647_V             697 
    0.925361845     0.925600075     0.927969012     0.693802690     0.010034579 
          769_P           786_0         8_MG_BA           A101D            A204 
    0.819202112     0.095760569     0.276349289     0.296901546     0.568112341 
         A3_KAW            A431            A498          A4_FUK            A549 
    0.989523756     0.986714076     0.260603285     0.053175352     0.158165205 
           A673            ACHN          ALL_PO           AM_38          AN3_CA 
    0.891965128     0.429651542     0.363869268     0.548989154     0.989924366 
         ASPC_1           ATN_1          BALL_1        BB30_HNC        BB49_HNC 
    0.512973273     0.181166373     0.566365532     0.123381513     0.172939511 
       BB65_RCC           BCPAP           BE_13          BECKER             BEN 
    0.543996144     0.895991203     0.458829502     0.625470466     0.390336168 
       BFTC_905        BFTC_909             BHY           BPH_1           BT_20 
    0.316883636     0.458272088     0.500491747     0.013511696     0.295676075 
         BV_173          C2BBE1             C32          C_33_A             C3A 
    0.849067059     0.202747775     0.201100490     0.876706505     0.360831912 
          C8166          CA9_22          CAKI_1         CAL_120          CAL_27 
    0.655540514     0.761218532     0.115393006     0.684216831     0.635348035 
         CAL_33          CAL_39          CAL_51          CAL_54          CAL_62 
    0.816796076     0.435302983     0.417577983     0.902252570     0.150711944 
         CAL_72        CAL_85_1          CALU_3          CALU_6         CAPAN_1 
    0.906099123     0.780412068     0.292079348     0.852808573     0.979268057 
        CAPAN_2           CAS_1          CA_SKI        CCRF_CEM         CFPAC_1 
    0.193014885     0.099540022     0.684113548     0.607973876     0.741131923 
       CGTH_W_1           CHL_1         CHP_212    COLO_320_HSR        COLO_668 
    0.922009286     0.178389166     0.720337661     0.247477976     0.566936603 
       COLO_678        COLO_679       COLO_680N        COLO_684        COLO_792 
    0.137763947     0.667928610     0.268986707     0.378705040     0.344140169 
       COLO_824         COR_L23           CTB_1            CW_2         D_247MG 
    0.125687063     0.953946726     0.032765933     0.169766220     0.688202661 
        D_263MG        D_283MED         D_336MG         D_392MG         D_502MG 
    0.401467405     0.975557146     0.410283394     0.459765186     0.001131665 
           DAOY              DB      DBTRG_05MG             DEL      DETROIT562 
    0.419401759     0.619056663     0.393998031     0.215682462     0.853811135 
          DJM_1           DK_MG         DMS_273          DOHH_2             DOK 
    0.871667247     0.272364033     0.307733124     0.108820789     0.692601426 
     DOTC2_4510            DSH1          DU_145        EC_GI_10          EFM_19 
    0.183758409     0.335421187     0.302016199     0.908436483     0.078315441 
         EFO_21          EFO_27           EGI_1            EM_2       EPLC_272H 
    0.776874638     0.760547014     0.949065095     0.018387488     0.456466887 
            ES1             ES3             ES5             ES6             ES7 
    0.167286818     0.044087796     0.476324134     0.695820245     0.399066164 
            ES8           ETK_1            EW_1           EW_11           EW_13 
    0.898252495     0.656635875     0.900691111     0.534247536     0.335822619 
          EW_16           EW_22           EW_24            FADU         FTC_133 
    0.662763437     0.919341308     0.575303797     0.901050391     0.308391946 
          G_401            GAMG            GCIY            GI_1         GI_ME_N 
    0.029309159     0.016825908     0.102051132     0.264425116     0.242373788 
         GMS_10            GP5D           GR_ST          GT3TKB              H4 
    0.880858428     0.585918840     0.853488485     0.020600064     0.483284977 
         HAL_01         HCC1395         HCC1806         HCC1954           HCC38 
    0.758884967     0.810369001     0.546809532     0.655266791     0.226486517 
          HCC70           HCE_4         HCT_116           HEC_1             HEL 
    0.720862275     0.252101165     0.565570313     0.147401189     0.340138888 
         HGC_27              HH           HL_60             HLE              HN 
    0.912863493     0.812593337     0.906591151     0.936198942     0.985805047 
       HO_1_N_1          HOP_92             HOS         HPAF_II           HSC_3 
    0.554235314     0.616718504     0.910319529     0.499178316     0.542197502 
             HT         HT_1080         HT_1376            HT_3          HTC_C3 
    0.033289327     0.947115449     0.990392917     0.432012334     0.443531275 
         HUCCT1         HUO_3N1            HUO9          HUP_T3           IGR_1 
    0.366172663     0.171407527     0.105258675     0.226581133     0.350440541 
       IST_MES1         IST_SL1             J82           JEG_3      J_RT3_T3_5 
    0.521609646     0.178543840     0.779673990     0.161254238     0.571684243 
          JVM_3              K5          KALS_1      KARPAS_299           KE_37 
    0.917808149     0.314651346     0.318082585     0.180395962     0.996633001 
            KGN         KINGS_1           KM_H2          KMOE_2          KNS_42 
    0.592908814     0.846305840     0.315268191     0.516324501     0.086531402 
      KNS_81_FD          KOSC_2            KP_4         KP_N_YS            KS_1 
    0.369961187     0.029828463     0.814802570     0.200623166     0.116211525 
       KU_19_19       KURAMOCHI        KYSE_140        KYSE_150        KYSE_180 
    0.279526116     0.206586446     0.516937485     0.086294648     0.762096483 
       KYSE_270        KYSE_410        KYSE_450        KYSE_510        KYSE_520 
    0.699493962     0.345676242     0.200955492     0.599959119     0.575828264 
        KYSE_70           L_363           L_428         LAMA_84           LAN_6 
    0.637818644     0.053944006     0.071007725     0.832966569     0.705798579 
     LB2241_RCC      LB2518_MEL       LB771_HNC       LB831_BLC       LCLC_103H 
    0.414211423     0.022673815     0.729265696     0.615315314     0.839984657 
           LK_2          LN_405 LNCAP_CLONE_FGC            LOVO         LS_1034 
    0.371591706     0.644696963     0.363494487     0.135593664     0.156640474 

mRMRe documentation built on Sept. 5, 2021, 5:26 p.m.