prepare BAM/CRAM from indexcov.
can be replace with samtools view. See doc
Usage: java -jar dist/bam4indexcov.jar [options] Files
Usage: bam4indexcov [options] Files
Options:
-h, --help
print help and exit
--helpFormat
What kind of help. One of [usage,markdown,xml].
-i, --include-chromosomes
regex of chromosomes to only include
Default: (chr)?[0-9XY]+
-m, --manifest
manifest file
-Q, --mapq
min mapping quality.
Default: 10
--md5
generate md5 file
Default: false
* -o, --output
Output directory
-p, --prefix
File prefix
Default: bam4indexcov.
* -R, --reference
Indexed fasta Reference file. This file must be indexed with samtools
faidx and with picard CreateSequenceDictionary
--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 bam4indexcov
The java jar file will be installed in the dist
directory.
20220506
The project is licensed under the MIT license.
Should you cite bam4indexcov ? 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
can be replaced with
samtools view -F 3844 -q 30 -O BAM -o "/dev/null##idx##out.bam.bai" --write-index in.bam
``` java -jar dist/bam4indexcov.jar -R src/test/resources/rotavirus_rf.fa -o . src/test/resources/S.bam -i ‘RF1.’