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

make complete examples #17

Closed
KamilSJaron opened this issue Sep 27, 2018 · 10 comments
Closed

make complete examples #17

KamilSJaron opened this issue Sep 27, 2018 · 10 comments
Labels
enhancement New feature or request

Comments

@KamilSJaron
Copy link
Owner

We need some pilot examples that will go from raw reads to smudgeplot. We should do both those that are big and complicated as well as those that are small and simple, I htink three examples will be perfect.

Good candidates for demonstration of power:

@KamilSJaron KamilSJaron added the enhancement New feature or request label Sep 27, 2018
@KamilSJaron
Copy link
Owner Author

KamilSJaron commented Oct 1, 2018

  • octaploid strawberry: there two sequencing projects, one has it's own nice webpage, publication and reads. The second one has bit more difficult data, since the coverage is not so high, 2–7× per octoploid chromosome, but maybe thanks to octoploidy one will be still able to see something (like AAAABBBB cluster): pub

@KamilSJaron
Copy link
Owner Author

KamilSJaron commented Oct 3, 2018

I was advised to run it on more classical species:

  • classical diploid models (Arabidopsis, fly etc)
  • tetraploid Xenopus laevis (SAMN04518361) and diploid Xenopus tropicalis or maybe Xenopus borealis (SAMN04518076) (paper)

@KamilSJaron
Copy link
Owner Author

Strawberry tutorial is done here: https://github.com/tbenavi1/smudgeplot/wiki/strawberry-tutorial

Genomescope for determination of L and U:

plot log

plot

plot

These are strawberry smudges:

f_iinumae_smudgeplot_log10

f_ananassa_smudgeplot

@rotifergirl
Copy link

Hi Kamil,

I just wanted to check something with my data, so I re-ran the strawberry example using jellyfish (no problems, nearly identical output), and then I downsampled the Fragaria iinumae reads (I took a random 10% of the paired reads, using seqtk). Then I reran the jellyfish and smudgeplot pipeline, and the results certainly reflect what I have seen with my data now too.

It seems to me that a lower coverage results in:

  1. slightly worse resolution of smudges (I got the warning "detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 35" with the downsampled reads, but not with the full read library)

  2. loss of some smudges, see attached image

frag50x_genome_smudgeplot_log10

Obviously this is not a fault of the program, but users should be aware of coverage based limitations for this program.

For my data, my 1n estimates range from 17 to 27.

@KamilSJaron
Copy link
Owner Author

KamilSJaron commented Jan 8, 2019

Hey Julie, the need for coverage is a good point. Thanks for the feedback!!!

I had troubles to phrase it nicely because it's not that simple. The coverage needed for a nice smudgeplot is dependent on the quality of sequencing (i.e. coverage variance). Smaller variance less coverage is needed to make nice smudges.

I just returned from PopGroup and people are super interested in smudgeplots. I really need to work out better documentation in general. Any input is welcome.

@KamilSJaron
Copy link
Owner Author

The labeling of octoploid straberry is corrected in 01ddc2e:

straw_Rver_1 4_smudgeplot

@KamilSJaron
Copy link
Owner Author

Mountain peanut is a quite nice real-life example of a species that was thought to be hexaploid, but has a kmer data supporting more tetraploidy, discussed in #36

@KamilSJaron
Copy link
Owner Author

Rainbow trout analyses now available #88

@OyukaKh
Copy link

OyukaKh commented Aug 7, 2023

Hi, I see that the issue is closed long before.
But i need some recommendations regarding my Smudgeplots. Because they are not making sense and I am lost at the moment. So i though it might be helpful to write you all. Please help me!

I have a 120bp single-end RadSeq data (>30x coverage) for a number of Salix species, which I want to determine the ploidy level using the Smudgeplot. I run following commands:

kmc -k21 -t16 -m64 -ci1 -cs10000 "${file}.fastq" "${file}_kmcdb" tmp
kmc_tools transform "${file}_kmcdb" histogram "${file}_kmcdb_k21.hist" -cx10000
L=$(smudgeplot.py cutoff "${file}_kmcdb_k21.hist" L) # Determines automatically; L should be like 20 - 200
U=$(smudgeplot.py cutoff "${file}_kmcdb_k21.hist" U) # U should be like 500 - 3000
kmc_tools transform "${file}_kmcdb" -ci"$L" -cx"$U" reduce "${file}_kmcdb_L${L}_U${U}"
kmc_dump "${file}_kmcdb_L${L}_U${U}" "${file}_kmcdb_L${L}_U${U}_coverages.tsv" "${file}_kmcdb_L${L}_U${U}_pairs.tsv" > "${file}_kmcdb_L${L}_U${U}_familysizes.tsv"
kmc_tools transform "${file}_kmcdb" -ci"$L" -cx"$U" dump -s "${file}_kmcdb_L${L}_U${U}.dump"
smudgeplot.py hetkmers -o "${file}_kmcdb_L${L}_U${U}" < "${file}_kmcdb_L${L}_U${U}.dump"
smudgeplot.py plot "${file}_kmcdb_L${L}_U${U}_coverages.tsv" -o "${file}_kmcdb_L${L}_U${U}_smudgeplot" -t "${file}" -q 0.99

and then got this result for Salix retusa (NW17_076_L10_U520 (x41 coverage) and T2221 (x46) :
S_retusa_NW17_076_kmcdb_L10_U520_smudgeplot_smudgeplot_log10
S_retusa_NW17_076_kmcdb_L10_U520_smudgeplot_smudgeplot

This species/individuals should be an octoploid according to our flow cytometry, but the Smudgeplot suggests triploid or diploid.

I did not give a constant number for L and U, because it showed me an error:
"detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 35
detecting two smudges at the same positions, not enough data for this number of bins lowering number of bins to 30 ...".

When I checked GenomeScope, for both individuals, it failed to converge:
Screen Shot 2023-08-07 at 10 54 51 AM
Screen Shot 2023-08-07 at 10 56 05 AM

I have more than 100 individuals that are not fitting to my expectation of ploidy level.
So my question is, what am I possibly doing wrong?
What could be adjusted to get more precise estimation?

@OyukaKh
Copy link

OyukaKh commented Aug 7, 2023

Here are the Smudgeplots for S_retusa_T2221 (second example):

S_retusa_T2221_kmcdb_L54_U400_smudgeplot_smudgeplot_log10
S_retusa_T2221_kmcdb_L54_U400_smudgeplot_smudgeplot

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

No branches or pull requests

3 participants