polyfun | POLYgenic FUNctionally-informed fine

 by   omerwe Python Version: Current License: MIT

kandi X-RAY | polyfun Summary

kandi X-RAY | polyfun Summary

polyfun is a Python library. polyfun has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However polyfun build file is not available. You can download it from GitHub.

PolyFun (POLYgenic FUNctionally-informed fine-mapping) PolyLoc (POLYgenic LOCalization of complex trait heritability) PolyPred (POLYgenic Prediction of complex traits). This page contains the code of the methods PolyFun for functionally-informed fine-mapping, PolyLoc for polygenic localization of complex trait heritability, and PolyPred for complex trait prediction. PolyFun and PolyLoc are described in Weissbrod et al. 2020 Nat Genet. PolyPred is described in Weissbrod*, Kanai*, Shi* et al. 2021 medRxiv. PolyFun estimates prior causal probabilities for SNPs, which can then be used by fine-mapping methods like SuSiE or FINEMAP. Unlike previous methods for functionally-informed fine-mapping, PolyFun can aggregate polygenic data from across the entire genome and hundreds of functional annotations. PolyLoc generalizes fine-mapping by constructing minimal sets of SNPs that causally explain a given proportion (e.g. 50%) of SNP heritability. PolyPred exploits fine-mapping to improve trans-ethnic polygenic risk scores, by predicting using causal effect estimates intead of tagging effect estimates. We also provide a script called finemapper that facilitates fine-mapping with methods like SuSiE, saving many of the preprocessing steps often required to perform fine-mapping (e.g. handling allelic flips between the summary statistics and reference genotypes). The files in the ldstore directory are an adaptation of the ldstore package (written by Christian Benner) to Python 3.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              polyfun has a low active ecosystem.
              It has 26 star(s) with 7 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 47 have been closed. On average issues are closed in 6 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of polyfun is current.

            kandi-Quality Quality

              polyfun has no bugs reported.

            kandi-Security Security

              polyfun has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              polyfun is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              polyfun releases are not available. You will need to build from source code and install.
              polyfun has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed polyfun and discovered the below as its top functions. This is intended to give you an instant insight into polyfun implemented functionality, and help decide if they suit your requirements.
            • Compute LD score score
            • Compute LD score for each SNPs
            • Parse filter file
            • Removes dtype from a string
            • Performs a finemap
            • Estimate HESS estimation for HESS
            • Estimate H2 Hessian H2 Hessian
            • Compute the LDAP data for a given locus
            • Compute ld score from a list of files
            • Calculate LD score
            • This function extracts all SNPs from the posterior file
            • Compute the block - wise block values
            • Estimate theta coefficient for each chromosome
            • Return a summary of the SNPs
            • Return a summary of the correlation coefficients
            • Compute LD scores for each chromosome
            • Delete non - negative jackknife
            • Compute the polynomial polynomial
            • Compute LD scores for a plink file
            • Perform a finemap
            • Estimate h2
            • Perform IRW algorithm
            • Filter out SNPs based on INFO score
            • Validate the arguments passed to the command line
            • Estimate genotype genotype calls
            • Estimate mixing weights
            • Compute overlap matrix
            Get all kandi verified functions for this library.

            polyfun Key Features

            No Key Features are available at this moment for polyfun.

            polyfun Examples and Code Snippets

            No Code Snippets are available at this moment for polyfun.

            Community Discussions

            QUESTION

            Incorrect date formatting when VB program opened via C#
            Asked 2020-Jan-07 at 04:15
            What's going on:

            I maintain a few small .NET applications for a local business. We've got one pair of apps that work in tandem: a "client manager" (C# / .NET 4.? / winforms) and a "label printer" (VB / .NET 2.0 / winforms).

            I recently added a "Print Labels" button to the client manager. This opens the label printer & pre-populates the client's name from the client manager. Woohoo!

            Unfortunately, only when the label printer is opened this way, dates print out in "dd/MM/yyyy" format, instead of "MM/dd/yyyy".

            What I know:
            • Date is entered via a DateTime winforms input in the label printer that defaults to "Today".
            • We see the formatting bug whether the default date is left or is manually changed.
            • We don't send the date over from the client manager.
            • We use ".ToShortDateString" in the label printer app.
            • This never happened when opening the label printer by double-clicking the shortcut/EXE.
            • This only happens on our Windows 7 Panasonic Toughbook.
            • The date is wrong whether I print to our Dymo label printer or to PDF. (Thanks, @jdweng!)
            • Per the Task Manager, the label printer runs as the only local user no matter how I load it. (Thanks, @Polyfun!)
            • The label printer's CurrentCulture and CurrentUICulture are both en-US, no matter how I load it. (Thanks, @Jimi!)
            • The user profile uses M/d/yyyy via "Control Panel > Region". (Thanks, @Hans Passant!)
            Relevant Code

            Here's the C# code I'm using in the client manager to open the label printer app (comments added for clarity):

            ...

            ANSWER

            Answered 2020-Jan-06 at 06:18

            I think we're missing something for the Region/Date/Timezone format - somewhere hidden.

            I've got a Powershell script to set the date to Australian. Here is the code and XML: https://github.com/averkinderen/Azure/blob/master/101-ServerBuild/AURegion.xml

            Source https://stackoverflow.com/questions/59567437

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install polyfun

            We provide several installation options.
            The easiest way to install polyfun is by creating a dedicated environment through the Anaconda Python distribution. To do this, please install Anaconda on your machine and then type the following commands:.
            PolyFun and PolyLoc are designed for Python >=3.6 and require the following freely available Python packages:.
            numpy and scipy
            scikit-learn
            pandas (version >=0.25.0)
            tqdm
            pyarrow
            bitarray
            networkx (only required for HESS-based estimation of effect size variance)
            pandas-plink
            rpy2 (a Python package)
            R version 3.5.1 or higher
            Ckmeans.1d.dp (a package for R, that will be invoked from python via the rpy2 package).
            A fine-mapping package you'd like to use. At the moment we support susieR and FINEMAP v1.4. Please see installation instructions for these packages below.
            (optional) The program LDstore 2.0 for computing LD directly from .bgen files (imputed genotypes)
            We recommend testing PolyFun by invoking the script:. where python3_exe (optional) is the command you type to start a python3 session (default is python). If the script completes without an error, everything is fine. If you see any errors, please consult the FAQ.

            Support

            For questions and comments, please open a Github issue (preferred) or contact Omer Weissbrod at oweissbrod[at]hsph.harvard.edu.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/omerwe/polyfun.git

          • CLI

            gh repo clone omerwe/polyfun

          • sshUrl

            git@github.com:omerwe/polyfun.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link