Hello everyone! We are performing targeted human ...
# help
e
Hello everyone! We are performing targeted human DNA sequencing and want to check if there is any source of contamination from other species. Thus, we would need a strategy to efficiently identify non-human reads that we can use then in our pipeline to filter those reads. We ideally would like to start from BAM files (due to prior filtering). We would only need a simple human vs. non-human classification of the reads, not full taxonomic profiling. I've looked at some nf-core pipelines and seems taxprofiler and hgtseq could be the most convenient. However taxprofiler, apart from being a huge pipeline where we don't really need to know the full taxonomy of the reads, it starts with fastq files. On the other hand, hgtseq seem it is more focused on identifying integration sites of the non-host reads. Has anyone experienced this problem before or know of an efficient way to identify non-human reads directly (ideally) from a BAM file without requiring deep taxonomic analysis? Or if anyone knows any subworkflow or module that we could use? Thanks for any help!
t
Do you expect any specific other species? If so there is FastQ Screen, which is reasonably simple (you need a mapper like bowtie, or something) and even comes with a database of common model species (i.e. likely contaminants in a lab; I would definitely add Mycoplasma to those, though), and you can just your own species by providing e.g. a bowtie index for them in the config file. The rnaseq pipeline has Kraken2, which can use a database of all nonredundant nucleotide sequences, and this is being run on the unmapped reads (I would recommend that, since those would be enriched in contaminants). Not sure how easy it is to run this separately. Either way, you will need to start from FASTQs, because only your target species should map to the genome used, so BAMs/CRAMs are not much use for detecting contaminants (unless you are talking about unmapped reads inside a BAM, but those can be easily extracted to FASTQs). If you run just on the unmapped reads, they should fairly small, so even the full taxprofiler might not be too bad. Even if you start from the raw FASTQs, you can subsample them to e.g. 1 million reads, which speeds things up a lot, and you still get all contaminants that make up ~0.001% of your samples (1 in 100,000 gives 10 reads on average). (Of course all these tools have a lot of small amounts of reads that get misassigned, e.g. a human read might be identified as gorilla, or some garbage might randomly match some species, or maybe you sequenced part of a bacterium from the lab air. In the end you have to make a judgement call what you believe. Sometimes looking at the actual alignments is instructive, so tools that show you those reads are preferable.)
e
thanks Thomas for the suggestions! Since basically we expect to have non-human reads especially from bacteria populations (microbiota) I think the best way to identify how much non-human reads we have, we would need to use kraken2 and so we will have to start with the fastq files to do so. Thanks for the help either way!
t
As mentioned, I would use FASTQs that only contain reads that don't map to human, which should be comparatively small. With bacteria there should basically be no reads to with any homology to the human genome.
👍 1