-
Notifications
You must be signed in to change notification settings - Fork 18
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
STITCH crashed #84
Comments
Hey Richard! As a general comment, I'm not sure I'd advise running pseudoHaploid anymore. I think for most instances, including here, diploid is probably the best bet. The error looks legit, but is happening at iteration 26, which is just after iteration 25, which is the default iteration for splitReadIterations. My suggestion would be to try and turn this off (possibly by setting to NA, or -1, I can't remember). What this tries to do (splitReadIterations) is detect long reads that span ancestral recombination breakpoints and split them, for an overall better model fit. But I feel it is more hassle than it's worth. It's fine to disable it. Best, |
Hi Robbie
I ran haploid mode because K is quite large, but happy to do it in diploid mode(although these are inbred lines).
I’ll try disabling the splitReadIterations too.
Richard
From: rwdavies ***@***.***>
Date: Wednesday, 12 July 2023 at 15:32
To: rwdavies/STITCH ***@***.***>
Cc: Mott, Richard ***@***.***>, Author ***@***.***>
Subject: Re: [rwdavies/STITCH] STITCH crashed (Issue #84)
⚠ Caution: External sender
Hey Richard!
As a general comment, I'm not sure I'd advise running pseudoHaploid anymore. I think for most instances, including here, diploid is probably the best bet.
The error looks legit, but is happening at iteration 26, which is just after iteration 25, which is the default iteration for splitReadIterations. My suggestion would be to try and turn this off (possibly by setting to NA, or -1, I can't remember). What this tries to do (splitReadIterations) is detect long reads that span ancestral recombination breakpoints and split them, for an overall better model fit. But I feel it is more hassle than it's worth. It's fine to disable it.
Best,
Robbie
—
Reply to this email directly, view it on GitHub<#84 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADK6MXGRWQH26UKSMLXJMTXP2YQPANCNFSM6AAAAAA2HSPAUY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
For truly haploid data, diploid isn't so bad. What about "diploid-inbred"? That outputs diploid but assumes the samples are haploid (I think this is what you want to do) p.s. if you want to test it out, you might want to turn on plot_shuffle_haplotype_attempts, then send me the plots, we can discuss. the default parameters are tuned for human / mice, and I'm not sure about Ne / recomb rate for arabidopsis, you might want to e.g. set shuffle_bin_radius lower, we can discuss Robbie |
Well, changing the two parameters has solved the crash problem – it’s now at iteration 35.
I’d bedelighted to chat – maybe I could come and see you in your office as I still live in Oxford!
From: rwdavies ***@***.***>
Date: Wednesday, 12 July 2023 at 15:45
To: rwdavies/STITCH ***@***.***>
Cc: Mott, Richard ***@***.***>, Author ***@***.***>
Subject: Re: [rwdavies/STITCH] STITCH crashed (Issue #84)
⚠ Caution: External sender
For truly haploid data, diploid isn't so bad. What about "diploid-inbred"? That outputs diploid but assumes the samples are haploid (I think this is what you want to do)
p.s. if you want to test it out, you might want to turn on plot_shuffle_haplotype_attempts, then send me the plots, we can discuss. the default parameters are tuned for human / mice, and I'm not sure about Ne / recomb rate for arabidopsis, you might want to e.g. set shuffle_bin_radius lower, we can discuss
Robbie
—
Reply to this email directly, view it on GitHub<#84 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADK6MW3ZWP2OUAEEW4OXTTXP22CJANCNFSM6AAAAAA2HSPAUY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sure, do you want to come grab lunch at Somerville some day perhaps? I'm free quite often now during the summer |
Yes, maybe next week?
Stitch crashed by the way, but over something probably trivial:
[2023-07-12 15:58:02] Start of iteration 32 |
[2023-07-12 15:58:25] Start of iteration 33 |
[2023-07-12 15:58:48] Start of iteration 34 |
[2023-07-12 15:59:12] Start of iteration 35 |
[2023-07-12 15:59:35] Start of iteration 36 |
[2023-07-12 15:59:58] Start of iteration 37 |
[2023-07-12 16:00:21] Start of iteration 38 |
[2023-07-12 16:00:44] Start of iteration 39 |
[2023-07-12 16:01:08] Start of iteration 40 |
[2023-07-12 16:01:23] End EM |
[2023-07-12 16:01:23] Begin making and writing output file |
[2023-07-12 16:01:23] Determine reads in output blocks |
[2023-07-12 16:01:28] Done determining reads in output blocks |
[2023-07-12 16:01:28] Initialize output file |
[2023-07-12 16:01:28] Done initializing output file |
[2023-07-12 16:01:28] Loop over and write output file |
[2023-07-12 16:01:28] Making output piece 1 / 2 |
[2023-07-12 16:01:48] Making output piece 2 / 2 |
[2023-07-12 16:01:54] Done looping over and writing output file |
[2023-07-12 16:01:54] bgzip output file and move to final location |
bgzip: invalid option -- '-' |
bgzip: invalid option -- 't' |
|
Usage: bgzip [options] [file] ... |
|
Options: -c write on standard output, keep original files unchanged |
-d decompress |
-f overwrite files without asking |
-b INT decompress at virtual file pointer INT |
-s INT decompress INT bytes in the uncompressed file |
-h give this help |
|
mv: cannot stat ‘./tair10.STITCH//stitch.1.1.1000000.vcf.gz.building.vcf.gz’: No such file or directory |
[2023-07-12 16:01:54] Done making and writing output file |
[2023-07-12 16:01:54] Remove buffer region from output |
[2023-07-12 16:01:54] Save RData objects to disk |
[2023-07-12 16:01:55] Make metrics plot |
Error in .External2(C_X11, paste0("jpeg::", quality, ":", filename), g$width, : |
unable to start device JPEG |
In addition: Warning message: |
In jpeg(file.path(outputdir, "plots", paste0("metricsForPostImputationQC.", : |
unable to open connection to X11 display ''
From: rwdavies ***@***.***>
Date: Wednesday, 12 July 2023 at 16:02
To: rwdavies/STITCH ***@***.***>
Cc: Mott, Richard ***@***.***>, Author ***@***.***>
Subject: Re: [rwdavies/STITCH] STITCH crashed (Issue #84)
⚠ Caution: External sender
Sure, do you want to come grab lunch at Somerville some day perhaps? I'm free quite often now during the summer
—
Reply to this email directly, view it on GitHub<#84 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADK6MUOAYHYPEYZOV4OMPDXP24AHANCNFSM6AAAAAA2HSPAUY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
how old is your bgzip? maybe update? bgzip is the easiest thing to install since sliced bread this bit "unable to start device JPEG " is on you, google search for how to fix you can potentially get around it using plotAfterImputation = FALSE I think, but plots are nice! next week for lunch is fine, maybe email my gmail |
Will do
Tuesday or Thursday next week work for me
From: rwdavies ***@***.***>
Date: Wednesday, 12 July 2023 at 16:06
To: rwdavies/STITCH ***@***.***>
Cc: Mott, Richard ***@***.***>, Author ***@***.***>
Subject: Re: [rwdavies/STITCH] STITCH crashed (Issue #84)
⚠ Caution: External sender
how old is your bgzip? maybe update? bgzip is the easiest thing to install since sliced bread
this bit "unable to start device JPEG " is on you, google search for how to fix
you can potentially get around it using plotAfterImputation = FALSE I think, but plots are nice!
next week for lunch is fine, maybe email my gmail
—
Reply to this email directly, view it on GitHub<#84 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADK6MRE4LJB6DRIUD6447LXP24QXANCNFSM6AAAAAA2HSPAUY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I’m probably being stupid but from where do I install bgzip ? is it
https://github.com/samtools/htslib/blob/develop/README.md
?
From: rwdavies ***@***.***>
Date: Wednesday, 12 July 2023 at 16:06
To: rwdavies/STITCH ***@***.***>
Cc: Mott, Richard ***@***.***>, Author ***@***.***>
Subject: Re: [rwdavies/STITCH] STITCH crashed (Issue #84)
⚠ Caution: External sender
how old is your bgzip? maybe update? bgzip is the easiest thing to install since sliced bread
this bit "unable to start device JPEG " is on you, google search for how to fix
you can potentially get around it using plotAfterImputation = FALSE I think, but plots are nice!
next week for lunch is fine, maybe email my gmail
—
Reply to this email directly, view it on GitHub<#84 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADK6MRE4LJB6DRIUD6447LXP24QXANCNFSM6AAAAAA2HSPAUY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
http://www.htslib.org/download/ should be in htslib I think |
I think also possibly
should install a copy and symlink it to your STITCH github home dir |
I've just run stitch on 474 recombinant inbred arabidopsis genomes. As test case I am using just the first 1Mb of cars (about 11k SNP sites), with K=19 (the number of founders of the population), without a reference panel. It crashes after 26 iterations with a message:
error: Mat::operator(): index out of bounds
Here is the output log:
error: Mat::operator(): index out of bounds
error: Mat::operator(): index out of bounds
error: Mat::operator(): index out of bounds
error: Mat::operator(): index out of bounds
error: Mat::operator(): index out of bounds
[2023-07-12 15:17:11] Error in forwardBackwardHaploid(sampleReads = sampleReads, eHapsCurrent_tc = eHapsCurrent_tc, :
Mat::operator(): index out of bounds
Error in check_mclapply_OK(single_iteration_results) :
An error occured during STITCH. The first such error is above
In addition: Warning message:
In mclapply(sampleRanges, mc.cores = nCores, FUN = subset_of_complete_iteration, :
all scheduled cores encountered errors in user code
The text was updated successfully, but these errors were encountered: