File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bc/a578921ebcc2e67dc22149142a3c55/.command.log
Size
12.9 KB
Attempt
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bc/a578921ebcc2e67dc22149142a3c55/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/77/728855942d437e169b55b05735cee9/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/77/728855942d437e169b55b05735cee9/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bc/a578921ebcc2e67dc22149142a3c55/.command.run
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa.fai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/beds/twist/Twist_rna_exome_AND_fusion_hg38.bed
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir aih-tih-sc-12b72b-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam -beds Twist_rna_exome_AND_fusion_hg38.bed -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz -contamination_bed dbsnp_hg38_contam_sites.bed -output_folder aih-tih-sc-12b72b-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/full_bed.bed


seqtool depth -bam aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot       -bams aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam       -region chr20       -output aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/saturation_qc.tsv 
fragment_size       -bams aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam       -region chr20       -output_prefix aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/fragsize       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai

152380it [00:00, 1523641.62it/s]
320776it [00:00, 1617898.04it/s]
488330it [00:00, 1644184.27it/s]
658193it [00:00, 1665644.21it/s]
832551it [00:00, 1693685.39it/s]
1006914it [00:00, 1710646.93it/s]
1181901it [00:00, 1723447.07it/s]
1359979it [00:00, 1741680.51it/s]
1537492it [00:00, 1751953.41it/s]
1714124it [00:01, 1756370.67it/s]
1889761it [00:01, 1753590.68it/s]
2065121it [00:01, 1741254.34it/s]
2243330it [00:01, 1753532.02it/s]
2421155it [00:01, 1760947.18it/s]
2597267it [00:01, 1619874.82it/s]
2769006it [00:01, 1647283.27it/s]
2945345it [00:01, 1680695.71it/s]
3115876it [00:01, 1687719.44it/s]
3290981it [00:01, 1706313.02it/s]
3462324it [00:02, 1684411.20it/s]
3631548it [00:02, 1686686.64it/s]
3800597it [00:02, 1644011.23it/s]
3971938it [00:02, 1664223.97it/s]
4138739it [00:02, 1645979.26it/s]
4307310it [00:02, 1657609.73it/s]
4473292it [00:02, 1650906.81it/s]
4641680it [00:02, 1660529.45it/s]
4813282it [00:02, 1676911.25it/s]
4981073it [00:02, 1630364.76it/s]
5150328it [00:03, 1648538.32it/s]
5315457it [00:03, 1615193.70it/s]
5485570it [00:03, 1640263.21it/s]
5649871it [00:03, 1577181.06it/s]
5808209it [00:03, 1559476.68it/s]
5974204it [00:03, 1588472.63it/s]
6135575it [00:03, 1595819.79it/s]
6309565it [00:03, 1638210.43it/s]
6473678it [00:03, 1595067.69it/s]
6640804it [00:03, 1617190.66it/s]
6815651it [00:04, 1655760.13it/s]
6992137it [00:04, 1688003.74it/s]
7166718it [00:04, 1705143.82it/s]
7342963it [00:04, 1722190.10it/s]
7517577it [00:04, 1729317.17it/s]
7690622it [00:04, 1719439.52it/s]
7862656it [00:04, 1703358.65it/s]
8038431it [00:04, 1719470.02it/s]
8217191it [00:04, 1739725.73it/s]
8393433it [00:05, 1746475.57it/s]
8568135it [00:05, 1724265.73it/s]
8740656it [00:05, 1709847.87it/s]
8911719it [00:05, 1695546.62it/s]
9081337it [00:05, 1677355.95it/s]
9257496it [00:05, 1702126.61it/s]
9431648it [00:05, 1713733.38it/s]
9603100it [00:05, 1694831.58it/s]
9772670it [00:05, 1684831.00it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai

9941214it [00:05, 1670964.22it/s]
10112290it [00:06, 1682667.75it/s]
10280856it [00:06, 1683523.72it/s]
10449247it [00:06, 1667907.99it/s]
10623576it [00:06, 1690220.54it/s]
10792660it [00:06, 1685548.48it/s]
10963585it [00:06, 1692497.14it/s]
11132870it [00:06, 1659359.38it/s]
11299278it [00:06, 1660727.57it/s]
11471433it [00:06, 1678720.66it/s]
11639405it [00:06, 1669166.62it/s]
11812902it [00:07, 1688680.27it/s]
11981843it [00:07, 1686064.17it/s]
12150500it [00:07, 1549420.54it/s]
12307597it [00:07, 1548727.27it/s]
12477322it [00:07, 1591149.83it/s]
12647774it [00:07, 1623964.57it/s]
12815806it [00:07, 1640440.49it/s]
12980830it [00:07, 1643311.63it/s]
13145684it [00:07, 1581727.36it/s]
13304670it [00:08, 1459474.40it/s]
13452790it [00:08, 1388681.59it/s]
13544786it [00:08, 1650262.84it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai


tabix -s 1 -b 2 -e 2 aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth.gz     > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth_hist.tsv


cat aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md         -output aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth.png


[W::hts_idx_load3] The index file is older than the data file: Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi


seqtool read_qc    -bed Twist_rna_exome_AND_fusion_hg38.bed     -n_threads 1     -bam_threads 2     aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/read_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool reads_per_target     -bed Twist_rna_exome_AND_fusion_hg38.bed     -threads 1     -bam_threads 2     aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/depth_stats.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool gc_bias  -reference ref_genome.fa  -bed Twist_rna_exome_AND_fusion_hg38.bed  -bin_size 0.05  -threads 1  -bam_threads 2  aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bam  > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md.bai






cat aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv  | plot -x 0  -header infer  -ylim 0 2  -title "aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 




echo `date` > aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1.md -output aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-12b72b-R1_A23WJ53LT4_1/aih-tih-sc-12b72b-R1_A23WJ53LT4_1_full_basic_stats.tsv