Skip to content

Instantly share code, notes, and snippets.

View guillermo-carrasco's full-sized avatar

Guillermo Carrasco guillermo-carrasco

View GitHub Profile
@guillermo-carrasco
guillermo-carrasco / deinterleave.c
Created May 18, 2013 14:27
FASTQ files deinterleaver.
/*
Deinterleave FASQ files containing both reads from a paired-end read.
The script makes the following assumption:
* FASTQ format (4 lines per read), and the two reads (fordward and reverse) in a row.
USAGE: :/deinterleave file.fastq f.file.fastq r.file.fastq
RESULT: f.file.fastq r.file.fastq containing fordward and backward reads, respectively
Can deinterleave FASTQ files of any size, does not consume memory. The execution time is
I/O bounded.
@guillermo-carrasco
guillermo-carrasco / simNGS_unique_ids.patch
Created May 13, 2013 16:13
Unique read IDs for simLibrary
diff -ru simNGS.orig/src/simlibrary.c simNGS/src/simlibrary.c
--- simNGS.orig/src/simlibrary.c 2013-05-13 17:45:17.000000000 +0200
+++ simNGS/src/simlibrary.c 2013-05-13 18:06:41.000000000 +0200
@@ -33,12 +33,13 @@
#define QUOTE(A) Q_(A)
#define DEFAULT_COV 0.055
#define DEFAULT_OUT "fasta"
+#define DEFAULT_UNIQUE "not"
#define DEFAULT_INSERT 400
#define DEFAULT_NCYCLE 45