Skip to content

Instantly share code, notes, and snippets.

View kekeke29341's full-sized avatar

TTNN kekeke29341

  • TTNN
  • Hong Kong
View GitHub Profile
0x0E1c33d8901a9aa09501Bb6968583eE315b43345
0x78b5E5595830ACEE4bbDbA4eFCFF8b908967014d
@kekeke29341
kekeke29341 / Sample Query of Google Genomics
Created August 5, 2014 01:50
Sample Query of Google Genomics
# 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
#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
#include <time.h>
#include <sys/time.h>
using namespace std;
double dists_get(const vector<double>& x,const vector<double>& y) {
package main
import "fmt"
func main() {
fmt.Printf("Hello, World\n")
}
@kekeke29341
kekeke29341 / gist:5575487
Created May 14, 2013 12:19
BioPythonでPubMed検索~
from Bio import Entrez
Entrez.email = "Your email address"
handle = Entrez.esearch(db="nucleotide", retmax=10, term="cancer")
record = Entrez.read(handle)
handle.close()
record["Count"] >= 2
True
"156535671" in record["IdList"]
True
"156535673" in record["IdList"]