-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
ARG IGVREPORTS_VER=1.12.0 | ||
|
||
FROM ubuntu:jammy as app | ||
|
||
ARG IGVREPORTS_VER | ||
|
||
# 'LABEL' instructions tag the image with metadata that might be important to the user | ||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="IGV Reports" | ||
LABEL software.version="${IGVREPORTS_VER}" | ||
LABEL description="A Python application to generate self-contained HTML reports for variant review and other genomic applications." | ||
LABEL website="https://github.com/igvteam/igv-reports" | ||
LABEL license="https://github.com/igvteam/igv-reports/blob/master/LICENSE.md" | ||
LABEL maintainer="Erin Young" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# 'RUN' executes code during the build | ||
# Install dependencies via apt-get or yum if using a centos or fedora base | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
python3-pip \ | ||
libcurl4-gnutls-dev && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --no-cache-dir igv-reports==${IGVREPORTS_VER} | ||
|
||
ENV PATH="$PATH" LC_ALL=C CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt | ||
|
||
CMD [ "create_report", "-h" ] | ||
|
||
WORKDIR /data | ||
|
||
FROM app as test | ||
|
||
ARG IGVREPORTS_VER | ||
|
||
WORKDIR /test | ||
|
||
RUN create_report -h | ||
|
||
RUN wget -q https://github.com/igvteam/igv-reports/archive/refs/tags/v${IGVREPORTS_VER}.tar.gz && \ | ||
tar -xvf v${IGVREPORTS_VER}.tar.gz && \ | ||
cd igv-reports-${IGVREPORTS_VER} && \ | ||
create_report test/data/variants/variants.vcf.gz \ | ||
--genome hg38 \ | ||
--ideogram test/data/hg38/cytoBandIdeo.txt \ | ||
--flanking 1000 \ | ||
--info-columns GENE TISSUE TUMOR COSMIC_ID GENE SOMATIC \ | ||
--samples reads_1_fastq \ | ||
--sample-columns DP GQ \ | ||
--tracks test/data/variants/variants.vcf.gz test/data/variants/recalibrated.bam test/data/hg38/refGene.txt.gz \ | ||
--output example_vcf.html && \ | ||
wc -l example_vcf.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# igv-reports container | ||
|
||
Main tool: [igv-reports](https://github.com/igvteam/igv-reports) | ||
|
||
Code repository: https://github.com/igvteam/igv-reports | ||
|
||
Basic information on how to use this tool: | ||
- executable: create_report | ||
- help: -h | ||
- version: NA | ||
- description: Creates igv-style html report of variants | ||
|
||
Additional information: | | ||
> A Python application to generate self-contained HTML reports for variant review and other genomic applications. Reports consist of a table of genomic sites and an embedded IGV genome browser for viewing data for each site. The tool extracts slices of data for each site and embeds the data as blobs in the HTML report file. The report can be opened in a web browser as a static page, with no depenency on the original input files. | ||
|
||
Full documentation: https://github.com/igvteam/igv-reports | ||
|
||
## Example Usage | ||
|
||
```bash | ||
create_report input.vcf.gz \ | ||
--fasta reference.fa \ | ||
--flanking 1000 \ | ||
--info-columns GENE TISSUE TUMOR COSMIC_ID GENE SOMATIC \ | ||
--samples reads_1_fastq \ | ||
--sample-columns DP GQ \ | ||
--tracks input.vcf.gz recalibrated.bam \ | ||
--output output.html | ||
``` |