schneebergerlab / findGSE

findGSE is a tool for estimating size of (heterozygous diploid or homozygous) genomes by fitting k-mer frequencies iteratively with a skew normal distribution model.
31 stars 10 forks source link

Error type : "Error in xtmp >= 1 && xtmp <= end_for_mean : 'length = 61065' in coercion to 'logical(1)'" #9

Open simleopold opened 7 months ago

simleopold commented 7 months ago

Hi,

I generated a histo file (7347 obs) and when I try to use findGSE I always receive this error message : Error in xtmp >= 1 && xtmp <= end_for_mean : 'length = 61065' in coercion to 'logical(1)'

I don't understand where it comes from.

Thanks,

HeQSun commented 7 months ago

Hi, would it be possible to share the histo file?

simleopold commented 7 months ago

Hi, yes sure 19mer_out.histo.zip

HeQSun commented 7 months ago

Hi, yes sure 19mer_out.histo.zip

There was no issue with the histo file. Can you show me the cmd that you used?

I assumed the data is from a heterozygous diploid genome, and you sequenced the genome with 12x per haplotype genome. 19mer_out_user_data.pdf

simleopold commented 7 months ago

Here is the cmd I used : findGSE(histo = "19mer_out.histo", sizek=19, outdir="findGSE_test")

HeQSun commented 7 months ago

Here is the cmd I used : findGSE(histo = "19mer_out.histo", sizek=19, outdir="findGSE_test")

the species of interest looks like heterozygous diploid. So you should set up exp_hom=30.

fuckCZJ commented 7 months ago

similar error:

Error in xtmp >= 1 && xtmp <= end_for_mean : 'length = 4536' in coercion to 'logical(1)'

HeQSun commented 7 months ago

similar error:

Error in xtmp >= 1 && xtmp <= end_for_mean : 'length = 4536' in coercion to 'logical(1)'

Can you share your histo file?

fuckCZJ commented 7 months ago

kmer21.zip

HeQSun commented 7 months ago

kmer21.zip

Similarly, you should set up exp_hom=100.

kmer21_usr2.pdf

HeQSun commented 7 months ago

@simleopold , could you try a different version of R?

simleopold commented 7 months ago

Sure, I will try

simleopold commented 7 months ago

I still have the problem, I wanted to know the runtime for my histo file. Do you know it ?

By the way I wanted to thank you for the pdf.

HeQSun commented 7 months ago

I still have the problem, I wanted to know the runtime for my histo file. Do you know it ?

By the way I wanted to thank you for the pdf.

Should be around 1-2 mins.

HeQSun commented 7 months ago

I still have the problem, I wanted to know the runtime for my histo file. Do you know it ? By the way I wanted to thank you for the pdf.

Should be around 1-2 mins.

Could you git again from the repo, re-install, and run it again?

simleopold commented 7 months ago

Sure, I'll try

wozixing commented 6 months ago

Hello,

I generated a histo file by jellyfish and when I try to use findGSE I always receive this error message : Error in genome_size_summary != 0 && genome_size_summary2 != 0 : 'length = 5' in coercion to 'logical(1)'

Here is the cmd I used : findGSE(histo = "kmer21.histo", sizek = 21, exp_hom = 100, outdir = "outputdir") Kmer_21.zip

Thanks

dozhun commented 6 months ago

I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67

dozhun commented 6 months ago

I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67

it works fine in mac with same commands

HeQSun commented 6 months ago

Okay. I will check this tomorrow.Best,HequanOn 15. Jan 2024, at 22:44, dozhun @.***> wrote:

I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67

it works fine in mac with same commands

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

HeQSun commented 6 months ago

could you pls uload the histo fike as well?Best,HequanOn 15. Jan 2024, at 23:06, dozhun @.***> wrote: I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

dozhun commented 6 months ago

could you pls uload the histo fike as well?Best,HequanOn 15. Jan 2024, at 23:06, dozhun @.> wrote: I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.> hifi_cell4.k35.jf.histo.txt

thanks for your help, The kmer size used is 35.

HeQSun commented 6 months ago

Could you git again from the repo, re-install, and run it again?

Hello,

I generated a histo file by jellyfish and when I try to use findGSE I always receive this error message : Error in genome_size_summary != 0 && genome_size_summary2 != 0 : 'length = 5' in coercion to 'logical(1)'

Here is the cmd I used : findGSE(histo = "kmer21.histo", sizek = 21, exp_hom = 100, outdir = "outputdir") Kmer_21.zip

Thanks

There was a related bug which showed up probably due to recent update of R version.

Now it should have been fixed.

Could you git findGSE again from the repo, re-install, and test the new version?

HeQSun commented 6 months ago

I got the same error back 'length = 5' in coercion to 'logical(1)' in a polyploid with het_peak_pos for het fitting: 33 and set exp_hom = 67

it works fine in mac with same commands

There was a bug. I think now it is fixed. Please re-try after installing the updated code.