Convert the contigs in a liftover chain to match another REFerence. (eg. to remove chr prefix, unknown chromosomes etc…)
This program is now part of the main jvarkit
tool. See jvarkit for compiling.
Usage: java -jar dist/jvarkit.jar convertliftoverchain [options] Files
Usage: convertliftoverchain [options] Files
Options:
-h, --help
print help and exit
--helpFormat
What kind of help. One of [usage,markdown,xml].
-o, --output
Output file. Optional . Default: stdout
-R1, --ref1
Source chain REFference mapping. Default : no conversion. Chromosome
mapping file. If the file looks like a NGS file (fasta, vcf, bam...) the
mapping is extracted from a dictionary; Otherwise, it is interpreted as
a mapping file ( See https://github.com/dpryan79/ChromosomeMappings )
-R2, --ref2
Destination chain REFference mapping. Default : no conversion. Indexed
fasta Reference file. This file must be indexed with samtools faidx and
with picard/gatk CreateSequenceDictionary or samtools dict
--version
print version and exit
20190409
The project is licensed under the MIT license.
Should you cite convertliftoverchain ? 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