Giter Club home page Giter Club logo

permute-vcf's Introduction

permute-vcf

randomly permute the locations of variants in a vcf

In order to perform a permutations test on a set of variants, you first need to permute the locations of the variants a bunch of times. This program does just that: it takes as input a VCF file containing the actual locations of variants and outputs a set of randomized versions of the VCF file, each containing the same variants but in random positions.

Installation

Due to a bug in pyvcf, this package only supports python 3.9 and 3.10 at the moment. That bug should be fixed in the next release of pyvcf3, but in the meantime, you'll need to make a python3.9 environment. So to install:

conda create -n permute-vcf python=3.9
conda activate permute-vcf
git clone https://github.com/WarrenLab/permute-vcf.git
cd permute-vcf
pip install .

Usage

To create 10 permutations of a vcf file test.vcf.gz and write them to the permutations/ subdirectory, you can run a command like this:

permute-vcf -n 10 -o permutations/ test.vcf.gz

After that, your output directory will have files 0.vcf.gz through 9.vcf.gz, each containing a different permutation of the input data.

The help dialog for the program has more details about parameters etc.

permute-vcf's People

Contributors

esrice avatar

Watchers

 avatar  avatar

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.