Skip to content

Commit

Permalink
fix --ld-snps
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchang committed Jan 13, 2017
1 parent 6b05d89 commit 87da0eb
Show file tree
Hide file tree
Showing 39 changed files with 47 additions and 43 deletions.
8 changes: 4 additions & 4 deletions plink.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -93,7 +93,7 @@

static const char ver_str[] =
#ifdef STABLE_BUILD
"PLINK v1.90b3.44"
"PLINK v1.90b3.45"
#else
"PLINK v1.90p"
#endif
Expand All @@ -105,7 +105,7 @@ static const char ver_str[] =
#else
" 32-bit"
#endif
" (27 Dec 2016)";
" (13 Jan 2017)";
static const char ver_str2[] =
// include leading space if day < 10, so character length stays the same
""
Expand All @@ -118,7 +118,7 @@ static const char ver_str2[] =
" "
#endif
" https://www.cog-genomics.org/plink2\n"
"(C) 2005-2016 Shaun Purcell, Christopher Chang GNU General Public License v3"
"(C) 2005-2017 Shaun Purcell, Christopher Chang GNU General Public License v3"
#if SPECIES_DEFAULT > 0
"\nRecompiled with default species = "
#if SPECIES_DEFAULT == SPECIES_COW
Expand Down
2 changes: 1 addition & 1 deletion plink_assoc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_assoc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_ASSOC_H__
#define __PLINK_ASSOC_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_calc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_cluster.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_cnv.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_cnv.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_CNV_H__
#define __PLINK_CNV_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_common.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_COMMON_H__
#define __PLINK_COMMON_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_data.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_data.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_DATA_H__
#define __PLINK_DATA_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_dosage.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_dosage.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_DOSAGE_H__
#define __PLINK_DOSAGE_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_family.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_family.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_FAMILY_H__
#define __PLINK_FAMILY_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_filter.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_filter.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_FILTER_H__
#define __PLINK_FILTER_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_glm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_glm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_GLM_H__
#define __PLINK_GLM_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_help.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_help.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_HELP_H__
#define __PLINK_HELP_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_homozyg.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_homozyg.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_HOMOZYG_H__
#define __PLINK_HOMOZYG_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_lasso.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_lasso.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_LASSO_H__
#define __PLINK_LASSO_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
8 changes: 6 additions & 2 deletions plink_ld.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -5799,8 +5799,12 @@ int32_t ld_report_regular(pthread_t* threads, Ld_info* ldip, FILE* bedfile, uint
}
} else {
retval = string_range_list_to_bitarr2(sorted_ids, id_map, marker_ct, max_marker_id_len, &(ldip->snps_rl), "ld-snps", marker_exclude_idx1);
if (retval) {
goto ld_report_regular_ret_1;
}
bitvec_or(marker_exclude, unfiltered_marker_ctl, marker_exclude_idx1);
marker_ct1 = marker_ct - popcount_longs(marker_exclude_idx1, unfiltered_marker_ctl);
// bugfix, 13 Jan 2017
marker_ct1 = unfiltered_marker_ct - popcount_longs(marker_exclude, unfiltered_marker_ctl);
}
if (!marker_ct1) {
goto ld_report_regular_ret_EMPTY_SET1;
Expand Down
2 changes: 1 addition & 1 deletion plink_ld.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_LD_H__
#define __PLINK_LD_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_matrix.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_matrix.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_MATRIX_H__
#define __PLINK_MATRIX_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_misc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_misc.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_MISC_H__
#define __PLINK_MISC_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_perm.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_perm.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __PLINK_PERM_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_rserve.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_rserve.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_RSERVE_H__
#define __PLINK_RSERVE_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_set.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_set.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_SET_H__
#define __PLINK_SET_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_stats.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion plink_stats.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __PLINK_STATS_H__
#define __PLINK_STATS_H__

// This file is part of PLINK 1.90, copyright (C) 2005-2016 Shaun Purcell,
// This file is part of PLINK 1.90, copyright (C) 2005-2017 Shaun Purcell,
// Christopher Chang.
//
// This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 87da0eb

Please sign in to comment.