Created
October 19, 2011 13:50
-
-
Save pmagwene/1298331 to your computer and use it in GitHub Desktop.
Get SNPs for gene from our Illumina data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from yeastgenome import samsnp | |
from yeastgenome import yeastgff as yff | |
from yeastgenome import yeastsnp | |
from yeastgenome import gff, gffsnp as gs | |
flist = gff.parse_GFFfeatures('./yeast-genome-Feb2011/saccharomyces_cerevisiae.gff') | |
gdict = gff.fasta_asdict('../yeast-genome-feb2011/saccharomyces_cerevisiae.gff') | |
bwa70 = samsnp.parse_samsnp('./PMY070/bwa.Feb2011/final.pileup') | |
yeastsnp.change_ref2gff(bwa70) | |
byc70 = gs.snps_bychrom(bwa70) | |
HO = gff.get_gene(flist, 'HO') | |
HOsnps = gs.snps_in_feature(HO,byc70) | |
print HOsnps # no SNPs in HO | |
upHO1k = gff.upstream_of(HO, 1000, gdict) | |
downHO1k = gff.downstream_of(HO, 1000, gdict) | |
upsnps = gs.snps_in_feature(upHO1k, byc70) | |
print upsnps | |
downsnps = gs.snps_in_feature(downHO1k, byc70) | |
print downsnps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment