File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/40/35aacae0cfc1f206e520853694fccf/.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/40/35aacae0cfc1f206e520853694fccf/.command.sh
  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/59/00178ff369d60bf604d0b40579c473/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bam
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/40/35aacae0cfc1f206e520853694fccf/.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-rnd-pltf-dev-nextflow-scratch-01/work/59/00178ff369d60bf604d0b40579c473/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir aih-tih-sc-37dd87-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/full_bed.bed


seqtool depth -bam aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth.gz
saturation_plot       -bams aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bam       -region chr20       -output aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/saturation_qc.tsv 
fragment_size       -bams aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bam       -region chr20       -output_prefix aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bai

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

142204it [00:00, 1421959.99it/s]
307971it [00:00, 1560566.83it/s]
476920it [00:00, 1619397.92it/s]
648258it [00:00, 1656467.75it/s]
821135it [00:00, 1682509.84it/s]
993480it [00:00, 1696392.50it/s]
1166607it [00:00, 1707758.95it/s]
1338893it [00:00, 1712508.25it/s]
1512910it [00:00, 1721007.02it/s]
1685011it [00:01, 1720689.32it/s]
1857080it [00:01, 1706561.66it/s]
2027762it [00:01, 1705228.76it/s]
2200516it [00:01, 1711933.18it/s]
2378846it [00:01, 1733358.42it/s]
2552200it [00:01, 1733235.81it/s]
2725536it [00:01, 1729226.25it/s]
2898469it [00:01, 1723339.20it/s]
3071276it [00:01, 1724723.06it/s]
3243756it [00:01, 1723259.29it/s]
3416088it [00:02, 1706455.11it/s]
3588577it [00:02, 1711912.68it/s]
3762483it [00:02, 1719980.95it/s]
3936029it [00:02, 1724573.12it/s]
4108507it [00:02, 1719537.39it/s]
4280863it [00:02, 1720702.98it/s]
4453310it [00:02, 1721754.20it/s]
4628015it [00:02, 1729287.21it/s]
4800952it [00:02, 1720339.28it/s]
4973001it [00:02, 1704104.77it/s]
5143450it [00:03, 1701992.24it/s]
5313675it [00:03, 1693649.09it/s]
5484264it [00:03, 1697249.21it/s]
5656754it [00:03, 1705456.22it/s]
5827318it [00:03, 1704290.72it/s]
5999537it [00:03, 1709612.35it/s]
6172195it [00:03, 1714657.16it/s]
6343733it [00:03, 1714841.06it/s]
6516082it [00:03, 1717407.17it/s]
6688560it [00:03, 1719457.78it/s]
6860510it [00:04, 1706908.30it/s]
7031224it [00:04, 1705374.41it/s]
7205841it [00:04, 1717519.49it/s]
7377610it [00:04, 1710006.22it/s]
7551833it [00:04, 1719586.66it/s]
7727494it [00:04, 1730619.06it/s]
7900572it [00:04, 1729129.54it/s]
8073496it [00:04, 1724153.90it/s]
8246189it [00:04, 1724955.82it/s]
8418692it [00:04, 1722371.26it/s]
8592667it [00:05, 1727544.32it/s]
8765614it [00:05, 1728094.19it/s]
8938428it [00:05, 1725967.17it/s]
9111028it [00:05, 1716303.85it/s]
9282672it [00:05, 1713354.61it/s]
9456345it [00:05, 1720310.13it/s]
9629225it [00:05, 1722825.49it/s]
9804608it [00:05, 1732020.79it/s]
9981983it [00:05, 1744241.93it/s]
10156809it [00:05, 1745391.40it/s]
10331354it [00:06, 1740844.09it/s]
10509626it [00:06, 1753351.00it/s]
10684969it [00:06, 1749165.11it/s]
10859893it [00:06, 1749126.89it/s]
11034811it [00:06, 1743001.07it/s]
11209119it [00:06, 1733092.70it/s]
11382443it [00:06, 1731771.42it/s]
11557032it [00:06, 1735959.24it/s]
11730637it [00:06, 1727411.95it/s]
11903391it [00:06, 1724388.29it/s]
12076823it [00:07, 1727324.93it/s]
12250368it [00:07, 1729670.98it/s]
12423342it [00:07, 1727754.78it/s]
12596418it [00:07, 1728624.81it/s]
12769284it [00:07, 1674824.47it/s]
12937125it [00:07, 1674622.60it/s]
13105515it [00:07, 1677337.88it/s]
13277492it [00:07, 1689885.02it/s]
13446622it [00:07, 1689529.93it/s]
13615674it [00:07, 1643837.37it/s]
13780375it [00:08, 1632680.95it/s]
13941487it [00:08, 1709773.24it/s]


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai


tabix -s 1 -b 2 -e 2 aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth.gz     > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth_hist.tsv


cat aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md         -output aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.depth.gz> aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bam  > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md.bai




cat aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 






echo `date` > aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1.md -output aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_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-37dd87-R1_B23WHYVLT4_1/aih-tih-sc-37dd87-R1_B23WHYVLT4_1_full_basic_stats.tsv