forked from Ensembl/ensembl-variation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New LD code reads directly from VCFs
Additional C code for calculating LD by reading directly from bgzipped VCFs using htslib.
- Loading branch information
William McLaren
committed
Aug 1, 2016
1 parent
510b477
commit 78ddb7d
Showing
5 changed files
with
796 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/C_code/calc_genotypes | ||
/C_code/calc_genotypes.o | ||
/C_code/ld_vcf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
CC = gcc | ||
|
||
all: calc_genotypes | ||
ifndef HTSLIB_DIR | ||
$(error HTSLIB_DIR is undefined, see README for details) | ||
endif | ||
|
||
all: calc_genotypes ld_vcf | ||
|
||
install: calc_genotypes | ||
mkdir -p ../bin | ||
cp calc_genotypes ../bin/ | ||
cp ld_vcf ../bin/ | ||
|
||
calc_genotypes: calc_genotypes.o | ||
$(CC) -o calc_genotypes calc_genotypes.c | ||
calc_genotypes.o: | ||
$(CC) -c calc_genotypes.c | ||
ld_vcf: | ||
$(CC) -Wall ld_vcf.c -I $(HTSLIB_DIR)/htslib -o ld_vcf -L$(HTSLIB_DIR) -Wl,-rpath,$(HTSLIB_DIR) -lhts | ||
clean: | ||
\rm -f *.o calc_genotypes | ||
\rm -f *.o calc_genotypes ld_vcf |
Oops, something went wrong.