Giter Site home page Giter Site logo

Warning about tensorqtl HOT 7 CLOSED

maxozo avatar maxozo commented on July 22, 2024
Warning

from tensorqtl.

Comments (7)

francois-a avatar francois-a commented on July 22, 2024

Hi,
No, this isn't a problem if it only happens rarely.

from tensorqtl.

maxozo avatar maxozo commented on July 22, 2024

Thanks for the response. What if it happens quite often?


    processing phenotype 42888/53437    * WARNING: excluding 2259 monomorphic variants
WARNING: scipy.optimize.newton failed to converge (running scipy.optimize.minimize)

    processing phenotype 42889/53437    * WARNING: excluding 2234 monomorphic variants

    processing phenotype 42890/53437    * WARNING: excluding 2240 monomorphic variants

    processing phenotype 42891/53437    * WARNING: excluding 2241 monomorphic variants

    processing phenotype 42892/53437    * WARNING: excluding 2244 monomorphic variants

    processing phenotype 42893/53437    * WARNING: excluding 2268 monomorphic variants
WARNING: scipy.optimize.newton failed to converge (running scipy.optimize.minimize)

from tensorqtl.

francois-a avatar francois-a commented on July 22, 2024

The input VCF should only include common variants. The large number of monomorphic variants suggests that your input VCF was not filtered, and this is definitely not ideal (large numbers of rare variants will potentially lead to regression outlier artifacts).

from tensorqtl.

maxozo avatar maxozo commented on July 22, 2024

thanks francois-a. Really helpful.
What filters would you suggest to be applied to vcfs before running tensorQTL?

from tensorqtl.

francois-a avatar francois-a commented on July 22, 2024

In general sample sizes are not sufficient to map variants with MAF < 0.01. So applying a MAF filter and removing monomorphic variants should be part of initial QC. The MAF filter can be applied in-sample (with the maf_threshold option), but this won't remove monomorphic variants that are all, e.g., 0/1.

from tensorqtl.

baishengjun avatar baishengjun commented on July 22, 2024

I have filter the variants with MAF < 0.05, but I encounter too much the same warning above.
My sample size is only 38, does it cause this warning? and any solution to sovle this problem?

from tensorqtl.

Jesson-mark avatar Jesson-mark commented on July 22, 2024

@francois-a
Hi,
I currently encounter the same warning but with different information when running tensorQTL with cis.map_cis function.

The logfile are:

/path/to/tensorqtl/core.py:315: RuntimeWarning: invalid value encountered in sqrt
  return 2*stats.t.cdf(-np.abs(np.sqrt(tstat2)), dof)
WARNING: scipy.optimize.newton failed to converge (running scipy.optimize.minimize)

I already filtered my genotype file by MAF>0.01 so I didn't received warning about removing monomorphic variants.
I'm running cis.map_cis to 15000 genes and this WARNING above occured 1286 times in my latest run.

I'm wondering if this warning has some effect on the beta-approximated p-value of the 15000 genes and if it may reduce the power of discoverying significant eGenes?

Any input will be highly appreciated!

JieWang

from tensorqtl.

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.