Skip to content

Commit

Permalink
Merge branch 'master' of github.com:grunwaldlab/nf-core-plantpathsurveil
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-foster committed Aug 3, 2023
2 parents 211bfee + 5c0c309 commit 90e689f
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/sendsketch_filter.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@

# Options
ani_threshold <- 90
complt_threshold <- 70

# Parse inputs
args = commandArgs(trailingOnly = TRUE)
data <- read.csv(args[1], skip = 2, header = TRUE, sep = '\t')

# Format table
data$ANI <- as.numeric(sub(pattern = "%", replacement = "", fixed = TRUE, data$ANI))
data$Complt <- as.numeric(sub(pattern = "%", replacement = "", fixed = TRUE, data$Complt))

# Filter table by match quality
data <- data[data$ANI > ani_threshold, ]
data <- data[data$Complt > complt_threshold, ]

# Extract taxon info
data$genus <- gsub(".*g:(.+);s:.*", "\\1", data$taxonomy)
Expand Down
68 changes: 68 additions & 0 deletions modules/nf-core/read2tree/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions modules/nf-core/read2tree/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90e689f

Please sign in to comment.