Comments (11)
Calibrate inference of associations
- Generate 100 datasets with the same total counts per subject (M size vector, where M is the number of subjects), for each dataset
- Number of subjects 30, number of categories 20
- Design matrix would have an intercept column and a factor of interest between -1 and 1
- Setup coefficient to have same intercept (for simplicity), and zero slope
- Generate the data
- Execute sccomp (visit homepage of this repository)
-
- FOR INSTALLATION DO: devtools::install_github("stemangiola/sccomp")
-
- library(sccomp)
-
- Follow the readme
- Count how many categories were labelled as significantly changing (by default we are using the 95% credible interval. Which means that we expect 5% of calls to be false)
from sccomp.
"Setup coefficient to have same intercept (for simplicity), and zero slope"
Are there any other constraints on coefficient? i.e. integer ? Range ?
Also, I assume that "zero slope" means coeff=(beta0,beta0,...,beta0; beta1,beta1,...,beta1); that the first column repeats 20 times.
from sccomp.
"Setup coefficient to have same intercept (for simplicity), and zero slope"
Are there any other constraints on coefficient? i.e. integer ? Range ?
Execute the code at the homepage of this repository and you will see what coefficients you get for a real dataset. You can get the range from those (except the intercept that should be zero for this test)
from sccomp.
About integer or not, it is exactly the same. When you do matrix multiplication between design and coefficient is the same.
from sccomp.
Hi Stefano,
I have successfully created 100 data frames from my function. To detect the change, do I need to use sccomp library? Or I shall find out a way to do that ?
from sccomp.
Hi Stefano,
I have successfully created 100 data frames from my function. To detect the change, do I need to use sccomp library? Or I shall find out a way to do that ?
Yes, run sccomp on your data set. See example dataset from github README. Start from a few and try to draw descriptive statistics.
from sccomp.
which function in the sccomp is used for detecting variation ?
from sccomp.
As I noticed the fuction: res =
counts_obj %>%
sccomp_glm(
~ type,
sample, cell_group, count,
approximate_posterior_inference = FALSE
)
When analyzing multiple data frames, do I need to merge the data frames, or specifying different data frame by "cell goup " above? Also, type=category, count=count, sample=subject in our dictionary, right?
from sccomp.
if you analyse different studies no, you analyse them independently. I don't know what you mean by data frames. Data frame can be anything. Please be more precise.
Also, type=category, count=count, sample=subject in our dictionary, right?
yes
from sccomp.
if you analyse different studies no, you analyse them independently. I don't know what you mean by data frames. Data frame can be anything. Please be more precise.
Also, type=category, count=count, sample=subject in our dictionary, right?
yes
By data frames, I mean the output simulated data frames from my numeric generation process.
from sccomp.
one data frame includes M categories and N subjects.
another data frame includes M categories and N subjects.
one subject does constitute a very small dataset that cannot be used for regression, size = 1
from sccomp.
Related Issues (20)
- dirichlet_multinomial noise model doesn't seem to function HOT 4
- Interaction terms in sccomp_glm HOT 12
- Warings from sccomp_remove_outliers() when sample size is large HOT 1
- Does sccomp require replicates ? HOT 2
- Relationship between CI, minimal effect threshold, and FDR on plots$credible_intervals_1D HOT 2
- Fig 3B and 3 group comparisson HOT 1
- question: scope of the statistical model HOT 6
- sccomp_boxplot() errors when passing a factor variable HOT 3
- custom ggplot theme misses theme element HOT 1
- sccomp plot method -> rstan::gqs throws warning HOT 3
- question about lumping or selecting compositional data HOT 1
- Interpretation when both bars are highlighted versus one HOT 14
- Warning message: In validityMethod(object) HOT 9
- Warning message when duplicated samples HOT 8
- use of inv_logit vs softmax HOT 3
- throw error if missing values due to pivoting long HOT 3
- Best strategy for differential composition estimation in integrated Seurat object HOT 1
- stanfit correspondence parameters variable names HOT 18
- FDR calculation HOT 3
- Question about "test_composition_above_logit_fold_change" parameter in sccomp_glm HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sccomp.