-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem with cnvGWAS #21
Comments
Hi @ItahisaMR - thank you for contacting us. @viniciushdasilva can you comment? |
Hi @ItahisaMR, as you can run our example without problems, I can think about two possible problems. (i) Your input is space instead tab delimited. (ii) You might be using an old version, then check with sessionInfo() if you are using the latest CNVRanger release. If none of this options help you, you can send me an email enclosing at least part of your input to allows the reproduction of your error. In this case please send the files to [email protected]. ps. To avoid the error "CNV.gds' has been created or opened." you just need to close your current R session and start a new one. This error indicates that the gds file is open, which should not be the case if the cnvGWAS() complete the analysis successfully. |
Thank you very much for the support. I have checked that the files are tabs delimited (all was ok) and updated both the CNVRanger (1.4.0) and R versions (4.0.0). Now I get another different error: Error in .qqunifPlot(segs.pvalue.gr$MinPvalueAdjusted, auto.key = list(corner = c(0.95, : I've tried with the first chromosome only and I have good results. I don't understand why the error appears when using the complete files and not using only one chromosome. The files are exactly the same, the file of one chromosome is a subset of the complete one. What may be the problem now? Sorry for the troubles. |
Could you try to run your analysis again please with the latest version in github? I just included a line that might help to solve this error. Please let me know if the error persists. To install the current version here use: BiocManager::install("waldronlab/CNVRanger") |
The error persists, sorry. Error in .qqunifPlot(segs.pvalue.gr$MinPvalueAdjusted, auto.key = list(corner = c(0.95, : |
I think I need to take a look in your inputs. Could you please send to me a file input that may retrieve this error? Unfortunately, I am not sure how to explore the possible problems in another way. |
Thank you very much! Now I'm exploring the files... maybe i can find the bad chromosome! Thank you for your time! |
Does this mean that this issue has been resolved? I am closing this issue in this case, feel free to reopen. |
@ItahisaMR I am getting a similar error with GWAS. Have you solved the problem? I have also tried the solution provided by @viniciushdasilva. Still, the problem persists. Any other suggestions? data.folder <- "/Volumes/sgunaseg/PHD_2/Data/3_CNV/data_analysis/1_Sep2020/CNV_Ranger/EBV_Allison/outfile/cnvrangerinputfile/#25script/"
Error in setupCnvGWAS("run", phen.loc = file.path(data.folder, "pheno.for.CNVRanger.csv"), : Here is the sessionInfo details; R version 4.1.0 (2021-05-18) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Hi @SaraNara best not to comment on a closed issue, but rather reopen, or open a new issue. We have replaced PLINK support with R native linear models for CNV GWAS in CNVRanger_v1.8.0, so I believe this is a new issue. @viniciushdasilva can you have a look? |
Hi @SaraNara, It seems that you are using the example provided in #25 with the You just need to venture yourself in the |
Dear @viniciushdasilva ; #phen.info <- setupCnvGWAS("example", cnv.out.loc=re, map.loc=map.loc) When I used the map file I got the above error. So I also tried the map.loc=NULL. Then I am getting the below error. segs.pvalue.gr <- cnvGWAS(phen.info, method.m.test="none") Here are the codes that I used; ----calls2grl----------------------------------------------------------------cnv.calls <- GenomicRanges::makeGRangesListFromDataFrame(cnv.calls, ----phenoData----------------------------------------------------------------#phen.loc <- file.path(data.dir, "Pheno.txt") ----importPhen---------------------------------------------------------------re <- RaggedExperiment::RaggedExperiment(cnv.calls, colData=phen.df) ----map----------------------------------------------------------------------map.loc <- read.delim("~/Data/map_final.txt") ----importPhenRagged---------------------------------------------------------#phen.info <- setupCnvGWAS("example", cnv.out.loc=re, map.loc=map.loc)#Error in setupCnvGWAS("example", cnv.out.loc = re, map.loc = map.loc) : The map should be unique. If multiple populations with different probe map use map.loc=NULL phen.info <- setupCnvGWAS("example", cnv.out.loc=re, map.loc=NULL) ----Wdir---------------------------------------------------------------------all.paths <- phen.info$all.paths ----CNVGWA-------------------------------------------------------------------segs.pvalue.gr <- cnvGWAS(phen.info, method.m.test="none") |
I am contacting you because I am following the CNVRanger manual called "Summarization and quantitative trait analysis of CNV ranges" but I am unable to complete the final GWAS.
The problem is:
I have checked all the input files and there are no NA values in any of them.
I follow all the step without any problem, and with your files I can get the final results. I tried to make the GDS and import the LRR/BAF values, but an error ocurr "CNV.gds' has been created or opened."
Do you know which could be the problem?
I hope you can help me, thank you in advance!
The text was updated successfully, but these errors were encountered: