Skip to content

Commit

Permalink
Merge pull request #30 from jhsiao999/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jhsiao999 authored Oct 29, 2019
2 parents 9606bb8 + f8e7a53 commit e0f8604
Show file tree
Hide file tree
Showing 29 changed files with 868 additions and 872 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ peco.Rcheck/
peco*tar.gz
vignettes/*.html
vignettes/*.R
NOTES.txt
peco.Rproj
doc
Meta
Expand Down
18 changes: 10 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Encoding: UTF-8
Type: Package
Package: peco
Version: 0.99.4
Version: 0.99.5
Date: 2019-09-19
Title: A Supervised Approach for **P**r**e**dicting **c**ell Cycle
Pr**o**gression using scRNA-seq data
Authors@R: c(
person("Chiaowen Joyce","Hsiao", email="joyce.hsiao1@gmail.com",
person("Chiaowen Joyce","Hsiao", email="joyce.hsiao1@gmail.com",
role=c("aut","cre")),
person("Matthew", "Stephens", email="stephens999@gmail.com", role="aut"),
person("John", "Blischak", email = "jdblischak@gmail.com", role="ctb"),
person("Peter", "Carbonetto", email = "peter.carbonetto@gmail.com",
role="ctb"))
person("Matthew", "Stephens", email="stephens999@gmail.com", role="aut"),
person("John", "Blischak", email = "jdblischak@gmail.com", role="ctb"),
person("Peter", "Carbonetto", email = "peter.carbonetto@gmail.com",
role="ctb"))
Description: Our approach provides a way to assign continuous cell cycle phase
using scRNA-seq data, and consequently, allows to identify cyclic trend
of gene expression levels along the cell cycle. This package provides method
Expand All @@ -32,14 +32,16 @@ Imports:
graphics,
methods (>= 1.7.1),
parallel (>= 3.5.1),
scater (>= 1.10.1),
SingleCellExperiment (>= 1.4.1),
SummarizedExperiment (>= 1.12.0),
stats,
utils
Suggests:
knitr,
rmarkdown
biocViews:
Sequencing, RNASeq, GeneExpression, Transcriptomics, SingleCell,
Software, StatisticalMethod, Classification, Visualization
Sequencing, RNASeq, GeneExpression, Transcriptomics, SingleCell,
Software, StatisticalMethod, Classification, Visualization
VignetteBuilder: knitr
RoxygenNote: 6.1.1
17 changes: 15 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,38 @@ export(intensity2circle)
export(rotation)
export(shift_origin)
import(SingleCellExperiment)
import(doParallel)
import(foreach)
import(methods)
import(parallel)
importFrom(assertthat,assert_that)
importFrom(SingleCellExperiment,SingleCellExperiment)
importFrom(SingleCellExperiment,cpm)
importFrom(SummarizedExperiment,"assayNames<-")
importFrom(SummarizedExperiment,"assays<-")
importFrom(SummarizedExperiment,"colData<-")
importFrom(SummarizedExperiment,assay)
importFrom(SummarizedExperiment,assayNames)
importFrom(SummarizedExperiment,assays)
importFrom(SummarizedExperiment,colData)
importFrom(assertthat,has_name)
importFrom(circular,coord2rad)
importFrom(conicfit,AtoG)
importFrom(conicfit,EllipseDirectFit)
importFrom(conicfit,Residuals.ellipse)
importFrom(conicfit,calculateEllipse)
importFrom(doParallel,registerDoParallel)
importFrom(genlasso,cv.trendfilter)
importFrom(genlasso,trendfilter)
importFrom(graphics,plot)
importFrom(graphics,points)
importFrom(parallel,makeCluster)
importFrom(parallel,stopCluster)
importFrom(scater,calculateCPM)
importFrom(stats,approxfun)
importFrom(stats,dnorm)
importFrom(stats,loess)
importFrom(stats,prcomp)
importFrom(stats,predict)
importFrom(stats,qqnorm)
importFrom(stats,smooth.spline)
importFrom(stats,var)
importFrom(utils,globalVariables)
6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Changes in version 0.99.3 (2019-09-19)
+ cycle_npreg_outsample outputs SingleCellExperiment object
+ data_transform_quantile inputs and outputs SingleCellExperiment object
+ Fixed @import and @importFrom
+ Fix BiocCheck notes

Changes in version 0.99.3 (2019-09-19)
+ Changed to store data in SingleCellExperiment objects

Expand Down
5 changes: 3 additions & 2 deletions R/circ_dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#'
#' # after rotation of angles, difference is 0 between the original
#' # and the shifted angles
#' theta_compare_rotated <- rotation(ref_var=theta_ref, shift_var=theta_compare)
#' theta_compare_rotated <- rotation(ref_var=theta_ref,
#' shift_var=theta_compare)
#' mean(circ_dist(theta_ref, theta_compare_rotated))
#'
#'
Expand Down Expand Up @@ -77,7 +78,7 @@ rotation <- function(ref_var,shift_var) {
which_cutoff <- which.min(df$dis)

shift_var_new <-
df$flip[which_cutoff]*((shift_var+df$shift[which_cutoff])%%(2*pi))
df$flip[which_cutoff]*((shift_var+df$shift[which_cutoff])%%(2*pi))

return(shift_var_new)
}
Loading

0 comments on commit e0f8604

Please sign in to comment.