I need to pull the genes with the TRUE values out of each column of the matrix and form a list of them for each of my contrasts (columns). How do I go about doing that?
gcQVals=qvalue(eBgcData$p.value)
print(sum(gcQVals$qvalues<=0.01))
gcQs2=gcQVals$qvalues<=0.01
print(gcQs2[1:5,1:6])
Here is the output:
[1] 17969
              Contrasts
           KOInfvsKOUnInf WTInfvsWTUnInf KOInfvsWTInf KOInfvsWTUnInf
  1415670_at            FALSE          FALSE        FALSE          FALSE
  1415671_at            FALSE          FALSE        FALSE          FALSE
  1415672_at             TRUE          FALSE        FALSE           TRUE
  1415673_at            FALSE          FALSE        FALSE          FALSE
  1415674_a_at          FALSE          FALSE        FALSE          FALSE
          Contrasts
           KOUnInfvsWTInf KOUnInfvsWTUnInf
  1415670_at            FALSE            FALSE
  1415671_at            FALSE            FALSE
  1415672_at            FALSE            FALSE
  1415673_at            FALSE            FALSE
  1415674_a_at          FALSE            FALSE
 
     
    