CRAMTools is a set of Java tools and APIs for efficient compression of sequence read data. Although this is intended as a stable version the code is released as early access. Parts of the CRAMTools are experimental and may not be supported in the future.
http://www.ebi.ac.uk/ena/about/cram_toolkit Version 3.0
<fasta file>
<fasta file>.fai
created using samtools
(samtools faidx <fasta file>
)<BAM file>
sorted by reference coordinates<BAM file>.bai
created using samtools (samtools index <BAM file>
)java -jar cramtools-3.0.jar
. Usage is
printed if no arguments were givenjava -jar cramtools-3.0.jar cram \
--input-bam-file <bam file> \
--reference-fasta-file <reference fasta file> \
[--output-cram-file <output cram file>]
java -jar cramtools-3.0.jar bam \
--input-cram-file <input cram file> \
--reference-fasta-file <reference fasta file> \
--output-bam-file <output bam file>
# Clone the repository to your local directory:
git clone https://github.com/enasequence/cramtools.git
# Change to the directory:
cd cramtools
# Build a runnable jar file:
ant -f build/build.xml runnable
# Run cramtools
java -jar cramtools-3.0.jar
Picard tools have been removed from cramtools because Picard supports CRAM via htsjdk.
cramtools supports the following reference discovery mechanism:
-R
or
--reference-fasta-file
option)REF_CACHE/REF_PATH
environment variables. Please
refer to http://www.htslib.org/doc/samtools.html for more details.The usage can be accessed by calling cramtools with the corresponding command as a single argument.
Bam2Cram allows to specify lossy model via a string which can be composed of one or more words separated by '-'.
Each word is read or base selector and quality score treatment, which can be binning (Illumina 8 bins) or full scale (40 values).
By default no quality scores will be preserved.
0, 1, 6, 6, 6, 6, 6, 6, 6, 6, 15, 15, 15, 15, 15, 15, 15, 15, 15,
15, 22, 22, 22, 22, 22, 27, 27, 27, 27, 27, 33, 33, 33, 33, 33, 37,
37, 37, 37, 37, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
40, 40, 40, 40, 40, 40
Check for more on our web site: http://www.ebi.ac.uk/ena/about/cram_toolkit