Giter VIP home page Giter VIP logo

vcfc's Introduction

vcfc ๐Ÿงฌ

A C library and programs for working with VCF files

Build from GitHub ๐Ÿ’พ

git clone https://github.com/alexcoppe/vcfc.git
cd vcfc
make

Programs available ๐Ÿ‘จโ€๐Ÿ’ป

get_columns2

Shows only the columns you choose from a multi columns file (usually named cvs file). You have to choose the columns by numbers using the -f parameter. It works on a .vcf file and does not shows meta-information lines e.g. ##fileformat=VCFv4.2.

Option What does it do
-h Show help
-d The field delimiter to use instead of the tab character
-f The fields to be shown (separated by ,)
Example
>>> get_columns2   -f 2,1,3,4  input.txt

get_pass_variants

This program filters a VCF file showing only the ones with PASS (annotated by SnpEff) in the FILTER field.

Option What does it do
-h Show help
Example
>>> get_pass_variants mutations.vcf

filter_vcf_by_bed

Filter a VCF file using a BED file.

Option What does it do
-h Show help
-a show the header in the filtered VCF
>>> filter_vcf_by_bed -a sample.bed variants.vcf

Functions available ๐Ÿ“š:

The following table shows the available functions. If you want to see a detailed description of the functions go to the library documentation page.

Function Description
bed_entries reads a file and returns an array of BedEntry pointers. Use a single free call to free the array
get_format_fields takes as input a pointer to a format string (var->format) or a sample string (like var->samples[0]) gotten from the Variant struct and returns an array of pointers to the format or sample fields
get_variant_from_vcf_line reads a single line from a VCF file and returns a Variant struct
free_variant frees the memory allocatated by the get_variant_from_vcf_line
nice_print_variant prints all the fields from a Variant struct

vcfc's People

Contributors

alexcoppe 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.