Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infer.clonal.models - bug with alternate cluster column names #40

Open
iryxie opened this issue Jun 20, 2020 · 0 comments
Open

infer.clonal.models - bug with alternate cluster column names #40

iryxie opened this issue Jun 20, 2020 · 0 comments

Comments

@iryxie
Copy link

iryxie commented Jun 20, 2020

In the function infer.clonal.models(), there is the option to specify cluster.col.name (default = 'cluster'), which I've been naming 'cluster_id'. But in the code where infer.clonal.models() calls on generate.boot, cluster.col.name isn't specified and then defaults to 'cluster':

        else if (subclonal.test == "bootstrap") {
            if (is.null(boot)) {
                boot = generate.boot(variants, vaf.col.names = vaf.col.names, 
                  depth.col.names = depth.col.names, vaf.in.percent = vaf.in.percent, 
                  num.boots = num.boots, bootstrap.model = subclonal.test.model, 
                  cluster.center.method = cluster.center, weighted = weighted, 
                  random.seed = random.seed)

Leading to this error:

Error in generate.boot(variants, vaf.col.names = vaf.col.names, depth.col.names = depth.col.names,  : 
  Input error: cluster column name does not appear in variants file.

I think the cluster.col.name=cluster.col.name option is missing from generate.boot()? Changing my column name to the default 'cluster' fixes this error.

Thanks for a very useful package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant