Skip to content

Commit b061196

Browse files
authored
Merge pull request #95 from dufeiyu/update
Use MSHDRepo, launcher script update and QC metrics change
2 parents 42fd518 + 5ea13d9 commit b061196

File tree

6 files changed

+36
-23
lines changed

6 files changed

+36
-23
lines changed

MyeloseqHD.wdl

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ workflow MyeloseqHD {
5151
String CustomAnnotationIndex = MyeloSeqHDRepo + "/accessory_files/MyeloseqHD.custom_annotations.vcf.gz.tbi"
5252
String CustomAnnotationParameters = "MYELOSEQ,vcf,exact,0,TCGA_AC,MDS_AC,BLACKLIST"
5353

54-
String QC_pl = "/usr/local/bin/QC_metrics.pl"
54+
String QC_pl = MyeloSeqHDRepo + "/dockerfiles/docker-myeloseq/QC_metrics.pl"
5555
String xfer_pl = MyeloSeqHDRepo + "/scripts/data_transfer.pl"
5656

5757
String DemuxFastqDir = "/storage1/fs1/gtac-mgi/Active/CLE/assay/myeloseqhd/demux_fastq"

MyeloseqHDAnalysis.wdl

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ workflow MyeloseqHDAnalysis {
106106
Vaf=MinVaf,
107107
Reads=MinReads,
108108
Name=Name,
109+
MyeloSeqHDRepo=MyeloSeqHDRepo,
109110
queue=Queue,
110111
jobGroup=JobGroup
111112
}
@@ -313,6 +314,7 @@ task clean_variants {
313314
task combine_variants {
314315
input{
315316
Array[String] Vcfs
317+
String MyeloSeqHDRepo
316318
String Cram
317319
String CramIndex
318320
String refFasta
@@ -328,7 +330,7 @@ task combine_variants {
328330
command {
329331
/usr/local/bin/bcftools merge -F x -m none --force-samples -Oz ${sep=" " Vcfs} | /usr/local/bin/bcftools sort -Oz -o combined.vcf.gz && \
330332
/usr/bin/tabix -p vcf combined.vcf.gz && \
331-
/usr/bin/python3 /home/fdu/git/cle-myeloseqhd/dockerfiles/docker-myeloseq/filterHaloplex.py -r ${refFasta} --minreadsperfamily ${default='3' MinReadsPerFamily} -m ${default='5' Reads} -d ${default='0.02' Vaf} combined.vcf.gz ${Cram} ${Name} > ${Name}.combined_and_tagged.vcf
333+
/usr/bin/python3 ${MyeloSeqHDRepo}/dockerfiles/docker-myeloseq/filterHaloplex.py -r ${refFasta} --minreadsperfamily ${default='3' MinReadsPerFamily} -m ${default='5' Reads} -d ${default='0.02' Vaf} combined.vcf.gz ${Cram} ${Name} > ${Name}.combined_and_tagged.vcf
332334
}
333335

334336
runtime {

accessory_files/MyeloseqHD.QCMetrics.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"Failed hotspot": "0",
2121
"Haplotect sites": ",10",
2222
"Haplotect score": ",0.02",
23-
"ASSAY VERSION": "2.2",
23+
"ASSAY VERSION": "2.3",
2424
"DISCLAIMER": "This laboratory developed test (LDT) was developed and its performance characteristics determined by the CLIA Licensed Environment laboratory at the McDonnell Genome Institute at Washington University (MGI-CLE, CLIA #26D2092546, CAP #9047655), Dr. David H. Spencer MD, PhD, FCAP, Medical Director. 4444 Forest Park Avenue, Rm 4111 St. Louis, Missouri 63108 (314) 286-1460 Fax: (314) 286-1810. The MGI-CLE laboratory is regulated under CLIA as certified to perform high-complexity testing. Interpretation of sequencing results and case sign out is performed by Pathology and Immunology faculty in the Division of Anatomic and Molecular Pathology (WU-AMP Core Laboratory, CLIA #26D2013203, CAP #7233522) Dr. Fouad Boulos, MD, Medical Director. Pathology Consult Services, 425 S. Euclid Ave, Suite 4711, Mailstop 8024-14-4711, St. Louis, MO 63110 (314)-362-7784 Fax: (314) 362-4080. The AMP core laboratory is regulated under CLIA as certified to perform high-complexity testing. This test has not been cleared or approved by the FDA."
2525
}

dockerfiles/docker-myeloseq/QC_metrics.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
PCT_MAPPED_READS => 'MAPPING/ALIGNING SUMMARY: Mapped reads (%)',
3636
MEAN_INSERT_SIZE => 'MAPPING/ALIGNING SUMMARY: Insert length: mean',
3737
PCT_TARGET_BASES_GT_250x => 'COVERAGE SUMMARY: Target bases >250x (%)',
38-
PCT_TARGET_BASES_GT_2000x => 'COVERAGE SUMMARY: Target bases >2000x (%)',
38+
PCT_TARGET_BASES_GT_1250x => 'COVERAGE SUMMARY: Target bases >1250x (%)',
3939
PCT_TARGET_ALIGNED_READS => 'COVERAGE SUMMARY: Aligned reads in target region (%)',
4040
AVG_ALIGN_TARGET_COVERAGE => 'COVERAGE SUMMARY: Average alignment coverage over target region',
4141
PCT_LOW_COVERAGE_AMPLICON => 'AMPLICON SUMMARY: Amplicons with low coverage (%)',

imports.zip

-7 Bytes
Binary file not shown.

scripts/launcher.pl

+30-19
Original file line numberDiff line numberDiff line change
@@ -149,25 +149,6 @@
149149
$seq_id++;
150150
}
151151

152-
## DRAGEN sample sheet
153-
my $dragen_ss = File::Spec->join($out_dir, 'demux_sample_sheet.csv');
154-
my $ss_fh = IO::File->new(">$dragen_ss") or die "Fail to write to $dragen_ss";
155-
$ss_fh->print("[Settings]\n");
156-
$ss_fh->print("AdapterBehavior,trim\n");
157-
$ss_fh->print("AdapterRead1,AAGATCGGAAGAGCACACGTCTGAACTCC+CAGATCGGAAGAGCACACGTCTGAACTCC+GAGATCGGAAGAGCACACGTCTGAACTCC+TAGATCGGAAGAGCACACGTCTGAACTCC\n");
158-
$ss_fh->print("AdapterRead2,AAAGATCGGAAGAGCGTCGTGTAGGGAAA+CAAGATCGGAAGAGCGTCGTGTAGGGAAA+GAAGATCGGAAGAGCGTCGTGTAGGGAAA+TAAGATCGGAAGAGCGTCGTGTAGGGAAA\n");
159-
$ss_fh->print("OverrideCycles,N1Y150;I8N2;U10;N1Y150\n");
160-
$ss_fh->print("[Data]\n");
161-
$ss_fh->print("Lane,Sample_ID,Sample_Name,Sample_Project,index,index2\n");
162-
$ss_fh->print($ds_str);
163-
$ss_fh->close;
164-
165-
## Sample Index
166-
my $si = File::Spec->join($out_dir, 'sample_index');
167-
my $si_fh = IO::File->new(">$si") or die "Fail to write to $si";
168-
$si_fh->print($si_str);
169-
$si_fh->close;
170-
171152
## Get RunInfoString
172153
my $run_xml = File::Spec->join($rundir, 'RunParameters.xml');
173154
unless (-s $run_xml) {
@@ -207,6 +188,36 @@
207188
}
208189
$xml_fh->close;
209190

191+
## DRAGEN sample sheet
192+
my $num_N;
193+
if ($index1cycle == 19) {
194+
$num_N = 11;
195+
}
196+
elsif ($index1cycle == 10) {
197+
$num_N = 2;
198+
}
199+
else {
200+
die "Invalid index1cycle $index1cycle";
201+
}
202+
203+
my $dragen_ss = File::Spec->join($out_dir, 'demux_sample_sheet.csv');
204+
my $ss_fh = IO::File->new(">$dragen_ss") or die "Fail to write to $dragen_ss";
205+
$ss_fh->print("[Settings]\n");
206+
$ss_fh->print("AdapterBehavior,trim\n");
207+
$ss_fh->print("AdapterRead1,AAGATCGGAAGAGCACACGTCTGAACTCC+CAGATCGGAAGAGCACACGTCTGAACTCC+GAGATCGGAAGAGCACACGTCTGAACTCC+TAGATCGGAAGAGCACACGTCTGAACTCC\n");
208+
$ss_fh->print("AdapterRead2,AAAGATCGGAAGAGCGTCGTGTAGGGAAA+CAAGATCGGAAGAGCGTCGTGTAGGGAAA+GAAGATCGGAAGAGCGTCGTGTAGGGAAA+TAAGATCGGAAGAGCGTCGTGTAGGGAAA\n");
209+
$ss_fh->print('OverrideCycles,N1Y150;I8N'.$num_N.";U10;N1Y150\n");
210+
$ss_fh->print("[Data]\n");
211+
$ss_fh->print("Lane,Sample_ID,Sample_Name,Sample_Project,index,index2\n");
212+
$ss_fh->print($ds_str);
213+
$ss_fh->close;
214+
215+
## Sample Index
216+
my $si = File::Spec->join($out_dir, 'sample_index');
217+
my $si_fh = IO::File->new(">$si") or die "Fail to write to $si";
218+
$si_fh->print($si_str);
219+
$si_fh->close;
220+
210221
my $run_info_str = join ',', $runid, $instr, $side, $fcmode, $wftype, $R1cycle, $index1cycle, $index2cycle, $R2cycle;
211222

212223
## Input JSON

0 commit comments

Comments
 (0)