Changeset 5829
- Timestamp:
- Feb 19, 2020, 3:21:30 PM (3 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/config/reggie-config.xml
r5827 r5829 198 198 <path>/usr/local/packages/snpeff/4.3s/SnpSift.jar</path> 199 199 </snpsift> 200 <fgbio> 201 <!-- full path to the fgbio.jar file (required) --> 202 <path>/usr/local/packages/fgbio/0.8.1/fgbio.jar</path> 203 </fgbio> 200 204 </programs> 201 205 … … 335 339 </trimmomatic> 336 340 341 337 342 </align-mips> 338 343 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/grid/MipsAlignJobCreator.java
r5828 r5829 143 143 } 144 144 String picard_path = cfg.getRequiredConfig("programs/picard/path", alignParameterSet); 145 String fgbio_path = cfg.getRequiredConfig("programs/fgbio/path", alignParameterSet); 145 146 146 147 // Options for the programs … … 258 259 script.cmd("JAVA="+java_path); 259 260 script.cmd("TrimmomaticJAR="+trimmomatic_path); 261 script.cmd("FgBioJAR="+fgbio_path); 260 262 script.cmd("ArchiveRoot="+archiveRoot); 261 263 script.cmd("FastqFolder=${ArchiveRoot}"+fastQFolder); … … 281 283 script.cmd("mkdir trimmomatic.2"); 282 284 script.cmd("mkdir bam.1"); 285 script.cmd("mkdir bam.2"); 283 286 script.cmd("cp ${ScriptDir}/stdwrap.sh ."); 284 287 script.cmd("cp ${ScriptDir}/mips_adapters.sh ."); … … 337 340 script.cmd("done"); 338 341 339 script.comment("Run Picard FastqToSam ");342 script.comment("Run Picard FastqToSam and annotat the BAM files with UMI"); 340 343 script.cmd("for prefix in ${FastqPrefix[@]} ; do"); 341 344 // Picard2 uses different parameter syntax, but the .rg file is stored in picard1 syntax 342 345 script.cmd(" rg_info=`./convert_picard_parameters.sh < fastq/${prefix}.rg`"); 343 346 344 String toSamCmd = "./stdwrap.sh ./picard2 FastqToSam"; 345 toSamCmd += " -SORT_ORDER queryname"; 346 toSamCmd += " -QUALITY_FORMAT Standard"; 347 toSamCmd += " ${rg_info}"; 348 toSamCmd += " -FASTQ trimmomatic.2/${prefix}_R1.fastq"; 349 toSamCmd += " -FASTQ2 trimmomatic.2/${prefix}_R2.fastq"; 350 toSamCmd += " -OUTPUT bam.1/${prefix}.bam"; 351 toSamCmd += " >> fastqtosam.out"; 352 script.cmd(" " + toSamCmd); 347 String toBamCmd = "./stdwrap.sh ./picard2 FastqToSam"; 348 toBamCmd += " -SORT_ORDER queryname"; 349 toBamCmd += " -QUALITY_FORMAT Standard"; 350 toBamCmd += " ${rg_info}"; 351 toBamCmd += " -FASTQ trimmomatic.2/${prefix}_R1.fastq"; 352 toBamCmd += " -FASTQ2 trimmomatic.2/${prefix}_R2.fastq"; 353 toBamCmd += " -OUTPUT bam.1/${prefix}.bam"; 354 toBamCmd += " >> fastqtosam.out"; 355 356 String umiCmd = "./stdwrap.sh ${JAVA} -jar ${FgBioJAR} AnnotateBamWithUmis"; 357 umiCmd += " --fail-fast true -t RX"; 358 umiCmd += " -i bam.1/${prefix}.bam"; 359 umiCmd += " -f fastq/${prefix}_UMI.fastq.gz"; 360 umiCmd += " -o bam.2/${prefix}.bam"; 361 umiCmd += " >> annotatebam.out"; 362 363 script.cmd(" " + toBamCmd); 364 script.cmd(" " + umiCmd); 353 365 script.cmd("done"); 354 366 /*
Note: See TracChangeset
for help on using the changeset viewer.