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

Expanding X axis in spectra plots... #27

Open
goeckeritz opened this issue Feb 16, 2021 · 5 comments
Open

Expanding X axis in spectra plots... #27

goeckeritz opened this issue Feb 16, 2021 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@goeckeritz
Copy link

Hi there,

Very nice tool you have here!! I'm working with a polyploid (4X) and was wondering if there is an easy way to change the x axis in the produced spectra plots. The view cuts off at 45 multiplicity-ish and I really need to see probably up to 80 multiplicity.

I'm somewhat versed in R, but I thought that maybe instead of me accidentally messing something up, you might know the line(s) off the top of your head to change to see higher kmer multiplicity?

Thank you for any help you can provide!

Kindly,
Charity

@arangrhie
Copy link
Contributor

Hi @goeckeritz ,

Specify both -m and -n. I guess you'd need -m 80 for the x axis. Your default run will leave a message what Y value was used. use that for your -n, or use something you'd like. Note that both -m and -n has to be provided.
Rscript $MERQURY/plot/plot_spectra_cn.R --help will tell you more about available options.

Thanks,
Arang

@goeckeritz
Copy link
Author

Hi Arang,

Thanks for the quick response! For anyone else trying to do this --- don't forget to specify the spectra-cn.hist file with -f and the output prefix for your files with -o.

Thanks again, got just what I needed :)

Kindly,
Charity

montA_corrected contigs V5 spectra-cn fl

@arangrhie
Copy link
Contributor

One last thing: add -z *.only.hist for the 0-count histogram (assembly only error kmers). There should be an associated *.only.hist to your spectra-cn.hist. This will make the complete spectra-cn plot.

For the spectra-asm plot, use the same command line with *.dist_only.hist and *.spectra-asm.hist instead, such as plot_spectra_cn.R -z dist_only.hist -f spectra-asm.hist.

PS. your spectra-cn plot looks nice :) Congrats!

@goeckeritz
Copy link
Author

Ah, good catch! Thanks Arang!!!

@arangrhie arangrhie added the documentation Improvements or additions to documentation label May 1, 2021
@arangrhie
Copy link
Contributor

Reopening to remind myself to add documentation

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

No branches or pull requests

2 participants