Git Product home page Git Product logo

Comments (6)

adw96 avatar adw96 commented on August 15, 2024

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.

bkmontero avatar bkmontero commented on August 15, 2024

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.

paulinetrinh avatar paulinetrinh commented on August 15, 2024

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.

bkmontero avatar bkmontero commented on August 15, 2024

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.

paulinetrinh avatar paulinetrinh commented on August 15, 2024

@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.

bkmontero avatar bkmontero commented on August 15, 2024

Hi @paulinetrinh

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.