-
Notifications
You must be signed in to change notification settings - Fork 13
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
error, unable to find an inherited method for function '.readSampleId' for signature #28
Comments
I could not reproduce this error. If it persists after restarting your R session, could you please share |
was there a solution to this? |
Restart your R session. If that doesn't work and you are seeing this error, please share |
Hello,
Thank you asking it again. I could resolve this error. It was coming from the old version R. I tried to do genesis under R 3.5.1. After installing the packages under 3.6.0, I could run genesis without errors.
Best,
Jaeyoon
From: Stephanie M. Gogarten <notifications@github.com>
Sent: Monday, January 6, 2020 11:48 AM
To: UW-GAC/GENESIS <GENESIS@noreply.github.com>
Cc: Chung, Jaeyoon <jychung@bu.edu>; Author <author@noreply.github.com>
Subject: Re: [UW-GAC/GENESIS] error, unable to find an inherited method for function '.readSampleId' for signature (#28)
Restart your R session. If that doesn't work and you are seeing this error, please share sessionInfo().
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#28?email_source=notifications&email_token=AMXMZGFPJ3LPT5CG2ZVTQSLQ4NODFA5CNFSM4IHMJIZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIGAXJI#issuecomment-571214757>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMXMZGD72K3BTG4VRCZXSLDQ4NODFANCNFSM4IHMJIZQ>.
|
Hate to dredge this up again, but I'm getting the same error. Here's my sessionInfo() Edit to add that I have restarted R and encounter the same issue. R version 4.0.3 (2020-10-10) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I think this is an error that can be resolved by restarting R. Can you try starting a brand-new R session and running the following?
|
Hello, I am having the same issue but this time with pcrelate. I am wondering if the R version or the version of the packages could be the issue? I have run the above code in a new R session, but with pc relate at the end (like below) but pcrelate still generates the error, any thoughts? Code that is sufficient to produce error, R v 4.1.3 : library(GENESIS) gdsfile <- system.file("extdata", "HapMap_ASW_MXL_geno.gds", package="GENESIS") data("HapMap_ASW_MXL_KINGmat") mypcrelate <- pcrelate(gds, pcs = mypcair$vectors[,1:2], |
I have figured out the issue. It is with the way the .gds files are read into R, perhaps in different versions. If your data produces this error, reading the .gds files back into R in different ways can help (which you should probably do after restarting R according to this thread, but in my experience it is not necessary as long as you can reload in the .gds files). It is always best to do so using the two part commands like this: HapMap_geno <- GdsGenotypeReader(filename = "MyGDS.gds") Instead of using other GDS commands like this: Both sets of code produce the same class of object but the package throws an error for the latter and not the former. Apologies to the developers if this is something obvious, but I thought I would just post here in case others run into this issue. Best, Alexander |
@AlexHatoum
vs
|
Hello,
I'd like to ask your help for solving an error. I got this error during the pcair.
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function '.readSampleId' for signature
Could you tell me how to resolve this error?
Thanks,
Jaeyoon
|--+ sample.id { Str8 5109 LZMA_ra(14.5%), 8.4K }
|--+ snp.id { Str8 370810 LZMA_ra(18.5%), 780.1K }
|--+ snp.position { Int32 370810 LZMA_ra(54.9%), 795.7K }
|--+ snp.chromosome { UInt8 370810 LZMA_ra(0.08%), 293B } *
|--+ snp.allele { Str8 370810 LZMA_ra(11.6%), 167.5K }
|--+ genotype { Bit2 5109x370810, 451.7M } *
--+ sample.annot [ data.frame ] *
|--+ sex { Str8 5109 LZMA_ra(2.15%), 117B }
--+ phenotype { Int32 5109 LZMA_ra(0.69%), 149B }
The text was updated successfully, but these errors were encountered: