-
Notifications
You must be signed in to change notification settings - Fork 4
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
plot_Runs() returns nothing. And empty file when asked to save the plot #38
Comments
Dear @Somatogenomics , thank you for your interest in |
Thank you for the response. Let me provide more context to the problem. I am using the ( Using detectRUNS 0.9.6.9000). Yes, I just use the sample data to plot without any problem (plots shown). My data has a non conventional chromosome (with char and numbers: CA0000123, some like this) and I followed one of the instructions here to convert the chromosome to numerical, which I have done. Also, the summaryList function doesn't run too, throwing up ( Error in names(x) <- value : My question now is, is there any need for me to convert the chromosome to numerical since I am using the GitHub version ( 0.9.6.9000) of detectRUNS? Also, if I want to have the plot and stacked plot to show all the runs across ALL the chromosomes, how would I do that? Thank you for the anticipated feedback. #######Update########## I have read in the ped and map files directly with the non conventional chromosome and no problem was reported. However, I am unable to plot anything. For the manhattanplot, the following erroe was encountered: |===================================================================================| 100%
For the plot and stacked plot: Nothing shows for the ploRUNS() [1] "Current population: mysample" (this was shown for the stacked plot) For the summaryRuns(): Error in names(x) <- value : I got an output table with the tableRuns() function. Overall, I got no plot(s) from the analysis. |
Dear @Somatogenomics , Thank you for your feedback. Regarding your problem, you are using a development version of this library which is not published on CRAN. If I remember correctly, I fix something to deal with |
Dear @bunop thank you for your suggestions. I have followed the first suggestion of converting the chromosome to numerical but still facing the same problem. I have a subset of the files attached here[https://drive.google.com/drive/folders/1hXAARirGYzocYUirrO4BexbqRRlRZUAz?usp=share_link] https://drive.google.com/drive/folders/1hXAARirGYzocYUirrO4BexbqRRlRZUAz?usp=share_link Following are the instructions to reproduce the errors: genotypeFilePath <- "./subset.ped" ############################# sliding-window-based run detectionslidingRuns <- slidingRUNS.run( consecutive SNP-based run detectionconsecutiveRuns <- consecutiveRUNS.run( Summary statssummaryList <- summaryRuns( violin plotplot_ViolinRuns(slidingRuns, method = c("sum", "mean"), outputName = NULL, Manhattanrunsplot_manhattanRuns(slidingRuns, genotypeFilePath, mapFilePath, savePlots = FALSE, plotting resultsplot_Runs(runs = slidingRuns) plot_Runs(runs = slidingRuns, suppressInds = FALSE, savePlots = F, outputName = "ROHom") plot snprunsplot_SnpsInRuns( plot_SnpsInRuns( table of runstableRuns(runs = slidingRuns, genotypeFile = genotypeFilePath, mapFile = mapFilePath, |
Ty. I will take a look. Hope to come back soon |
Dear @Somatogenomics , Unfortunately this sample is too small to act as a test case. My suggestion is take one (or two chromosomes) only for two or a few samples. You can do this using plink software using --chr and --keep option respectively. For example: plink --allow-extra-chr --chr CAJHJT010000001.1 --keep samples_list.txt --file <plink prefix> --out subset where
This is necessary to get a file where there are the same number of SNPs in all files for a subset of samples (the data you sent to me have 30 SNPs in mapfile but all the SNPs for one sample in .ped: I need to truncate all the SNPs after the 30th, and I can't find RUNs even relaxing the parameters). There's another problem I see in some of your SNPs, for example this one:
This SNP is |
Dear @bunop , Thank you so much for you time. I am actually using ONE sample for now. All what you have seen came from one sample. The * is the missing genotype call. I will try and filter out the missing genotype calls ( -- geno ) and subset the sample by chromosome and get back to you afterwards. Thank you once again. |
I used the following:
plot_Runs(runs = slidingRuns)
I used the following to get the file into my current working directory but the file was empty.
plot_Runs(runs = slidingRuns, suppressInds = FALSE, savePlots = TRUE, outputName = "ROHom")
In addition, the following just printed result showed below.
plot_StackedRuns(slidingRuns, savePlots = FALSE, separatePlots = FALSE,
outputName = NULL)
[1] "Current population: mydataname"
The text was updated successfully, but these errors were encountered: