Skip to content

Commit

Permalink
option to skip individual preprocessing steps by using dummy files
Browse files Browse the repository at this point in the history
  • Loading branch information
f-kretschmer committed Aug 2, 2023
1 parent 6766eac commit c6b6522
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/R_ci/compounds_classyfire.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ for(data_folder in data_folders) {

cat(paste(Sys.time(), "processing", data_folder, "\n"))

# step will be skipped when ".classyfire_done" file is present in folder
if(file.exists(file.path(data_folder, ".classyfire_done"))){
cat(paste("skipping ", data_folder, "\n"))
next
}


# canconical smiles data -----------------------------------------------------
# read canonical smiles data
rt_data_file <- list.files(data_folder,
Expand Down
7 changes: 7 additions & 0 deletions scripts/R_ci/compounds_descriptors.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ for(data_folder in data_folders) {

cat(paste(Sys.time(), "processing", data_folder, "\n"))

# step will be skipped when ".descriptors_done" file is present in folder
if(file.exists(file.path(data_folder, ".descriptors_done"))){
cat(paste("skipping ", data_folder, "\n"))
next
}


# canconical smiles data -----------------------------------------------------
# read canonical smiles data
rt_data_file <- list.files(data_folder,
Expand Down
7 changes: 7 additions & 0 deletions scripts/R_ci/compounds_fingerprints.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ for(data_folder in data_folders) {

cat(paste(Sys.time(), "processing", data_folder, "\n"))

# step will be skipped when ".fingerprints_done" file is present in folder
if(file.exists(file.path(data_folder, ".fingerprints_done"))){
cat(paste("skipping ", data_folder, "\n"))
next
}


# canconical smiles data -----------------------------------------------------
# read canonical smiles data
rt_data_file <- list.files(data_folder,
Expand Down
8 changes: 8 additions & 0 deletions scripts/R_ci/compounds_standardize.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ for(data_folder in data_folders) {

cat(paste(Sys.time(), "processing", data_folder, "\n"))

# step will be skipped when ".standardization_done" file is present in folder
if(file.exists(file.path(data_folder, ".standardization_done"))){
cat(paste("skipping ", data_folder, "\n"))
next
}



# ============================================================================
# read and standardize compound data
# ============================================================================
Expand Down

0 comments on commit c6b6522

Please sign in to comment.