-
Notifications
You must be signed in to change notification settings - Fork 108
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
ggplot2 error when generating mosdepth amplicon plot with Swift v2 primers #169
Comments
Thanks @rrdavis77 ! The left and right primers should really be collapsed before that plot is generated to get the coverage across the entire primer region. Can you try re-running with See parameter docs. Not sure if you will still get the error but worth a shot. |
@rrdavis77 I set these in my config file as @drpatelh mentions for Swift v2 primers, which seems to work for me:
I did a test run comparing trimming before and after, which worked quite well. |
Still getting the error when running it as so: same error and still failing to collapse the primer pairs |
my bad, just looked at trim.amplicon.regions.bed.gz files in mosdepth and realized in wassn't scrubbing the Forward primers because i should have written as |
I have pushed a proper fix so the pipeline is able to deal with larger amplicon schemes if required (see 9707937) This now means we shouldn't get this error because I have provided Users can provide their own params {
modules {
'illumina_plot_mosdepth_regions_amplicon' {
args = '--input_suffix .regions.bed.gz --regions_prefix covid19genome_200-29703_'
}
}
} If the SWIFT protocol was being used below is an example plot BEFORE the AFTER the |
Running the viralrecon pipeline (version 1.1.0) using docker. The kit used to make the libraries is the swift v2 (additional coverage) panel. When trying to generate the mosdepth amplicon plots ggplot2 throws an error:
Error: Dimensions exceed 50 inches (height and width are specified in 'cm' not pixels). If you're sure you want a plot that big, use
limitsize = FALSE`.Backtrace:
█
Execution halted`
@drpatelh directed me to the correct area to modify:
viralrecon/bin/plot_mosdepth_regions.r
Line 109 in 75a2f97
I changed the following line from:
ggsave(file=outfile, plot, height=3+(0.3*length(unique(sample_dat$region))), width=16, units="cm")
to
ggsave(file=outfile, plot, height=3+(0.3*length(unique(sample_dat$region))), width=16, units="cm",limitsize = FALSE)
adding
limitsize = FALSE
like the error suggested allowed the pipeline to complete. However, it generates a huge plotall_samples.trim.amplicon.regions.heatmap.pdf
This amplicon panel has 345 primers vs the ~200 primers for ARTIC v3. For ARTIC the plot breaks down the the genome in 98 amplicons as the primers have clear names. For the Swift primers the naming convention of the primers might be throwing off the "grouping" of amplicons.
The text was updated successfully, but these errors were encountered: