Giter Club home page Giter Club logo

Comments (3)

FrederickHuangLin avatar FrederickHuangLin commented on June 18, 2024 1

Hi @jakob-wirbel,

Thank you very much for catching this! The package will be updated shortly to fix this BUG!

Best,
Huang

from ancombc.

FrederickHuangLin avatar FrederickHuangLin commented on June 18, 2024

Hi @lakerwsl,

Thanks for posting your question! In order for me to better dig into the problem, may you please share with your codes and a mock dataset (with all confidential information marked)?

Thank you,
Huang

from ancombc.

jakob-wirbel avatar jakob-wirbel commented on June 18, 2024

Hey hey 👋
i ran into the same problem and i think i found the reason for the error 😄

If you have a single metadata variable (basically, only the group label) AND you would remove samples with the minimum library size cutoff, this part of the code will return the metadata as a vector, not as a data.frame:

# Discard samples with library size < lib_cut
lib_size = colSums(feature_table, na.rm = TRUE)
if(any(lib_size < lib_cut)){
   subj_del = which(lib_size < lib_cut)
   feature_table = feature_table[, - subj_del]
   meta_data = meta_data[- subj_del, ]
}

I think it could be fixed very quickly by changing the line to:

meta_data = meta_data[- subj_del, , drop=FALSE]

Cheers

from ancombc.

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.