Skip to content

Commit

Permalink
Merge pull request #330 from ConesaLab/aarzalluz-patch-1
Browse files Browse the repository at this point in the history
Add NA replacement value for ratio_TSS column in ML Rescue
  • Loading branch information
Fabian-RY authored Sep 26, 2024
2 parents 31883f0 + fe3e050 commit b240e4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utilities/rescue/run_randomforest_on_reference.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ message("\n\tPerforming ML filter data cleaning on classification...\n")
NA_columns <- c("within_CAGE_peak", 'n_indels', "n_indels_junc", "FL",
"predicted_NMD", "min_sample_cov", "min_cov", "ratio_exp", "bite",
"diff_to_gene_TSS", "diff_to_gene_TTS" , "dist_to_polyA_site",
"dist_to_CAGE_peak", 'within_polyA_site', "polyA_dist")
"dist_to_CAGE_peak", 'within_polyA_site', "polyA_dist",
"ratio_TSS")

replacement.na <- c(0, 0, 0, 0, "non_coding",0, 0,0, FALSE,
-11000, -11000, -11000, -11000, FALSE, -11000)
-11000, -11000, -11000, -11000, FALSE, -11000, 1)

for (i in 1:length(NA_columns)) {
sel.column <- which(colnames (classification) == NA_columns [i])
Expand Down

0 comments on commit b240e4c

Please sign in to comment.