Created
August 5, 2014 01:50
-
-
Save kekeke29341/07bd5944c75438581b07 to your computer and use it in GitHub Desktop.
Sample Query of Google Genomics
This file contains 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
# Count SNPs by type | |
SELECT | |
reference_bases, | |
alternate_bases AS allele, | |
COUNT(alternate_bases) AS num_snps | |
FROM | |
[google.com:biggene:1000genomes.variants1kG] | |
WHERE | |
vt ='SNP' | |
GROUP BY | |
reference_bases, | |
allele | |
ORDER BY | |
num_snps; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment