Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selscan dropping variants? #124

Open
mmcqui opened this issue Aug 19, 2024 · 5 comments
Open

selscan dropping variants? #124

mmcqui opened this issue Aug 19, 2024 · 5 comments

Comments

@mmcqui
Copy link

mmcqui commented Aug 19, 2024

I am trying to understand how selscan excludes variants, as a region I am interested in appears to be missing some important variants in my output. My command is:

selscan --ihs --vcf inFile.vcf.gz --map mapFile.map --out population.iHS --threads 25

My input .vcf file contains 4,702,160 variants (many of which are rare). The output .log file tells me it dropped 4,298,509 variants due to low frequency (maf < 0.05), which is correct based on my external checks. The .log file also tells me it dropped an additional 10,622 variants due to large gaps, reaching the chromosome edge, etc. This should leave us with 393,029 variants in the iHs .out file. However, the .out file contains slightly fewer, 392,297 variants. Is there somewhere else that selscan is dropping variants, that isn't obvious from the .log file? Perhaps due to the EHH cutoff value, which is 0.05 by default?

Thanks for any information you can provide.

@mmcqui
Copy link
Author

mmcqui commented Aug 21, 2024

After looking at some 'closed' issues on this site, I found someone with a similar issue. I realized that many of my variants in my region of interest were assigned the same genetic position in the genetic map file, which I'm guessing is why they were dropped?. In case others have this issue working with human data, the widely available genetic maps based on Hapmap contain large regions where all variants have the same genetic position. If you're doing any kind of interpolation for your variants to include in selscan, it appears the program will drop these variants from your output.

@szpiech
Copy link
Owner

szpiech commented Aug 21, 2024 via email

@mmcqui
Copy link
Author

mmcqui commented Aug 21, 2024

Thanks for the response! Yes, I currently use linear interpolation for sites in between. The issue I think is that I am using publicly available genetic maps for my 'known' positions, and these maps have many sites with identical genetic positions, causing my linear interpolation to also assign any variant within these regions the same genetic map position. Seems like I'll need to find new maps.

@szpiech
Copy link
Owner

szpiech commented Aug 21, 2024 via email

@mmcqui
Copy link
Author

mmcqui commented Aug 21, 2024

Ah, great idea! Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants