You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using minimap2 to align the microbiome reads against the host genome, to separate the host reads and to use the unmapped reads for my downstream microbiome analysis.
However my unmapped read number is higher than the input read number.
I would appreciate if you could explain why that is so and if there is any way to achieve my plan to separate the host reads while retaining the number of unmapped (potentially microbiome) reads. thank you!
The text was updated successfully, but these errors were encountered:
Hi there
I am using minimap2 to align the microbiome reads against the host genome, to separate the host reads and to use the unmapped reads for my downstream microbiome analysis.
However my unmapped read number is higher than the input read number.
Below is the commands that I ran:
minimap2 -t 24 -ax map-ont $host $infolder/$filename > $outfolder/$idname.sam
samtools view -@ 24 -f 4 $outfolder/$idname.sam > $outfolder/$idname-nonhost.bam
samtools sort --threads 24 $outfolder/$idname-nonhost.bam > $outfolder/$idname-nonhost-sorted.bam
bamToFastq -i $outfolder/$idname-nonhost-sorted.bam -fq $outfolder/$idname-nonhost.fastq
here is the output determined by Nanoplot
<style> </style>I would appreciate if you could explain why that is so and if there is any way to achieve my plan to separate the host reads while retaining the number of unmapped (potentially microbiome) reads. thank you!
The text was updated successfully, but these errors were encountered: