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

SNP to gene mapping can sometimes mess up overlap when genes overlap. #82

Open
schae234 opened this issue Mar 26, 2018 · 0 comments
Open

Comments

@schae234
Copy link
Member

By default a SNP to gene mapping of Loci to themselves (window=1 and flank=0), but when input genes have overlapping genes (on the opposite strand) a SNP to gene mapping of genes to themselves will yield additional genes.

Consider:

import camoco as co
cob = co.COB('ZmRoot')
loci = ['GRMZM2G051771', 'GRMZM5G869572', 'GRMZM2G121868', 'GRMZM2G122139', 'GRMZM2G050774', 'GRMZM2G127034', 'GRMZM2G304274', 'GRMZM2G139198', 'GRMZM2G162954', 'GRMZM2G022740']
loci = cob.refgen.from_ids(loci)
len(loci) # 10
len(cob.refgen.candidate_genes(loci,flank_limit=0)) #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant