Skip to content

Commit

Permalink
Merge pull request #6 from c2-d2/fix-azm
Browse files Browse the repository at this point in the history
Correct azithromycin MICs
  • Loading branch information
karel-brinda authored Jul 3, 2019
2 parents 2ab55ec + 5ec30e5 commit 197627a
Show file tree
Hide file tree
Showing 6 changed files with 1,625 additions and 507 deletions.
13 changes: 13 additions & 0 deletions published/01.correct-azm.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env Rscript

df <- read.delim("table_s1.tsv",
header = TRUE,
stringsAsFactors = F)
df[df$Year < 2005,]$AZI.MIC = 2*df[df$Year < 2005,]$AZI.MIC
write.table(
df,
"table_s1.corrected_azm.tsv",
sep = "\t",
quote = F,
row.names = F
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env Rscript

df.sup <- read.delim("table_s1.tsv",
df.sup <- read.delim("table_s1.corrected_azm.tsv",
header = TRUE,
stringsAsFactors = F)
df.mlst <- read.delim("mlst.tsv",
Expand Down
6 changes: 4 additions & 2 deletions published/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ include ../*.mk
all: isolates.tsv

isolates.tsv: mlst.tsv table_s1.tsv
./merge_and_clean.R
./01.correct-azm.R
./02.merge_and_clean.R

clean:
rm -f .*.complete isolates.tsv
rm -f .*.complete isolates.tsv table_s1.corrected_azm.tsv


Loading

0 comments on commit 197627a

Please sign in to comment.