Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bharathananth/compareRhythms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: RSC-RP/compareRhythms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 6 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 3, 2023

  1. Copy the full SHA
    9421a62 View commit details

Commits on Nov 6, 2023

  1. Merge pull request #1 from RSC-RP/patch1

    Correct the phase calculation
    lvclark authored Nov 6, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9cbdfe3 View commit details
  2. Copy the full SHA
    13b0830 View commit details

Commits on Jun 18, 2024

  1. Copy the full SHA
    dde5cb1 View commit details
  2. Copy the full SHA
    cde6026 View commit details
  3. Typo

    lvclark committed Jun 18, 2024
    Copy the full SHA
    679f739 View commit details
Showing with 7 additions and 3 deletions.
  1. +1 −1 DESCRIPTION
  2. +6 −2 R/compareRhythms_cosinor.R
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: compareRhythms
Type: Package
Title: Approaches to identify Differential Rhythmicity
Version: 1.0.2
Version: 1.0.3
Author: Bharath Ananthasubramaniam
Maintainer: Bharath Ananthasubramaniam <bharath.ananthasubramaniam@hu-berlin.deu>
Description: This package identifies features that have altered rhythms
8 changes: 6 additions & 2 deletions R/compareRhythms_cosinor.R
Original file line number Diff line number Diff line change
@@ -82,10 +82,12 @@ compareRhythms_cosinor <- function(data, exp_design, period, rhythm_fdr,
results$max_amp <- pmax(results[, paste0(group_id[1], "_amp")],
results[, paste0(group_id[2], "_amp")])

results$p_val_A_or_B <- rhythmic_in_either

results$adj_p_val_A_or_B <- adj_pval

results <- results[(results$adj_p_val_A_or_B < rhythm_fdr) &
(results$max_amp >= amp_cutoff), ]
# results <- results[(results$adj_p_val_A_or_B < rhythm_fdr) &
# (results$max_amp >= amp_cutoff), ]

assertthat::assert_that(assertthat::not_empty(results),
msg = "Sorry no rhythmic genes in either dataset for the thresholds provided.")
@@ -101,6 +103,8 @@ compareRhythms_cosinor <- function(data, exp_design, period, rhythm_fdr,

diff_rhy_results <- diff_rhy_results[results$id]

results$p_val_DR <- diff_rhy_results

results$adj_p_val_DR <- stats::p.adjust(diff_rhy_results,
method = "BH")
results$diff_rhythmic <- results$adj_p_val_DR < compare_fdr