Next-Generation Sequencing (NGS) is widely used to investigate genomic variation. In several studies, the genetic variation ofMycobacterium tuberculosishas been analyzed in sputum samples without previous culture, using target enrichment methodologies for NGS. Alignments obtained by different programs generally map the sequences under default parameters, and from these results, it is assumed that onlyMycobacteriumreads will be obtained. However, variants of interest microorganism in clinical samples can be confused with a vast collection of reads from other bacteria, viruses, and human DNA. Currently, there are no standardized pipelines, and the cleaning success is never verified since there is a lack of rigorous controls to identify and remove reads from other sputum-microorganisms genetically similar toM.tuberculosis. Therefore, we designed a bioinformatic pipeline to process NGS data from sputum samples, including several filters and quality control points to identify and eliminate non-M.tuberculosisreads to obtain a reliable genetic variant report. Our proposal uses the SURPI software as a taxonomic classifier to filter input sequences and perform a mapping that provides the highest percentage ofMycobacteriumreads, minimizing the reads from other microorganisms. We then use the filtered sequences to perform variant calling with the GATK software, ensuring the mapping quality, realignment, recalibration, hard-filtering, and post-filter to increase the reliability of the reported variants. Using default mapping parameters, we identified reads of contaminant bacteria, such asStreptococcus,Rhotia,Actinomyces, andVeillonella. Our final mapping strategy allowed a sequence identity of 97.8% between the input reads and the wholeM.tuberculosisreference genomeH37Rvusing a genomic edit distance of three, thus removing 98.8% of the off-target sequences with aMycobacteriumreads loss of 1.7%. Finally, more than 200 unreliable genetic variants were removed during the variant calling, increasing the report’s reliability.