Create a TreeMap from one or more Fastq file. Ouput is a SVG file
Usage: fastqrecordtreepack [options] Files
Options:
-c, --config
XML config file
-x, --dimension
dimension of the output rectangle
Default: 1000x1000
-h, --help
print help and exit
--helpFormat
What kind of help. One of [usage,markdown,xml].
-o, --output
Output file. Optional . Default: stdout
--version
print version and exit
${PATH}
. Setting JAVA_HOME is not enough : (e.g: https://github.com/lindenb/jvarkit/issues/23 )$ git clone "https://github.com/lindenb/jvarkit.git"
$ cd jvarkit
$ ./gradlew fastqrecordtreepack
The java jar file will be installed in the dist
directory.
The project is licensed under the MIT license.
Should you cite fastqrecordtreepack ? https://github.com/mr-c/shouldacite/blob/master/should-I-cite-this-software.md
The current reference is:
http://dx.doi.org/10.6084/m9.figshare.1425030
Lindenbaum, Pierre (2015): JVarkit: java-based utilities for Bioinformatics. figshare. http://dx.doi.org/10.6084/m9.figshare.1425030
$ java -jar dist/fastqrecordtreepack.jar -c config.xml (stdin|fq1.gz fq2.gz ...) gt; out.svg
XML root is
$ cat config.xml
<?xml version="1.0"?>
<treepack>
<node name="length">record.length()</node>
<node name="firstBase">(record.length()>0?record.getReadString().charAt(0):null)</node>
</treepack>
s
$ curl -s "ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data/NA21144/sequence_read/ERR047877.filt.fastq.gz" |\
gunzip -c | java -jar dist/fastqrecordtreepack.jar -c) config.xml > out.svg
XML root is
$ cat config.xml
<?xml version="1.0"?>
<treepack>
<node name="length">record.length()</node>
<node name="firstBase">(record.length()>0?record.getReadString().charAt(0):null)</node>
</treepack>
s
$ curl -s "ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data/NA21144/sequence_read/ERR047877.filt.fastq.gz" |\
gunzip -c | java -jar dist/fastqrecordtreepack.jar -c) config.xml > out.svg