Entering edit mode
4.9 years ago
a.oates
▴
10
We are working with Nanopore reads using the rapid barcoding kit. We are interested in the bacterial and fungal microbiome of our samples so need to remove host (human) reads (single reads not paired)
For one barcode/sample I have mapped the reads to the human genome using minimap2 and generated the output aln.sam
I am now a little lost on how to use SamTools to remove the host reads -any help greatly appreciated!
Thank you so much!
Can i check my understanding... -buSh i am unsure what this indicates.
-f extracts only those reads which match the specified SAM flag the flag here is 4 which indicates un-mapped reads samtools fastq =output fasta and gzip to zip the file
-b
: bam output,-u
: uncompressed bam output (saves time when passing data to a downstream app),-S
: sam input,-h
: include the header in output (which might not be necessary for samtools fastq downstream, but better to be on the safe side)Edit: added missing colon