Skip to content

pull in jrflab updates in the last 1-2 years #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 780 commits into
base: merge_jrflab
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
780 commits
Select commit Hold shift + click to select a range
9e65c13
Update star_fish.R
ndbrown6 Nov 24, 2022
2bea5b4
++
ndbrown6 Nov 24, 2022
0f8f371
Update sv_signature.R
ndbrown6 Nov 24, 2022
2a2d0d9
Update star_fish.mk
ndbrown6 Nov 24, 2022
5689571
Update sv_signature.R
ndbrown6 Nov 24, 2022
71dc6a2
++
ndbrown6 Nov 24, 2022
0a28f6b
Update star_fish.R
ndbrown6 Nov 24, 2022
d5992df
Update sufam_gt.R
ndbrown6 Nov 25, 2022
aee236b
Update cnvkit.R
ndbrown6 Nov 25, 2022
a222afa
Update cnvkit.R
ndbrown6 Nov 25, 2022
dd792d4
Update cnvkit.R
ndbrown6 Nov 25, 2022
557ec57
Update cnvkit.R
ndbrown6 Nov 25, 2022
926683f
Update cnvkit.R
ndbrown6 Nov 25, 2022
0a0debe
Update cnvkit.R
ndbrown6 Nov 25, 2022
9445ce2
Update cnvkit.R
ndbrown6 Nov 25, 2022
85c7532
Update cnvkit.R
ndbrown6 Nov 25, 2022
d4e6e06
Update cnvkit.R
ndbrown6 Nov 25, 2022
f73c2dc
++
ndbrown6 Nov 25, 2022
c576f3b
Update cnvkit.mk
ndbrown6 Nov 25, 2022
a96edd8
Update cnvkit.mk
ndbrown6 Nov 25, 2022
806426c
Update cnvkit.R
ndbrown6 Nov 25, 2022
4b538e6
Update cnvkit.R
ndbrown6 Nov 25, 2022
6efeb17
Update cnvkit.R
ndbrown6 Nov 25, 2022
66e1c35
Update cnvkit.R
ndbrown6 Nov 25, 2022
ebbf476
Update cnvkit.R
ndbrown6 Nov 25, 2022
a8ca9f3
Update cnvkit.R
ndbrown6 Nov 25, 2022
1cb9ee3
Update cnvkit.mk
ndbrown6 Nov 26, 2022
3d179d2
Update cnvkit.R
ndbrown6 Nov 26, 2022
b98a774
++
ndbrown6 Nov 26, 2022
bbacb51
++
ndbrown6 Nov 26, 2022
04df2b8
Update cnvkit.mk
ndbrown6 Nov 26, 2022
c53d24e
Update cnvkit.R
ndbrown6 Nov 26, 2022
077340c
Update cnvkit.R
ndbrown6 Nov 26, 2022
e4e6f38
Update cnvkit.R
ndbrown6 Nov 26, 2022
1290c8a
++
ndbrown6 Nov 26, 2022
d024824
Update cnvkit.mk
ndbrown6 Nov 26, 2022
4ea23a9
++
ndbrown6 Nov 26, 2022
0d5955b
++
ndbrown6 Nov 29, 2022
92ada9b
Update genomesummary.mk
ndbrown6 Dec 1, 2022
e82b4ed
++
ndbrown6 Dec 1, 2022
8ec8df9
Update genomesummary.R
ndbrown6 Dec 1, 2022
041d6ae
++
ndbrown6 Dec 1, 2022
fbc87a9
Update genomesummary.R
ndbrown6 Dec 1, 2022
357f733
++
ndbrown6 Dec 1, 2022
174e839
Update genomesummary.mk
ndbrown6 Dec 1, 2022
7012cbd
Update genomesummary.R
ndbrown6 Dec 1, 2022
e7dd8ae
++
ndbrown6 Dec 1, 2022
395e088
++
ndbrown6 Dec 1, 2022
5b1fc9b
++
ndbrown6 Dec 1, 2022
d84e00c
Update genomesummary.R
ndbrown6 Dec 1, 2022
b9ce5ca
Update genomesummary.R
ndbrown6 Dec 1, 2022
cca2bf0
++
ndbrown6 Dec 10, 2022
706345b
Update medicc2.mk
ndbrown6 Dec 10, 2022
587561f
Update medicc2.mk
ndbrown6 Dec 10, 2022
e85d118
++
ndbrown6 Dec 10, 2022
67c8cdb
Update medicc2.R
ndbrown6 Dec 10, 2022
c4debd2
++
ndbrown6 Dec 10, 2022
af49353
Update medicc2.R
ndbrown6 Dec 10, 2022
d52040a
Update medicc2.mk
ndbrown6 Dec 10, 2022
6c70622
Update medicc2.mk
ndbrown6 Dec 10, 2022
8943dfa
Update medicc2.mk
ndbrown6 Dec 10, 2022
c737f2e
Update medicc2.R
ndbrown6 Dec 10, 2022
bba6e1d
Update medicc2.R
ndbrown6 Dec 10, 2022
a330128
Update medicc2.R
ndbrown6 Dec 10, 2022
0a9c403
++
ndbrown6 Dec 10, 2022
fea5f5d
Update medicc2.mk
ndbrown6 Dec 10, 2022
d339a52
Update medicc2.mk
ndbrown6 Dec 10, 2022
de5d7d6
Update medicc2.mk
ndbrown6 Dec 10, 2022
58a97bc
Update medicc2.mk
ndbrown6 Dec 10, 2022
912e92c
++
ndbrown6 Dec 10, 2022
2fca098
++
ndbrown6 Dec 10, 2022
fdcb723
Update medicc2.R
ndbrown6 Dec 10, 2022
6f43052
Update medicc2.R
ndbrown6 Dec 10, 2022
14fd8bd
Update medicc2.mk
ndbrown6 Dec 10, 2022
5bcd5fd
Update medicc2.R
ndbrown6 Dec 10, 2022
2014127
Update medicc2.R
ndbrown6 Dec 10, 2022
298cece
Update medicc2.R
ndbrown6 Dec 11, 2022
861d378
Update medicc2.R
ndbrown6 Dec 11, 2022
b5f76cd
++
ndbrown6 Dec 13, 2022
4694599
Update get_basecounts.mk
ndbrown6 Dec 13, 2022
c29d11d
Update get_basecounts.R
ndbrown6 Dec 13, 2022
550327f
Update varscanTN.mk
ndbrown6 Dec 13, 2022
4554182
Update varscanTN.mk
ndbrown6 Dec 13, 2022
251cd09
Update varscanTN.mk
ndbrown6 Dec 13, 2022
47f3ec4
Update varscanTN.mk
ndbrown6 Dec 15, 2022
63b480e
Update varscanTN.mk
ndbrown6 Dec 15, 2022
3825abd
++
ndbrown6 Dec 15, 2022
1bfa239
Update star_fish.mk
ndbrown6 Dec 15, 2022
e81b8c8
Update star_fish.R
ndbrown6 Dec 15, 2022
f7dbe80
Update star_fish.R
ndbrown6 Dec 15, 2022
4644ac7
Update star_fish.R
ndbrown6 Dec 15, 2022
0b615fd
Update star_fish.R
ndbrown6 Dec 15, 2022
728e3c3
Update pyclone_vi.R
ndbrown6 Dec 16, 2022
da929b8
Update pyclone_vi.mk
ndbrown6 Dec 16, 2022
12ded00
++
ndbrown6 Dec 16, 2022
820aa3a
sv_signature --
ndbrown6 Dec 23, 2022
706b1f4
Update sv_signature.mk
ndbrown6 Dec 23, 2022
c6a3670
Update sv_signature.mk
ndbrown6 Dec 23, 2022
75dc2b8
sv signatures ++
ndbrown6 Dec 23, 2022
fda7fde
Delete sv_signature.py
ndbrown6 Dec 23, 2022
cd17b52
++
ndbrown6 Dec 23, 2022
352aac9
++
ndbrown6 Dec 23, 2022
d3fa321
++
ndbrown6 Dec 23, 2022
f41535e
Update star_fish.R
ndbrown6 Dec 23, 2022
dd35f81
Update star_fish.R
ndbrown6 Dec 23, 2022
03acb7b
Update star_fish.mk
ndbrown6 Dec 23, 2022
775c108
++
ndbrown6 Dec 23, 2022
8c3f358
Update sv_signature.mk
ndbrown6 Dec 23, 2022
caab167
++
ndbrown6 Dec 23, 2022
88daacd
Update star_fish.mk
ndbrown6 Dec 23, 2022
75ffb09
++
ndbrown6 Dec 23, 2022
cdb0ba4
Update star_fish.R
ndbrown6 Dec 23, 2022
88f28fc
Update star_fish.R
ndbrown6 Dec 23, 2022
3f05cec
Update annotate_sv.mk
ndbrown6 Jan 4, 2023
9d97c27
Update project_config.yaml
ndbrown6 Jan 6, 2023
8be3191
Update annotate_sv.mk
ndbrown6 Jan 6, 2023
f3f2e93
Update merge_sv.mk
ndbrown6 Jan 30, 2023
b516bcd
Update merge_sv.mk
ndbrown6 Feb 16, 2023
f45e537
Update sufam_gt.mk
ndbrown6 Feb 24, 2023
c2c8d9d
++
ndbrown6 Feb 24, 2023
ea2c28f
Update sufam_gt.R
ndbrown6 Feb 24, 2023
26cb4c2
Update sufam_gt.R
ndbrown6 Feb 24, 2023
dc84aba
++
ndbrown6 Feb 24, 2023
63416f1
Update sufam_gt.mk
ndbrown6 Feb 24, 2023
2f04e48
++
ndbrown6 Feb 24, 2023
744a74d
++
ndbrown6 Feb 24, 2023
30d969f
Update clusterSamples.mk
ndbrown6 Feb 28, 2023
0e1a628
Update clusterSamples.mk
ndbrown6 Feb 28, 2023
dbbfc1b
++
ndbrown6 Feb 28, 2023
e534df0
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
266fcaf
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
7ca980e
++
ndbrown6 Feb 28, 2023
73c8339
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
e214925
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
3f90603
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
2257d46
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
ad99cad
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
d79fab9
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
b188af6
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
57a99db
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
9fd6e86
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
5ae6d95
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
4775521
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
3c8e8d6
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
1eafddf
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
73cac32
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
2c505e0
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
1c547b8
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
d9424a6
Update clusterSampleVcf.R
ndbrown6 Feb 28, 2023
4bba0c4
Update clusterSampleVcf.R
ndbrown6 Mar 1, 2023
75c92ba
Update clusterSampleVcf.R
ndbrown6 Mar 1, 2023
54f5c50
Update sufam_gt.mk
ndbrown6 Mar 4, 2023
9ae8b3d
Update fix_bam.mk
ndbrown6 Mar 5, 2023
542fca3
Update fix_bam.mk
ndbrown6 Mar 5, 2023
0cbdc14
Update fix_bam.mk
ndbrown6 Mar 5, 2023
ab9c506
Update clusterSamples.mk
ndbrown6 Mar 8, 2023
f9429b9
++
ndbrown6 Mar 18, 2023
56a4c63
Update configure.py
ndbrown6 Mar 18, 2023
929853d
Update configure.py
ndbrown6 Mar 18, 2023
f9d0a05
Update pyclone_vi.mk
ndbrown6 Mar 22, 2023
39612d4
++
ndbrown6 Apr 17, 2023
f7bbbb2
Create bam_metrics.R
ndbrown6 Apr 17, 2023
2b677c9
Update bam_interval_metrics.mk
ndbrown6 Apr 17, 2023
ecda093
Update bam_interval_metrics.mk
ndbrown6 Apr 17, 2023
26a010b
Update bam_interval_metrics.mk
ndbrown6 Apr 17, 2023
7d5ef94
Update bam_interval_metrics.mk
ndbrown6 Apr 18, 2023
722506d
++
ndbrown6 Apr 18, 2023
35460b7
Update hr_detect.mk
ndbrown6 Apr 18, 2023
52b6d26
++
ndbrown6 Apr 18, 2023
f6d4def
Update hr_detect.mk
ndbrown6 Apr 18, 2023
80db648
++
ndbrown6 Apr 18, 2023
cd19e41
++
ndbrown6 Apr 18, 2023
4c12ccb
++
ndbrown6 Apr 18, 2023
c6e2938
Update hr_detect.mk
ndbrown6 Apr 18, 2023
fdd1463
Update hr_detect.mk
ndbrown6 Apr 18, 2023
fb21a32
Update hr_detect.R
ndbrown6 Apr 18, 2023
c8762ff
Update hr_detect.R
ndbrown6 Apr 18, 2023
d1c6b41
Update hr_detect.mk
ndbrown6 Apr 18, 2023
9c88c11
Update hr_detect.R
ndbrown6 Apr 18, 2023
4edfb27
Update hr_detect.R
ndbrown6 Apr 18, 2023
1b91844
++
ndbrown6 Apr 18, 2023
3fa09ea
Update hr_detect.mk
ndbrown6 Apr 18, 2023
7f0b98c
Update hr_detect.R
ndbrown6 Apr 18, 2023
5880d4e
Update hr_detect.mk
ndbrown6 Apr 18, 2023
9145bee
Update hr_detect.R
ndbrown6 Apr 18, 2023
4d2703d
Update hr_detect.R
ndbrown6 Apr 18, 2023
d88d1f5
Update cnvkit.mk
ndbrown6 Apr 18, 2023
32d792b
++
ndbrown6 Apr 19, 2023
895216e
Update hr_detect.mk
ndbrown6 Apr 19, 2023
0273c66
Update hr_detect.R
ndbrown6 Apr 19, 2023
39fdf70
Update hr_detect.R
ndbrown6 Apr 19, 2023
b93fc00
Update hr_detect.mk
ndbrown6 Apr 21, 2023
df7ee45
Update hr_detect.R
ndbrown6 Apr 21, 2023
151e833
Update hr_detect.mk
ndbrown6 Apr 21, 2023
aa2cd56
Update hr_detect.R
ndbrown6 Apr 21, 2023
3da1506
Update hr_detect.mk
ndbrown6 Apr 21, 2023
60957f8
Update hr_detect.mk
ndbrown6 Apr 22, 2023
a3ebd71
Update hr_detect.R
ndbrown6 Apr 22, 2023
3463e99
Update pyclone_vi.R
ndbrown6 Apr 25, 2023
38530a6
Update merge_sv.mk
ndbrown6 Apr 26, 2023
0e66dda
Update merge_sv.mk
ndbrown6 Apr 26, 2023
1333bcd
Update bwamemAligner.mk
ndbrown6 Apr 30, 2023
6541197
Delete dedup_summary.R
ndbrown6 Apr 30, 2023
c3c8122
++
ndbrown6 May 14, 2023
33c0735
Update facets_suite.mk
ndbrown6 May 14, 2023
bb24d44
Update facets_suite.mk
ndbrown6 May 14, 2023
02696c5
Update facets_suite.mk
ndbrown6 May 14, 2023
25e5a17
Update facets_suite.mk
ndbrown6 May 14, 2023
47e0b5b
Update facets_suite.mk
ndbrown6 May 14, 2023
a06bfb8
Update facets_suite.mk
ndbrown6 May 14, 2023
c16dabf
Update facets_suite.mk
ndbrown6 May 14, 2023
f6be220
Update facets_suite.mk
ndbrown6 May 14, 2023
9428678
Update facets_suite.mk
ndbrown6 May 14, 2023
e832f55
Update facets_suite.mk
ndbrown6 May 15, 2023
09f1dcf
Update facets_suite.mk
ndbrown6 May 15, 2023
643a1ef
++
ndbrown6 May 15, 2023
ffe8870
Update facets_suite.R
ndbrown6 May 15, 2023
351ebbc
++
ndbrown6 May 15, 2023
8715d68
++
ndbrown6 May 19, 2023
302cb8d
++
ndbrown6 May 19, 2023
6c082f8
Update polysolver.mk
ndbrown6 May 19, 2023
9cdea08
Update polysolver.mk
ndbrown6 May 19, 2023
fa64884
Update polysolver.mk
ndbrown6 May 20, 2023
e41328d
++
ndbrown6 May 22, 2023
1833fa8
Update hr_detect.R
ndbrown6 May 24, 2023
495db40
Update hr_detect.R
ndbrown6 May 24, 2023
c9a3cfa
Update gridss_tumor_normal.mk
ndbrown6 Jun 27, 2023
dfc6133
Update bam_interval_metrics.mk
ndbrown6 Jul 11, 2023
1bb9b05
++ bam_metrics
ndbrown6 Sep 13, 2023
5c6b7cb
WGS metrics
ndbrown6 Sep 13, 2023
aadc15c
Update wgs_metrics.mk
ndbrown6 Sep 13, 2023
a7753f6
++
ndbrown6 Oct 17, 2023
fe5d5be
++
ndbrown6 Oct 18, 2023
12bd171
Update getbam_data_mirror.mk
ndbrown6 Oct 18, 2023
49c9d47
Update getbam_data_mirror.mk
ndbrown6 Oct 18, 2023
df03ceb
Update Makefile
ndbrown6 Oct 18, 2023
d4e72c7
+-
ndbrown6 Oct 19, 2023
a5c1236
Update put_bam_data_mirror.mk
ndbrown6 Oct 19, 2023
20807df
Update put_bam_data_mirror.mk
ndbrown6 Oct 19, 2023
eda2875
Update put_bam_data_mirror.mk
ndbrown6 Oct 19, 2023
9b5912c
Update get_bam_data_mirror.mk
ndbrown6 Oct 19, 2023
d3d7ec4
Update put_bam_data_mirror.mk
ndbrown6 Oct 19, 2023
48b70fd
Update qmake.pl
ndbrown6 May 16, 2024
9b6b94b
Update get_bam_data_mirror.mk
ndbrown6 Jun 12, 2024
5ae0e57
Update get_bam_irb_mirror.mk
ndbrown6 Jun 12, 2024
471c00c
Update put_bam_data_mirror.mk
ndbrown6 Jun 12, 2024
b4c01fd
++
ndbrown6 Jul 30, 2024
f6a4329
Update config.inc
ndbrown6 Jul 30, 2024
e55d8d6
++
ndbrown6 Aug 2, 2024
3aa1e20
Update msisensor.mk
ndbrown6 Aug 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
371 changes: 169 additions & 202 deletions Makefile

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ CREATE_SEQ_DICT = $(JAVA) -Xmx$(PICARD_MEM) -jar $(PICARD_DIR)/CreateSequenceDic
CALC_HS_METRICS = $(JAVA) -Xmx$(PICARD_MEM) -jar $(PICARD_DIR)/CalculateHsMetrics.jar $(PICARD_OPTS)
COLLECT_MULT_METRICS = $(JAVA) -Xmx$(PICARD_MEM) -jar $(PICARD_DIR)/CollectMultipleMetrics.jar $(PICARD_OPTS)
COLLECT_TARGETED_METRICS = $(JAVA) -Xmx$(PICARD_MEM) -jar $(PICARD_DIR)/CollectTargetedPcrMetrics.jar $(PICARD_OPTS)

