Giter VIP home page Giter VIP logo

Comments (1)

dBenedek avatar dBenedek commented on July 19, 2024

I also get the error message for a row with 2 unique values and some additional 0s and NAs:

> diversity_data_filtered[404,]

                    ID dataset3_SRX4143134 dataset3_SRX4143118 dataset3_SRX4143107 dataset3_SRX4143157
404 ENSG00000030304.14                  NA          0.03355015                  NA                  NA
    dataset3_SRX4143185 dataset3_SRX4143142 dataset3_SRX4143119 dataset3_SRX4143193 dataset3_SRX4143122
404                   0                   0                   0                  NA            0.999901
    dataset3_SRX4143121
404                   0
difference <- calculate_difference(diversity_data_filtered[404:405,], # 404 - problematic row
                                   samples_data,
                                   control = "control",
                                   method = "mean",
                                   test = "shuffle")

# --> Error in if (ecdf(shuffled[i, ])(log2_fc[i]) >= 0.5) { : 
#  missing value where TRUE/FALSE needed

I guess the reason for this is that the sample number (columns) is low (10), and there are only 2 non-zero/non-NA values, so there will be some problematic groups during the shuffling procedure.

from splicingfactory.

Related Issues (13)

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.