Skip to content

Commit

Permalink
EOD
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Oct 18, 2022
1 parent 88cded3 commit 8ecbffb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Description:
These answers are not published yet.
License: GPL-3
Encoding: UTF-8
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
Imports:
data.table,
dplyr,
Expand Down
3 changes: 3 additions & 0 deletions R/calculate-overlap.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ calculate_overlap <- function(
protein_lengths_filename,
tmh_overlapping_binders_as_data_filename
) {
tmh.9mers <- NULL; rm(tmh.9mers) # nolint, fixes warning: no visible binding for global variable


load(tmh_9mers_as_data_filename) # Used to be load("work/tmh.9mers.Rdata")
pldf <- utils::read.table(protein_lengths_filename, row.names=1 )
pl <- pldf[,1]
Expand Down
2 changes: 2 additions & 0 deletions R/correlate-to-hydrophobicity.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ correlate_to_hydrophobicity <- function(
tmh_overlapping_binders_as_data_filename,
figure_1_d_filename
) {
r <- NULL; rm(r) # nolint, fixes warning: no visible binding for global variable

testthat::expect_true(file.exists(tmh_overlapping_binders_as_data_filename))

# loads 'r'
Expand Down
2 changes: 2 additions & 0 deletions R/hydrophobe-controls.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ hydrophobe_controls <- function(
proteome_9mer_hydrophobicity_as_data_filename,
tmh_9mers_as_data_filename
) {
tmh.9mers <- NULL; rm(tmh.9mers) # nolint, fixes warning: no visible binding for global variable

load(proteome_9mer_hydrophobicity_as_data_filename) # Used to be 'load("work/proteome.9mer.hydrophobicity.Rdata")'
load(tmh_9mers_as_data_filename) # Used to be load("work/tmh.9mers.Rdata")

Expand Down
2 changes: 2 additions & 0 deletions R/hydrophobicity-distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ hydrophobicity_distribution <- function(
kyte_doolittle_scale_as_data_filename,
proteome_9mer_hydrophobicity_as_data_filename
) {
proteome <- NULL; rm(proteome) # nolint, fixes warning: no visible binding for global variable

load(proteome_as_data_filename) # Used to be 'load("work/proteome.Rdata")'
load(kyte_doolittle_scale_as_data_filename) # Used to be 'load("data/kyte.doolittle.scale.Rdata")'

Expand Down
1 change: 1 addition & 0 deletions R/simplify_haplotype_names.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#' Simplify haplotype names to numbers
#' Will be NA for unknown haplotypes
#' @inheritParams default_params_doc
#' @export
simplify_haplotype_names <- function(haplotype_names) {
simple_haplotype_names <- rep(NA, length = length(haplotype_names))
Expand Down

0 comments on commit 8ecbffb

Please sign in to comment.