COLLECT_ALIGNMENT_METRICS = $(PICARD) -Xmx$(PICARD_MEM) CollectAlignmentSummaryMetrics $(PICARD_OPTS)
COLLECT_INSERT_METRICS = $(PICARD) -Xmx$(PICARD_MEM) CollectInsertSizeMetrics $(PICARD_OPTS)
COLLECT_OXOG_METRICS = $(PICARD) -Xmx$(PICARD_MEM) CollectOxoGMetrics $(PICAD_OPTS)
COLLECT_GC_BIAS = $(PICARD) -Xmx$(PICARD_MEM) CollectGcBiasMetrics $(PICARD_OPTS)
COLLECT_WGS_METRICS = $(PICARD) -Xmx$(PICARD_MEM) CollectWgsMetrics $(PICARD_OPTS)
COLLECT_DUP_METRICS = $(PICARD) -Xmx$(PICARD_MEM) CollectDuplicateMetrics $(PICARD_OPTS)
BAM_INDEX = $(PICARD) -Xmx$(PICARD_MEM) BamIndexStats $(PICARD_OPTS)
FIX_MATE = $(call FIX_MATE_MEM,$(PICARD_MEM))
FIX_MATE_MEM = $(JAVA) -Xmx$(1) -jar $(PICARD_DIR)/FixMateInformation.jar $(PICARD_OPTS) TMP_DIR=$(TMPDIR)
SAM_TO_FASTQ = $(call SAM_TO_FASTQ_MEM,$(PICARD_MEM))
Expand All @@ -120,7 +126,7 @@ SNP_EFF_MEM = $(JAVA8) -Xmx$1 -jar $(SNP_EFF_JAR)
SNP_SIFT_MEM = $(JAVA8) -Xmx$1 -jar $(SNP_SIFT_JAR)
SNP_SIFT = $(call SNP_SIFT_MEM,$(DEFAULT_JAVA_MEM))
VCF_EFF_ONE_PER_LINE = $(HOME)/share/usr/snpEff-4.1/scripts/vcfEffOnePerLine.pl
VCF_JOIN_EFF = modules/scripts/joinEff.pl
VCF_JOIN_EFF = modules/scripts/join_eff.pl

