Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Case study report automation #111

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions inst/report/scripts/run_molevolvr_pipeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ cleanup_blast <- function(infile_blast, acc2info, prefix, wblast = F) {

# TaxID to lineage mapping
cleanedup_blast$TaxID <- as.integer(cleanedup_blast$TaxID)
lineage_map <- fread("~/awasyn/new_trial/lineage_lookup.txt",
lineage_map <- fread("~/data/lineage_lookup.txt",
awasyn marked this conversation as resolved.
Show resolved Hide resolved
header = TRUE, fill = TRUE,
colClasses = lineage_map_cols)

Expand Down Expand Up @@ -841,7 +841,7 @@ run_interproscan <- function(query_file, prefix, outdir) {
# Run InterProScan command
# Construct the command
command <- paste(
"/home/simple/iprdir/interproscan-5.70-102.0/interproscan.sh -i",
"~/interproscan-5.70-102.0/interproscan.sh -i",
awasyn marked this conversation as resolved.
Show resolved Hide resolved
shQuote(query_file),
"-b", shQuote(outfile),
"-f TSV --cpu", Sys.getenv("INTERPROSCAN_CPUS", "4"),
Expand Down Expand Up @@ -875,7 +875,7 @@ ipr2lin <- function(ipr, acc2info, prefix) {
ipr_tax <- left_join(ipr_in, acc2info_out, by = "AccNum")

# read in lineage map
lineage_map <- fread("~/awasyn/new_trial/lineage_lookup.txt",
lineage_map <- fread("~/data/lineage_lookup.txt",
header = T, fill = T)

# merge ipr+info w/ lineage
Expand All @@ -889,7 +889,7 @@ ipr2lin <- function(ipr, acc2info, prefix) {
select(-Species.x, -Species.y)

# add lookup table to iprscan file
lookup_tbl <- fread(input = "~/awasyn/new_trial/cln_lookup_tbl.tsv",
lookup_tbl <- fread(input = "~/data/cln_lookup_tbl.tsv",
sep = "\t", header = T, fill = T) %>%
distinct()
if ("AccNum.x" %in% names(ipr_lin)) {
Expand Down
Loading