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

Request to add a 'plot largest n contigs' for WGSCoveragePlotter #207

Open
DeadlineWasYesterday opened this issue Aug 31, 2022 · 1 comment

Comments

@DeadlineWasYesterday
Copy link

Hi Pierre,
I know you hate people, but I am actually a cat.
I've been using WGSCoveragePlotter a lot and I think it could benefit from having an option to only plot the first n largest contigs. Assemblies have many small, fragmented contigs that make the plot messy. I've been using the --min-contig-length parameter as a workaround. It'll be a whole lot more convenient to just specify an n.

Just a consideration if you end up updating the script later. Thanks.

@lindenb
Copy link
Owner

lindenb commented Sep 1, 2022

Hi, sorry I don't think I will implement this. But how about using

 --skip-contig-regex `sort -t $'\t' -k2,2nr reference.fa.fai |  tail -n +8  | cut -f 1 | paste -s -d '|'`

?

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