COUNT_SAMPLES = $(shell expr `sed 's/\..*//; s:.*/::' <<< $1 | grep -o "_" | wc -l` + 1)

Expand Down
61 changes: 1 addition & 60 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,2 @@
# jrflab modules
[![Build Status](https://travis-ci.org/cBioPortal/cbioportal.svg?branch=master)](https://travis-ci.org/jrflab/modules)
# modules

## Introduction
This is the implementation of the jrflab pipeline.

## Installation
The easiest way to download this pipeline is to clone the repository.

```
git clone https://github.com/jrflab/modules.git
```

## Dependencies
- An instance of [anaconda](https://www.anaconda.com) or [miniconda](https://conda.io/en/latest/miniconda.html)
- IMB's Platform Load Sharing Facility (LSF) or Oracle's Sun Grid Engine (SGE) for resource management

### Following R Packages
- [xxx](https://)

## Best practices

### Conventions
- Sample names cannot have "/" or "." in them
- Fastq files end in ".fastq.gz"
- Fastq files are stored in DATA_DIR (Set as Environment Variable)

### Whole genome, whole exome and targeted sequencing
- QC
- BWA
- Broad Standard Practices on bwa bam
- Haplotype Caller, Platypus, MuTect, Strelka
- snpEff, Annovar, SIFT, pph2, vcf2maf, VEP, OncoKB, ClinVar
- Copy number, tumor purity using Facets
- Contamination using
- HLA Typing
* [xxx](http://)

### RNA transcriptome sequencing
- QC
- Tophat, STAR
- Cufflinks (ENS and UCSC)
- In-house Exon Expression (ENS and UCSC)
- fusion-catcher, tophat-fusion, deFuse
- OncoFuse actionable fusion classification

### Patient:
- Genotyping On Patient.
1000g sites are evaluated for every library and then compared (all vs all)
If two libraries come from a patient the match should be pretty good >80%
- Still to develop:
If the match is below a certain threshold, break the pipeline for patient

## Detailed usage
[wiki](https://github.com/jrflab/modules/wiki)

## Known issues

### Known bugs

### Currently under development
12 changes: 6 additions & 6 deletions aligners/bwamemAligner.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ BWAMEM_REF_FASTA ?= $(REF_FASTA)
BWAMEM_THREADS = 8
BWAMEM_MEM_PER_THREAD = $(if $(findstring true,$(PDX)),4G,2G)

..DUMMY := $(shell mkdir -p version; $(BWA) &> version/bwamem.txt; echo "options: $(BWA_ALN_OPTS)" >> version/bwamem.txt )
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: bwamem


BWA_BAMS = $(foreach sample,$(SAMPLES),bam/$(sample).bam)

bwamem : $(BWA_BAMS) $(addsuffix .bai,$(BWA_BAMS))
Expand All @@ -50,6 +44,12 @@ bwamem/bam/%.bwamem.bam : fastq/%.fastq.gz

fastq/%.fastq.gz : fastq/%.fastq
$(call RUN,,"gzip -c $< > $(@) && $(RM) $<")


..DUMMY := $(shell mkdir -p version; $(BWA) &> version/bwamem.txt; echo "options: $(BWA_ALN_OPTS)" >> version/bwamem.txt )
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: bwamem

include modules/bam_tools/processBam.mk
include modules/fastq_tools/fastq.mk
Expand Down
1 change: 1 addition & 0 deletions aligners/tmapAligner.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include modules/aligners/align.inc
ALIGNER := tmap
LOGDIR := log/tmap.$(NOW)


SAMTOOLS_SORT_MEM = 2000000000

FASTQ_CHUNKS := 10
Expand Down
72 changes: 0 additions & 72 deletions bam_tools/fixBam.mk

This file was deleted.

75 changes: 75 additions & 0 deletions bam_tools/fix_bam.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
include modules/Makefile.inc
include modules/genome_inc/b37.inc

LOGDIR = log/fix_bam.$(NOW)

PICARD_JAR = ~/share/usr/picard/bin/picard.jar

fix_bam : $(foreach sample,$(SAMPLES),fixed_bam/$(sample).bam)

define fix-bam
unprocessed_bam/$1.ubam : unprocessed_bam/$1.bam
$$(call RUN,-c -n 1 -s 12G -m 18G -w 72:00:00,"java -Djava.io.tmpdir=$(TMPDIR) -Xmx16G -jar $$(PICARD_JAR) RevertSam \
I=$$(<) \
O=$$(@) \
SANITIZE=true \
MAX_DISCARD_FRACTION=0.005 \
ATTRIBUTE_TO_CLEAR=XT \
ATTRIBUTE_TO_CLEAR=XN \
ATTRIBUTE_TO_CLEAR=AS \
ATTRIBUTE_TO_CLEAR=OC \
ATTRIBUTE_TO_CLEAR=OP \
SORT_ORDER=queryname \
RESTORE_ORIGINAL_QUALITIES=true \
REMOVE_DUPLICATE_INFORMATION=true \
REMOVE_ALIGNMENT_INFORMATION=true \
TMP_DIR=$(TMPDIR)")

unprocessed_bam/$1.fixed.bam : unprocessed_bam/$1.bam unprocessed_bam/$1.ubam
$$(call RUN, -c -n 1 -s 12G -m 18G -w 72:00:00,"java -Djava.io.tmpdir=$(TMPDIR) -Xmx16G -jar $$(PICARD_JAR) MergeBamAlignment \
R=$$(DMP_FASTA) \
ALIGNED_BAM=$$(<) \
UNMAPPED_BAM=$$(<<) \
O=$$(@) \
CREATE_INDEX=true \
ADD_MATE_CIGAR=true \
CLIP_ADAPTERS=true \
CLIP_OVERLAPPING_READS=true \
INCLUDE_SECONDARY_ALIGNMENTS=false \
MAX_INSERTIONS_OR_DELETIONS=-1 \
TMP_DIR=$(TMPDIR)")

unprocessed_bam/$1.dedup.bam : unprocessed_bam/$1.fixed.bam
$$(call RUN, -c -n 1 -s 12G -m 18G -w 72:00:00,"java -Djava.io.tmpdir=$$(TMPDIR) -Xmx16G -jar $$(PICARD_JAR) MarkDuplicates \
I=$$(<) \
O=$$(@) \
M=unprocessed_bam/$1.txt \
TMP_DIR=$$(TMPDIR)")

fixed_bam/$1.bam : unprocessed_bam/$1.dedup.bam
$$(call RUN, -c -n 1 -s 12G -m 18G -w 72:00:00,"java -Djava.io.tmpdir=$(TMPDIR) -Xmx16G -jar $$(PICARD_JAR) AddOrReplaceReadGroups \
I=$$(<) \
O=$$(@) \
RGID=$1 \
RGLB=$1 \
RGPL=illumina \
RGPU=NA \
RGSM=$1 \
TMP_DIR=$(TMPDIR) && \
samtools index $$(@) && \
cp fixed_bam/$1.bam.bai fixed_bam/$1.bai && \
rm -rf unprocessed_bam/$1.ubam && \
rm -rf unprocessed_bam/$1.fixed.bam && \
rm -rf unprocessed_bam/$1.dedup.bam && \
rm -rf unprocessed_bam/$1.fixed.bai && \
rm -rf unprocessed_bam/$1.dedup.bai && \
rm -rf unprocessed_bam/$1.txt")
endef
$(foreach sample,$(SAMPLES),\
$(eval $(call fix-bam,$(sample))))

..DUMMY := $(shell mkdir -p version; \
echo "picard" > version/fix_bam.txt)
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: fix_bam
File renamed without changes.
4 changes: 2 additions & 2 deletions bam_tools/fixRG.mk → bam_tools/fix_rg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ include modules/Makefile.inc
include modules/variant_callers/gatk.inc
include modules/aligners/align.inc

LOGDIR ?= log/fixRG.$(NOW)
LOGDIR ?= log/fix_rg.$(NOW)

BAMS = $(foreach sample,$(SAMPLES),bam/$(sample).bam)

fixed_bams : $(BAMS) $(addsuffix .bai,$(BAMS))

bam/%.bam : unprocessed_bam/%.rg.bam
$(INIT) ln -f $(<) $(@)


include modules/bam_tools/processBam.mk
36 changes: 36 additions & 0 deletions bam_tools/get_bam_data_mirror.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
include modules/Makefile.inc

LOGDIR = log/getbam_data_mirror.$(NOW)

get_bam : $(foreach sample,$(SAMPLES),bam/$(sample).bam) \
$(foreach sample,$(SAMPLES),bam/$(sample).bam.bai) \
$(foreach sample,$(SAMPLES),bam/$(sample).bai)

PROJECT_NAME = $(shell basename $(PWD))

define get-bam
bam/$1.bam :
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
rsync -aP -e ssh $(USER)@lilac-xfer01.mskcc.org:/oscar/warm/reis-filho/by_user/$(USER)/$(PROJECT_NAME)/$1.bam \
bam/")

bam/$1.bam.bai :
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
rsync -aP -e ssh $(USER)@lilac-xfer01.mskcc.org:/oscar/warm/reis-filho/by_user/$(USER)/$(PROJECT_NAME)/$1.bam.bai \
bam/")

bam/$1.bai :
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
rsync -aP -e ssh $(USER)@lilac-xfer01.mskcc.org:/oscar/warm/reis-filho/by_user/$(USER)/$(PROJECT_NAME)/$1.bai \
bam/")


endef
$(foreach sample,$(SAMPLES),\
$(eval $(call get-bam,$(sample))))

..DUMMY := $(shell mkdir -p version; \
which scp > version/getbam_data_mirror.txt)
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: get_bam
32 changes: 32 additions & 0 deletions bam_tools/get_bam_irb_mirror.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
include modules/Makefile.inc

LOGDIR = log/getbam_irb_mirror.$(NOW)

get_bam : $(foreach sample,$(SAMPLES),bam/$(sample).bam) \
$(foreach sample,$(SAMPLES),bam/$(sample).bam.bai) \
$(foreach sample,$(SAMPLES),bam/$(sample).bai)

define get-bam
bam/$1.bam :
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
scp $(USER)@juno-xfer01.mskcc.org:/juno/dmp/share/irb12_245/`echo $1 | cut -c 1-1`/`echo $1 | cut -c 2-2`/$1.bam \
bam/")

bam/$1.bam.bai : bam/$1.bam
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
$(SAMTOOLS) index $$(<)")

bam/$1.bai : bam/$1.bam bam/$1.bam.bai
$$(call RUN,-c -n 1 -s 2G -m 4G, "set -o pipefail && \
cp $$(<<) $$(@)")


endef
$(foreach sample,$(SAMPLES),\
$(eval $(call get-bam,$(sample))))

..DUMMY := $(shell mkdir -p version; \
which scp > version/getbam_irb_mirror.txt)
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: get_bam
8 changes: 4 additions & 4 deletions bam_tools/mergeBam.mk → bam_tools/merge_bam.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ include modules/Makefile.inc

LOGDIR = log/merge.$(NOW)

.SECONDARY:
.DELETE_ON_ERROR:
.PHONY : merged_bam

merged_bam : $(foreach sample,$(MERGE_SAMPLES),bam/$(sample).bam bam/$(sample).bam.bai)

define merged-bam
Expand All @@ -32,4 +28,8 @@ $(foreach sample,$(MERGE_SAMPLES),\
bam/%.bam : merged_bam/%.rg.bam
$(INIT) ln -f $< $@

.SECONDARY:
.DELETE_ON_ERROR:
.PHONY : merged_bam

include modules/bam_tools/processBam.mk
Loading