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

Training in parallel causes error for loci "other" than HLA #13

Open
shubhamsaini opened this issue Sep 18, 2020 · 2 comments
Open

Training in parallel causes error for loci "other" than HLA #13

shubhamsaini opened this issue Sep 18, 2020 · 2 comments
Assignees
Labels

Comments

@shubhamsaini
Copy link

shubhamsaini commented Sep 18, 2020

I am trying to train HIBAG models for loci other than HLA. Training the models in parallel causes the following error:

> hlaAllele(true_kir_types_train$sample.id, H1=true_kir_types_train$allele1, H2=true_kir_types_train$allele2, locus="any")
....
....
....
> hlaParallelAttrBagging(cl, train.allele, traingeno, nclassifier=10, auto.save="output.RData")

Calculating matching proportion:
Error in hlaCombineAllele(res, rv[[i]]) : 
  H1$pos.start == H2$pos.start is not TRUE

However, if I change the locus parameter in hlaAllele to some HLA gene, no error is thrown:

> hlaAllele(true_kir_types_train$sample.id, H1=true_kir_types_train$allele1, H2=true_kir_types_train$allele2, locus="A")
@zhengxw-ab
Copy link

hlaAllele(sample.id, H1, H2, max.resolution="", locus="any", assembly="auto",
         locus.pos.start=NA_integer_, locus.pos.end=NA_integer_, prob=NULL,
         na.rm=TRUE)

You will need to specify locus.pos.start and locus.pos.end.

@shubhamsaini
Copy link
Author

Thanks @zhengxw-ab
But specifying the locus.pos.start and locus.pos.end still causes the same error.

@zhengxwen zhengxwen added the bug label Sep 21, 2020
@zhengxwen zhengxwen self-assigned this Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants