I'm building a more complete Human database for re...
# mag
n
I'm building a more complete Human database for read subtraction. I concatenated the CHM13 genome (https://github.com/marbl/CHM13?tab=readme-ov-file) with the hg19_main_mask (Brian Bushnell; https://zenodo.org/records/1208052). The uncompressed size of the fasta is 6.3 GB. My goal is to be over cautious to remove as many human reads as possible. See Salzberg paper: https://www.science.org/doi/10.1126/scitranslmed.ads6335 When I ran the pipeline, I got this error during bowtie2-build step. Does the pipeline support the large-index option? When building a large index the file suffix changes to
.bt2l
. If the pipeline cannot support this, any suggestions for a work around?
Copy code
$ cat .command.err
Building a SMALL index
Error: Reference sequence has more than 2^32-1 characters!  Please build a large index by passing the --large-index option to bowtie2-build
Error: Encountered internal Bowtie 2 exception (#1)
Command: /usr/local/bin/bowtie2-build-s --wrapper basic-0 --threads 10 hg19_main_mask+CHM13v2.0.fa.gz hg19_main_mask+CHM13v2 
Deleting "hg19_main_mask+CHM13v2.3.bt2" file written during aborted indexing attempt.
Deleting "hg19_main_mask+CHM13v2.4.bt2" file written during aborted indexing attempt.
We are actually planning on replacing the entire host-removal step with a dedicated tool : https://github.com/nf-core/mag/pull/857
You also could consider running https://github.com/nf-core/detaxizer first instead, which is a dedicated pipeline for host removal
and pass teh 'clean' reads to mag
n
Thank you for the info. This is interesting and complicated. For my pipeline of metagenomics analysis in tumors, it sounds like I need to run detaxizer first to get the clean reads. Then I would use these clean reads in 1) taxprofiler for short read mapping results and 2) mag for assembly analysis. Sound reasonable?
j
Precisely, and that's in fact the direction we are trying to move towards: smaller but higher quality pipeline dedicated to specific things
That way it makes it more efficient as you can chain things
👍🏽 1
a
Pipeline chaining sounds like a great idea. Is there any support for doing it automatically? Or do the users have to manage it manually, themselves?
j
No support. Lots of discussions - we've tried a few times to find a nice way to do it in the metaomics pipelines in a consistent way but it is proving to be very hard technically to do it in an elegant msnner