bartongroup / Proteus

R package for analysing proteomics data
MIT License
48 stars 3 forks source link

extract peptide/protein count #44

Closed francescocay closed 3 years ago

francescocay commented 3 years ago

When using plotCount(pepdat), does the function allow extraction of the calculated peptide/protein counts that are used for plotting (i.e. to be subsequently exported in a txt file)?

MarekGierlinski commented 3 years ago

No, it does not provide these numbers, but it is easy to find them. If pdat is a proteusData object, you can find protein counts using

cnt <- apply(pdat$tab, 2, function(x) sum(!is.na(x)))