rbbt-dm 1.1.60 → 1.1.62

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/matrix.rb +1 -1
  3. data/share/R/MA.R +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1f04f874e4f4d9e6b7b4dd19fb7f8e1c5c0926f6621cb246324294dab0c9664
4
- data.tar.gz: ddc35ddc2c747a98405dd021e4268379f667859d3f62d0bf4785457dc8ab952c
3
+ metadata.gz: 60fd5ba903985829d71e9253848b9b492542bd596a60916ea4d34fb188d47221
4
+ data.tar.gz: eca5ce505a41e5fdcc0c8920dd5e4ca0a0cc0415520d24d0d9f6051962154c8b
5
5
  SHA512:
6
- metadata.gz: cac8f02f1d4a34658f8cf3fb8f226964b83ae56ebb79fb854f7485b6deb0364a80a7620e1f1b55113e9c18e2b48c43ec080de0eb046a3e1fb762896970a2332e
7
- data.tar.gz: b72acf9908a04cbd0812772456cfe23f52385b830405231a520642a6e08b96773c01f8bb112758ca775e5a86d8ab923d1c325b56efe6561611d7102af7fcfcdf
6
+ metadata.gz: bfb67c1000625acb14778063f08d5e68566b5db779d31c5f84a1f4aa17b18421a06156b39ee9ddf2f30a4387499fe5e810a092e9f0784859f5450d972c9974c3
7
+ data.tar.gz: 9e383e679876331369f76169912d7de34864b569e09e75507e182028156f85762d12ac0d9aaa8f8c39f85d2df01b47f0bdb42597fc4d29ce475db886d3be0223
data/lib/rbbt/matrix.rb CHANGED
@@ -143,7 +143,7 @@ class RbbtMatrix
143
143
  def transpose(id = nil)
144
144
  name = data_file =~ /:>/ ? File.basename(data_file) : data_file
145
145
 
146
- file = Persist.persist(data_file, :tsv, :prefix => "Transpose", :check => [data_file], :dir => RbbtMatrix.matrix_dir.values, :no_load => true) do
146
+ file = Persist.persist(data_file, :tsv, :prefix => "Transpose", :check => [data_file], :other => {:id => id}, :dir => RbbtMatrix.matrix_dir.values, :no_load => true) do
147
147
 
148
148
  data = data_file.tsv(:cast => :to_f, :type => :double).transpose(id)
149
149
 
data/share/R/MA.R CHANGED
@@ -69,7 +69,7 @@ rbbt.dm.matrix.differential.DESeq <- function(expr, subset.main, subset.contrast
69
69
  condition_values = rep(c("contrast"), length(subset.contrast))
70
70
  condition_values = c(condition_values, rep(c("condition"), length(subset.main)))
71
71
  names = c(subset.contrast, subset.main)
72
- conditions = data.frame(condition = as.factor(condition_values))
72
+ conditions = data.frame(condition = factor(condition_values, levels=c("contrast", "condition")))
73
73
 
74
74
 
75
75
  expr = expr[,names]
@@ -79,7 +79,7 @@ rbbt.dm.matrix.differential.DESeq <- function(expr, subset.main, subset.contrast
79
79
 
80
80
  filter <- HTSFilter(dds, s.len=25, plot=FALSE)$filteredData
81
81
 
82
- res <- lfcShrink(filter, type="apeglm", coef="condition_contrast_vs_condition")
82
+ res <- lfcShrink(filter, type="apeglm", coef="condition_condition_vs_contrast")
83
83
 
84
84
  return(res)
85
85
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.60
4
+ version: 1.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util