Skip to content
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

ValueError: n_components=3 must be between 0 and min #6

Open
YuChrming opened this issue May 30, 2022 · 3 comments
Open

ValueError: n_components=3 must be between 0 and min #6

YuChrming opened this issue May 30, 2022 · 3 comments

Comments

@YuChrming
Copy link

Dear Writer !
Thanks for your useful pipline, but I meet an error when use SubPhaser.
My command
subphaser -i groups_genome.fasta -c groups_sg.config
My configue file
image
But I have the error
image
What's wrong with me ?

@zhangrengang
Copy link
Owner

@YuChrming,
Your genome has too few differential kmers between subgenomes. It may be artifactual or natural. My suggestions (refer to the Supplementary Material):

  1. Check the HiC contact map whether there are too many switch errors between subgenomes. If not, it is natural.
  2. If natural, it may be because 1) there are too many recombinations between subgenomes after hybridization, or 2) their progenitors are too close (possible autopolyploid) to distinguish. In these cases, subgenome phasing is meaningless and subphaser will not work.
  3. Another possibility is that your genome is hybridizated from an autotetraploid and a distinct diploid, and you can try -baseline -1 to compare the most and the least abundance of kmers.

@YuChrming
Copy link
Author

Thanks for your quick reply!
My Hi-C heatmap is not bad, at least in my opinion.
image
Then, I try -baseline -1 but the error is still.
image
May it is highly homologous? But it should be an allotriploid evidenced by many literatures.

@zhangrengang
Copy link
Owner

  1. Have you removed the check point files (tmp/*ok) before re-run or used the -overwrite option?
  2. What are the evidences for allo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants