### Test case input file examples (Amplicon, Somatic, Simple) Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Each line in a test case input file describes one test case. The first line contains required fields (test case name, reference, bam, chromosome, start, end) and optional fields (amplicon start/end) and a parameters field. These examples show the format for Amplicon, Somatic, and Simple modes. ```text Amplicon,hg19.fa,Colo829-18_S3-sort.bam,chr1,933866,934466,933866,934466,-a 10:0.95 -D Somatic,hg19.fa,Colo829-18_S3-sort.bam|Colo829-19_S4-sort.bam,chr1,755917,756517 Simple,hg19.fa,Colo829-18_S3-sort.bam,chr1,9922,10122,-p ``` -------------------------------- ### Run VarDict help command Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Displays the help page for VarDictJava. Requires the path to the installed VarDict binary. ```bash /build/install/VarDict/bin/VarDict -H. ``` -------------------------------- ### Define custom installation directory Source: https://github.com/astrazeneca-ngs/vardictjava/wiki/Add-R-and-pl-scripts-on-your-PATH Set the variable for the directory containing the custom executables. ```bash CUSTOM_INSTALL_DIR=~/opt/bin ``` -------------------------------- ### Update PATH variable Source: https://github.com/astrazeneca-ngs/vardictjava/wiki/Add-R-and-pl-scripts-on-your-PATH Prepend the custom installation directory to the existing PATH variable. ```bash PATH=$CUSTOM_INSTALL_DIR:$PATH ``` -------------------------------- ### Thin-FASTA format example Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Thin-FASTA files are CSV files with each line representing a reference region: chromosome, start, end, and nucleotide sequence. VarDict expands regions by 1200bp to left and right (plus the -x option value). ```text chr1,1,15,ATGCCCCCCCCCAAA chr1,200,205,GCCGA chr2,10,12,AC ``` -------------------------------- ### Run VarDictJava in single sample mode with BED file Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Runs VarDictJava in single sample mode using a BED file. Requires setting -c, -S, -E, -g to the BED columns for chromosome, start, end, and gene. The output is piped through teststrandbias.R and var2vcf_valid.pl to produce vars.vcf. ```bash AF_THR="0.01" # minimum allele frequency /build/install/VarDict/bin/VarDict -G /path/to/hg19.fa -f $AF_THR -N sample_name -b /path/to/my.bam -c 1 -S 2 -E 3 -g 4 /path/to/my.bed | VarDict/teststrandbias.R | VarDict/var2vcf_valid.pl -N sample_name -E -f $AF_THR > vars.vcf ``` -------------------------------- ### Run VarDictJava for a specific region with -R option Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Runs VarDictJava without a BED file by specifying a region using the -R option. The example targets chromosome 7, positions 55270300-55270348, EGFR gene. ```bash /build/install/VarDict/bin/VarDict -G /path/to/hg19.fa -f 0.001 -N sample_name -b /path/to/sample.bam -R chr7:55270300-55270348:EGFR | VarDict/teststrandbias.R | VarDict/var2vcf_valid.pl -N sample_name -E -f 0.001 > vars.vcf ``` -------------------------------- ### Paired variant calling command with VarDict, testsomatic.R, and var2vcf_paired.pl Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Run paired variant calling by specifying BAM files as BAM1|BAM2 and using testsomatic.R and var2vcf_paired.pl. Set options -c, -S, -E, -g to match the column numbers in your BED file for chromosome, start, end, and gene. The output statistics columns are doubled, one set per sample. ```bash AF_THR="0.01" # minimum allele frequency /build/install/VarDict/bin/VarDict -G /path/to/hg19.fa -f $AF_THR -N tumor_sample_name -b "/path/to/tumor.bam|/path/to/normal.bam" -c 1 -S 2 -E 3 -g 4 /path/to/my.bed | VarDict/testsomatic.R | VarDict/var2vcf_paired.pl -N "tumor_sample_name|normal_sample_name" -f $AF_THR ``` -------------------------------- ### Create distribution archives Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Creates release archives (zip or tar) in the build/distributions folder. Use distZip for zip and distTar for tar. ```bash ./gradlew distZip ``` ```bash ./gradlew distTar ``` -------------------------------- ### Build VarDictJava with Gradle Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Builds the project using the Gradle wrapper. The 'clean' task removes old files from the build folder. ```bash ./gradlew clean installDist ``` -------------------------------- ### Run all integration tests with Gradle Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Run all integration tests using the Gradle test task with the test filter for IntegrationTest. Results are available in build/reports/tests/index.html. ```bash ./gradlew test --tests com.astrazeneca.vardict.integrationtests.IntegrationTest ``` -------------------------------- ### Generate Javadoc Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Generates Javadoc in the build/docs/javadoc folder. Run without 'clean' to preserve the build folder contents. ```bash ./gradlew clean javadoc ``` -------------------------------- ### Build test coverage report with Gradle Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Run the Gradle test and jacocoTestReport tasks to generate a test coverage report. The HTML report is located at build/reports/jacoco/test/html/index.html. ```bash ./gradlew test jacocoTestReport ``` -------------------------------- ### Clone VarDictJava repository with submodules Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Clones the VarDictJava repository recursively to include the VarDict submodule. The submodule contents are placed in the VarDict subdirectory. ```bash git clone --recursive https://github.com/AstraZeneca-NGS/VarDictJava.git ``` -------------------------------- ### Add VarDict to PATH Source: https://github.com/astrazeneca-ngs/vardictjava/blob/master/Readme.md Adds the VarDict bin directory to the system PATH by appending an export line to .bashrc. After this, the 'Vardict' command can be used instead of the full path. ```bash export PATH=/path/to/VarDict/bin:$PATH ``` -------------------------------- ### Convert GTF to BED with awk and gtf2bed Source: https://github.com/astrazeneca-ngs/vardictjava/wiki/GTF-to-Bed-file-conversion-with-gtf2bed-gives-error-Potentially-missing-gene-or-transcript-ID-from-GTF-attributes Use this awk command to add a transcript_id attribute to GTF lines that lack it, then pipe to gtf2bed to generate a BED file. This bypasses the 'Error: Potentially missing gene or transcript ID from GTF attributes' error. The output is written to gencode.vM19.annotation.gtf.bed. ```bash awk '{ if ( ~ "transcript_id") print ; else print " transcript_id "";"; }' gencode.vM19.annotation.gtf | gtf2bed - > gencode.vM19.annotation.gtf.bed ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.