GithubHelp home page GithubHelp logo

smilenfer's Introduction

Inference of simple selection models from the distribution of genetic associations.

Genetic association data are broadly consistent with stabilizing selection shaping human common diseases and traits

Project components

gwas_processing

Code for downloading and processing GWAS summary statistics.

results

Processed GWAS summary statistics, model fits, simulation output, and scripts for generating figures.

smilenfer

Main code used for analyses, simulations, and plotting. This is organized as a python package and which can be installed by first creating a conda environment with the necessary dependencies conda env create -f smilenfer.yml. After activating the environment run install.sh.

snakemake

Snakemake piplines used for model fits and simulations. After installing the pacakge, this is how model fits are actually performed.

More information on requirements and runtime can be found in example_trait/example_trait_analysis.sh

smilenfer's People

Contributors

emkoch avatar njc12 avatar

Watchers

 avatar

smilenfer's Issues

Running quantitative traits

Hi,

I want to run smilenfer for some quantitative traits. I have been able to reproduce the test trait (bc), but am wondering what I should change in the analysis pipeline to run quantitative traits. I have noticed that I should at least change some things in the test_run.yml file, but am not sure which parts to change and which not. Also, should I change anything else somewhere?

Thanks a lot!
Anaïs

Changing threshold

Hi!
Another question. I want to run the software on another threshold. I already changed the ash and clump scripts. But when I change the theshold in the .yml file (p_threshes: ["5e-08"] and p_cutoffs: ["5e-08"]) to "1e-04" I get the following error message:

Error in rule llhood_calc:
jobid: 0
input: ../../results/data/clumped_ash/clumped.p0001_ash.SCZ.tsv, output/WF_pile.pkl
output: scratch/SCZ_orig_0.0001_nonplei.pkl, scratch/SCZ_orig_0.0001_plei.pkl

RuleException:
KeyError in file /gpfs/home2/anais1/evo_psych/smiles/smilenfer/snakemake/Snakefile_trait_fits_simple, line 304:
'0.0001'
File "/gpfs/home2/anais1/evo_psych/smiles/smilenfer/snakemake/Snakefile_trait_fits_simple", line 304, in __rule_llhood_calc
File "/home/anais1/.conda/envs/smilenfer-4/lib/python3.9/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message

How should I proceed?

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.