Comments (7)
Hi,
No, this isn't a problem if it only happens rarely.
from tensorqtl.
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.
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.
thanks francois-a. Really helpful.
What filters would you suggest to be applied to vcfs before running tensorQTL?
from tensorqtl.
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.
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.
@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)
- missing tss_distance in cis output HOT 1
- Abnormal results of interaction model HOT 4
- scipy.optimize.newton failed to converge HOT 1
- Warning and Error in tensorQTL trans mode HOT 9
- Memory Allocation Issue during trans-QTL Mapping HOT 3
- Issues with TensorQTL in Trans Mode
- AttributeError: 'dict' object has no attribute 'T' tensorqtl HOT 2
- broken link HOT 1
- Tensorqtl installation HOT 3
- No credible sets output from susie.map because pval_nominal=0 HOT 2
- ValueError: array must not contain infs or NaNs
- interaction HOT 1
- [Susie] ValueError: prior variance must be non-negative HOT 4
- [trans] trans.map_permutations(): KeyError: 'r2' HOT 2
- [map_trans] R2 not returned in interaction analysis HOT 2
- [pval post-processing] Interaction output for cis/trans
- Which beta coresponds to which allele in the outputs?
- cis-mapping with interaction
- Errors in the BackgroundGenerator cause main thread to get stuck
- Questions about the `map_permutations` and `apply_permutations` functions
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 tensorqtl.