Skip to content

Commit

Permalink
docs: add number of drugs to gene/drug page
Browse files Browse the repository at this point in the history
  • Loading branch information
markwoon committed Jun 21, 2024
1 parent c4dd9cc commit 87a87e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Genes-and-Drugs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| :--- | :---: | :---: | :---: | :---: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/org/pharmgkb/pharmcat/util/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 87a87e4

Please sign in to comment.