BackgroundThe first step of designing any genome-based molecular diagnostic test is to find a specific target sequence. The modified genome comparison method is one of the easiest and most comprehensive ways to achieve this goal. In this study, we aimed to explain this method with the example of Mycobacterium tuberculosis complex and investigate its efficacy in a diagnostic test.MethodsA specific target was identified using modified genome comparison method and an in-house PCR test was designed. To determine the analytical sensitivity and specificity, 10 standard specimens were used. Also, 230 specimens were used to determine the clinical sensitivity and specificity.ResultsThe identity and query cover of our new diagnostic target (5KST) were ≥ 90% with M. tuberculosis complex. The 5KST-PCR sensitivity was 100% for smear-positive, culture-positive and 85.7% for smear-negative, culture-positive specimens. All of 100 smear-negative, culture-negative specimens were negative in 5KST-PCR (100% clinical specificity). Analytical sensitivity of 5KST-PCR was approximately 1 copy of genomic DNA per microliter.ConclusionsModified genome comparison method is a confident way to find specific targets for use in diagnostic tests. Accordingly, the 5KST-PCR designed in this study has high sensitivity and specificity and can be replaced for conventional TB PCR tests.Electronic supplementary materialThe online version of this article (10.1186/s12879-018-3417-x) contains supplementary material, which is available to authorized users.