lindsayrutter / bigPint

Bioconductor package that makes BIG data pint-sized.
https://lindsayrutter.github.io/bigPint/
20 stars 7 forks source link

Error in helperTestData(data) : Each treatment group must have at least two replicates #11

Closed elcega closed 3 years ago

elcega commented 3 years ago

I have 17 samples, they are grouped like this (1,1,2,2,2,3,3,3,4,4,5,6,6,6,7,7,7). When running the following code

ret <- plotPCP(data_st, dataMetrics, threshVal = 0.1, lineSize = 0.3,
  lineColor = "magenta", saveFile = FALSE)

I get the following error:

Error in helperTestData(data) : 
  Each treatment group must have at least two replicates
    in the data object. For more information about formatting the data
object, see https://lrutter.github.io/bigPint/articles/data.html

So I tried grouping them in bigger groups (1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3) and still have the same error. So where does it detect or get the "replicate numbers"? Could I still do the analysis as 7 groups but one of the groups has no-replicates (no error bars)?

lindsayrutter commented 3 years ago

Hello @elcega

Thanks for writing about this issue. Yes, I can definitely look into this problem. Would you be able to paste the structure of your data_st and dataMetrics objects (i.e. the output of running str(data_st) and str(dataMetrics))? Then, I can try to replicate the problem and hopefully come up with a solution.

Before looking into it more thoroughly, I naively/hypothetically think I can update the code so that plotPCP() does not require replicates. It could cause some unexpected problems, but if not, hopefully I can make this change. I can try it out (and update you) while I try to solve the fuller issue.

Thanks again. Sincerely, Lindsay

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.