diff --git a/docs/Genes-and-Drugs.md b/docs/Genes-and-Drugs.md index ade16b35..d2fdcbec 100644 --- a/docs/Genes-and-Drugs.md +++ b/docs/Genes-and-Drugs.md @@ -61,7 +61,7 @@ HLA calls, respectively, using sequencing data. ## Drugs -The following table lists drugs for which PharmCAT has recommendations for, along with their sources. +The following table lists the 175 drugs for which PharmCAT has recommendations for, along with their sources. | Drug | CPIC | DPWG | FDA Label | FDA PGx Assoc | | :--- | :---: | :---: | :---: | :---: | diff --git a/src/main/java/org/pharmgkb/pharmcat/util/GeneDrugSummary.java b/src/main/java/org/pharmgkb/pharmcat/util/GeneDrugSummary.java index 6125a94b..e401c594 100644 --- a/src/main/java/org/pharmgkb/pharmcat/util/GeneDrugSummary.java +++ b/src/main/java/org/pharmgkb/pharmcat/util/GeneDrugSummary.java @@ -141,7 +141,8 @@ public void write(Path documentationDir) throws IOException { String phenotypesTemplate = FileUtils.readFileToString(PHENOTYPES_TEMPLATE_FILE.toFile(), Charsets.UTF_8); Path summaryFile = documentationDir.resolve(SUMMARY_FILE_NAME); try (BufferedWriter writer = Files.newBufferedWriter(summaryFile)) { - writer.write(String.format(summaryTemplate, matcherGeneList, outsideCallGeneList, drugList)); + writer.write(String.format(summaryTemplate, matcherGeneList, outsideCallGeneList, drugSourceMap.keySet().size(), + drugList)); } sf_logger.info("Saving summary to {}", summaryFile); diff --git a/src/main/resources/org/pharmgkb/pharmcat/util/summary.md b/src/main/resources/org/pharmgkb/pharmcat/util/summary.md index cc1f1119..8e69cf6a 100644 --- a/src/main/resources/org/pharmgkb/pharmcat/util/summary.md +++ b/src/main/resources/org/pharmgkb/pharmcat/util/summary.md @@ -35,6 +35,6 @@ HLA calls, respectively, using sequencing data. ## Drugs -The following table lists drugs for which PharmCAT has recommendations for, along with their sources. +The following table lists the %d drugs for which PharmCAT has recommendations for, along with their sources. %s