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

specify list of scaffolds for wgsCoveragePlotter #202

Open
PAMorin opened this issue Jun 17, 2022 · 2 comments
Open

specify list of scaffolds for wgsCoveragePlotter #202

PAMorin opened this issue Jun 17, 2022 · 2 comments

Comments

@PAMorin
Copy link

PAMorin commented Jun 17, 2022

Verify

Subject of the issue

specify list of scaffolds for wgsCoveragePlotter

Your environment

Steps to reproduce

I want to plot coverage of only a specific subset of scaffolds, but all scaffolds are named sequentially (e.g., scaffold_1, scaffold_2, etc.). Is there a way to substitute a list variable or array for the --include-contig-regex regular expression:

e.g.,
chr=("scaffold_1" "scaffold_2" "scaffold_3" "scaffold_4" "scaffold_5" "scaffold_10")
java -jar ${covplot}/dist/wgscoverageplotter.jar --dimension 1500x500 -C -1 --clip -R ${REFDIR}/${REF} ${BAMDIR}/${BAMFILE} --include-contig-regex ${chr} --percentile median > ${OUTDIR}/${BAMFILE}_covplot_allChrom.svg

Expected behaviour

WGS coverage plot with only the specified scaffolds

Actual behaviour

WGS coverage plot of only the first scaffold in the list $chr

@lindenb
Copy link
Owner

lindenb commented Jun 17, 2022

@PAMorin I'm sorry I think I don't really understand the problem.

How about using a regular expression like

(scaffold_1|scaffold_2|scaffold_3|scaffold_4|scaffold_5|scaffold_10)

?

@PAMorin
Copy link
Author

PAMorin commented Jun 17, 2022 via email

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