Skip to content

About the always.selected parameter problem #108

@hungweichen0327

Description

@hungweichen0327

Dear community,

I use the example data from the corehunter package in R and I tried to use always.selected function. Unfortunately, I failed to select particular IDs I want. Can you help me to fix the problem? Thank you!

The code I ran in R as below:

library (corehunter)

dist.file <- system.file ("extdata", "distances.csv", package = "corehunter")
my.data <- distances (file = dist.file)

core.test <- sampleCore(my.fasta, always.selected = integer(1))
core.test2 <- sampleCore(my.fasta, always.selected = character("Bred_0003"))

After I ran the code:
core.test <- sampleCore(my.fasta, always.selected = integer(1))
or
core.test2 <- sampleCore(my.fasta, always.selected = character("Bred_0003"))

The message showed:

Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  :
  java.lang.IllegalArgumentException: Error while creating subset solution: set of selected IDs should be a subset of set of all IDs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions