Comments (6)
Hi @bkmontero -- thanks for opening this issue. Can I please confirm that you have restarted R and repeatedly seen this same crash/error message? It looks like breakaway is not installing properly, or that R's pointers are off, which can usually be addressed with a quit and restart. I also strongly encourage the use of R Projects to avoid pointer issues.
Could you please confirm that you see the same error after a restart, and that you are working in a R Project? Once we hear from you we will dive in deeper.
from breakaway.
Hi Amy,
Thanks for your quick reply!
Yes, I am working in a R project, I consistently get the same error after restarting R, (and after restarting my computer) and also after re-installing breakaway. I am not using pointers.
I am happy to share the data with you if that helps!
from breakaway.
Hi @bkmontero! If you're able to provide a minimal working example that allows me to reproduce the error I can help you troubleshoot this issue. :)
from breakaway.
Hi @paulinetrinh!
Thanks so much for your help! :)
Files:
ps_asv_tab.txt
ps_metadata.txt
# data
asv_tab <- read.table("~/ps_asv_tab.txt"), header = TRUE)
metadata <- read.table("~/ps_metadata.txt"))
# phyloseq object
OTU <- otu_table(asv_tab, taxa_are_rows = FALSE)
samples <- sample_data(metadata)
ps_coel <- phyloseq(OTU, samples)
# estimate richness using breakaway
rich_coel <- breakaway(ps_coel)
rich_coel
meta <- data %>% sample_data %>% as_tibble %>%
mutate("sample_names" = ps_coel %>% sample_names)
meta %>% names
combined_rich_coel <- meta %>% left_join(summary(rich_coel), by = "sample_names")
# fit betta model to breakaway estimates
estimates <- combined_rich_coel$estimate
ses <- combined_rich_coel$estimate
X <- breakaway::make_design_matrix(ps_coel, "Island_Mainland")
betta(estimates, ses, X)$table
Hope this works out, I'm a newbie at posting issues! ๐ฌ
from breakaway.
@bkmontero Thanks for this! I've been looking into this and I realized that you had said you filtered out the "spurious" ASVs. breakaway
actually works best when you do not filter out these less abundant ASVs as we need those for more accurate estimation of diversity. If you try running breakaway on an unfiltered ASV table do you still get an error?
If you do get an error still and are able to share that table I can help troubleshoot from there! :)
from breakaway.
I just realised there might be something wrong with my R installation/computer. When I run the same analysis on my laptop everything works fine. So now I have to figure out why it's not working on my desktop ๐
Any suggestions are much appreciated :)
PS. Thanks for your comment about keeping low abundant ASVs- I'll keep it in mind!
from breakaway.
Related Issues (20)
- Error and warning message when using breakaway() and betta() HOT 7
- population richness estimates are lower than sample richness estimates HOT 1
- error when using the function build_frequency_count_tables () HOT 3
- rename branch `master` to `main` HOT 1
- Betta: Standard errors same for almost all factor levels HOT 2
- breakaway::breakaway for deep-sequencing results having an evenly distributed frequency table HOT 1
- kicked off CRAN, grrrr HOT 5
- CRAN issues: internals from lme4 HOT 1
- checking for unstated dependencies in vignettes ... NOTE HOT 1
- warnings in test-betta.R HOT 1
- Request: Adjust p-value digits HOT 3
- Plug-in estimates and breakaway estimates are the same HOT 3
- Parameter descriptions for objective Bayes functions
- Include new tests to increase code coverage to 90%
- Can this package be used for accurate calculation of alpha diversity in meta-analysis๏ผ HOT 4
- General questions: Estimated richness lower than observed richness HOT 3
- Question regarding the video from Riffomonas Project HOT 1
- Parameter "initial_est" in betta function HOT 2
- Model selection from betta_random() using AIC or alternatives HOT 2
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 breakaway.