Closed AnnabelPerry closed 1 year ago
Hi Annabel, thanks for your detailed comment. I don't think this is an issue with the genetic map. I think this is a bug in the way I am selecting a random sample of size 1000 to compute LD scores. Let me get back to you when I've investigated this.
I've pushed a fix to the master branch. You should be able to install this branch by cloning the git repository and using 'pip install .' in the downloaded snipar directory. (I would first uninstall your existing version using 'pip uninstall snipar'). Let me know if this fixes it!
Thanks for your rapid response! I'll try this and get back to you
I do not appear to be encountering the same issue anymore, thank you so much!
Hello! Thanks for making this software - it's incredibly exciting! I'm troubleshooting some errors ibd.py which relate to the genetic map and was wondering if you could help. Here is a full description:
I have snipar successfully installed (to my Jupyter environment on my institution's computing cluster,
/home/anp9168/jupytervenv/bin/activate
) and have successfully run the example script. I tried running on UK Biobank data using the below script and inputs:--bgen chr@
specifies phased chromosomes generated using EAGLE and converted from EAGLE to bgen format using QCTOOLFirstDegreeKINGOutput.kin0
is derived from a KING output file. This file was generated by a collaborator and only had values for the "ID1", "ID2", "HetHet", "IBS0", "Kinship", and "InfType" columns, so I checked the KING formatting rules and inserted the other expected columns ("FID", "N_SNP","Z0","Phi","HetConc","HomIBS0","IBD1Seg","IBD2Seg", and "PropIBD"), filling them with NAs. Furthermore, I restricted the file to only first degree relatives (Kinship >= 0.177) to save space.FirstDegreeAgeSex.txt
has the age and sex of all individuals in theFirstDegreeKINGOutput.kin0
fileWhen I ran the code as described above, I got the following error:
I peeked at the source code and it seemed that this error relates to the genetic map, so I tried specifying my own using the
--map
flag. I know my input data was mapped to hg19, so I downloadedgenetic_map_hg19.txt.gz
from here, unzipped it, and re-formatted it using the below Python code......I then ran snipar with the
--map
flag routed togenetic_map_hg19_SHAPEIT.txt
and got the following error:I'm not sure what is wrong with my genetic map, or why the default genetic map was not working in the first place, and was wondering if you have any pointers?