Proteomicslab57357 / UniprotR

Retrieving Information of Proteins from Uniprot
GNU General Public License v3.0
59 stars 18 forks source link

export PlotGoInfo #9

Closed cculma closed 4 years ago

cculma commented 4 years ago

Hi, thank you for the package! Is there a way to save the table information of PlotGOInfo in a data.frame?

Best,

Cesar

MohmedSoudy commented 4 years ago

Thanks for your comment. you can use the following lines

  #GOObj is the data frame returned by "GetProteinGOInfo" function, use 3 for biological process, 4 for molecular function and 5 for cellular component
  DF <- Goparse(GOObj , 3)
  #Select top 10 frequent terms
  DF <- DF[1:10,]
  #Remove NAs if exists 
  DF <- na.omit(DF)