assignCPAloc | R Documentation |
Assign proteins to the most prevalent subcellular location (meeting a specific cutoff) using CPA estimates, with minimum value being 0.5.
assignCPAloc(assignLocProps, cutoff = 0.5, Locations)
assignLocProps |
matrix of CPA estimates for each protein |
cutoff |
cutoff for assigning a protein to a location |
Locations |
list of subcellular locations |
Single compartment where most of protein resides, undefined if largest CPA value is <0.5
data(protNSA_test)
data(markerListJadot)
data(refLocProfNSA)
protCPAfromNSA_test <- fitCPA(profile=protNSA_test,
refLocationProfiles=refLocProfNSA,
numDataCols=9)
Locations <- unique(markerListJadot$referenceCompartment)
# write table listing predominant CPA assignment of each protein in data set
table(apply(protCPAfromNSA_test[,1:8],1,assignCPAloc,
cutoff=0.5, Locations=Locations))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.