Skip to content
Snippets Groups Projects
Commit 9c12fe0a authored by hjulienne's avatar hjulienne
Browse files

precise type when reading reference

parent 51b18794
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ def read_reference(gwas_reference_panel, mask_MHC=False, minimum_MAF=None, regio
"""
ref = pd.read_csv(gwas_reference_panel, header=None, sep= "\t",
names =[ 'chr', "snp_id", "MAF","pos", "ref", "alt"],
dtype = {"chr": str, "snp_id":str, "MAF": np.float, "pos":np.int, "ref":str, "alt":str},
index_col="snp_id")
def sorted_alleles(x):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment