Comments (8)
Hi,
thank you for reporting the error. It doesn't need to be a number, and it can have mare than one.
Can you check location
is a factor in design?
Can you let me know the package version?
Thanks!
from degreport.
Version is 1.24.1
How do I check if location is a factor in design? Do you mean as if it exists?
This was run after:
dds <- DESeqDataSetFromMatrix(counts,
colData = coldata,
design=~location)
dds <- DESeq(dds)
vsd = vst(dds, blind=F)
from degreport.
I am referring to this line:
res <- degPatterns(ma, design, time = "location")
I am assuming design
is a data.frame, where row.names matches the col.names of matrix. I assume location
is a column in design. You can check if it is a factor doing:
design$location
, if it is a factor it would tell you at the end, showing on you the levels. To convert to a factor:
design$location = as.factor(design$location)
You can always save the environment after you run degPattern and get the error into a file and share the file somehow.
save.image(file = "my_work_space.RData")
Cheers.
from degreport.
I have this error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'as.factor': object of type 'closure' is not subsettable
after running design$location = as.factor(design$location)
design$location
Error in design$location : object of type 'closure' is not subsettable
Check here: https://ln2.sync.com/dl/885678850/xtftv6j9-g6yymv9p-azjyhjcr-qdwdczjm
from degreport.
thank you,
with the enviroment you sent me I can do this:
res <- degPatterns(ma, metadata = colData(dds), time = "location", minc = 1)
design doesn't exists there, so you can get the metadata from the colData of the dds object. minc
needs to be very low when you have few genes like 10. Ideally you want to run this when you have more than 50 genes or so.
Let me know if that line runs for you.
cheers
from degreport.
Yes, it actually worked! Fantastic, thanks I ran this:
ma <- assays(vsd)[[1]][1:100,]
res <- degPatterns(ma, metadata = colData(dds), time = "location", minc = 5)
I have more genes 1200 DEG of ~4000 but it does not let me run for bigger than that because I seem to have NAs?
Error in diana(d, diss = TRUE, stand = FALSE) : NA values in the dissimilarity matrix not allowed.
- How can I remove the NAs from there,? I tried this but does not work
ma[is.na(ma)] <- 0
- is there a function where I can determine the number of groups I'd like? or it is automatic?
from degreport.
Can you try to directly create the matrix with the 1200 DEG and try the command. That error could be because there are genes not expressed and the standard deviation is 0. Normally with real DEG that wonβt happen.
You would be able to select different cutoff. res
will have benchmarking* figures that can help you see how different cutoff change the number of groups. Then you can user res$normalized
and http://lpantano.github.io/DEGreport/reference/degPlotCluster.html to choose what to plot or even select genes for whatever you want to do next.
Let me know how it goes.
from degreport.
Yes, it worked with the matrix, thanks!
res <- degPatterns(dfDEG, metadata = colData(dds), time = "location", minc = 5)
degPlotCluster(res$normalized, "location") ```
from degreport.
Related Issues (20)
- Plot shows only one coldata group on x-axis HOT 3
- lasso2 is an R4 only package HOT 1
- z-scores of gene abudance HOT 10
- Show Expression Changes from One Cluster HOT 5
- Extract One Cluster Plot from degPlotCluster HOT 3
- Extracting Gene-Gene distance matrix from DegPatterns HOT 3
- Sort each cluster graph numerically HOT 1
- Validate the clusters from degPatterns HOT 2
- Regarding Group # from degPatterns Output HOT 2
- Regarding Clustering Based on Expression Pattern HOT 1
- `lasso2` dependency no longer on CRAN HOT 5
- Boxplot position HOT 1
- issues with degPatterns not setting Time in Normalize HOT 8
- degCovariates does not shade by r value HOT 5
- How does degPatterns() decide what height to use for cutting tree HOT 1
- Error in DEGpatterns: could not find function "set" HOT 11
- degPatterns crashes because of stack overloading HOT 7
- `scale` parameter is missing in `degPCA` HOT 1
- Clarification with degMerge function
- New genes that did not exist in dds object suddenly showed up after degPatterns
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 degreport.