Skip to content

Instantly share code, notes, and snippets.

View lindenb's full-sized avatar
😶
I hate people.

Pierre Lindenbaum lindenb

😶
I hate people.
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<vcf xmlns="http://www.umr915.univ-nantes.fr/vcf/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<header>
<format>VCFv3.3</format>
<formats>
<format>
<id>GT</id>
<desc>Genotype</desc>
<type>String</type>
<count>1</count>
<?xml version="1.0" encoding="UTF-8"?>
<vcf xmlns="http://www.umr915.univ-nantes.fr/vcf/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<header>
<!-- header omitted -->
</header>
<body>
<variant xmlns="http://www.umr915.univ-nantes.fr/vcf/">
<chromosome>chrN</chromosome>
<position>10109</position>
<ref>A</ref>
%{
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#define MIN(a,b) (a<b?a:b)
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "lindenb/io/tarball.h"
int main(int argc,char** argv)
{
/* open file for writing */
std::fstream out("archive.tar",std::ios::out);
if(!out.is_open())
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns='http://www.w3.org/1999/xhtml'
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<!--
Author:
Pierre Lindenbaum PhD. 2010
plindenbaum@yahoo.fr
<html><body><div>
<!--
submitting a default content for a new page in mediawiki
-->
<form method="POST" action="http://en.wikipedia.org/w/index.php">
title:<input name="title" value="This is another test"/><br/>
<input type="hidden" name="action" value="edit"/>
<textarea name="wpTextbox1">
this is the default content
##reverse engeenering for mysql/ensembl
SQL="mysql -N -A -h ensembldb.ensembl.org -u anonymous -P 5306"
for D in homo_sapiens_core_48_36j #`${SQL} -e "show databases like 'homo%'"`
do
for T in `${SQL} -D $D -e 'show tables'`
do
for F in `${SQL} -D $D -e "desc $T" |egrep -w 'translation_id' | cut -d ' ' -f 1`
do
/**
* Author:
* Pierre Lindenbaum PhD
* plindenbaum@yahoo.fr
*
* Compile
javac PubmedPerYear.java
* Execute:
java PubmedPerYear "Wikipedia"
@lindenb
lindenb / BioStar3034.java
Created October 24, 2010 19:06
search for alternative Reading frames in human Genome (hg18) ( http://biostar.stackexchange.com/questions/3034)
/**
* search for alternative Reading frames in human Genome (hg18)
* Pierre Lindenbaum 2010
* http://biostar.stackexchange.com/questions/3034
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Arrays;
import java.util.zip.GZIPInputStream;
<?xml version='1.0' encoding="UTF-8" ?>
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'
>
<!--
Author:
Pierre Lindenbaum
plindenbaum@yahoo.fr