File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/35/ea070094b929c82bd08d2df88c48a5/.command.log
Size
13.1 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/35/ea070094b929c82bd08d2df88c48a5/.command.sh
  Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/78/fe9026c82fd110e3d7a5564aba3f62/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam
  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/35/ea070094b929c82bd08d2df88c48a5/.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-rnd-pltf-dev-nextflow-scratch-01/work/78/fe9026c82fd110e3d7a5564aba3f62/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
  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 659_cAd-T1-TRNA-1_B23WHTKLT4_1
+ all_qc -bam 659_cAd-T1-TRNA-1_B23WHTKLT4_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 659_cAd-T1-TRNA-1_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed


seqtool depth -bam 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam -bed 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
saturation_plot       -bams 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam       -region chr20       -output 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/saturation_qc.tsv 
fragment_size       -bams 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam       -region chr20       -output_prefix 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/fragsize       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.mpileup && contamination -input 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_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: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai

164205it [00:00, 1641985.01it/s]
339579it [00:00, 1707605.78it/s]
514687it [00:00, 1727315.84it/s]
693382it [00:00, 1750666.45it/s]
872369it [00:00, 1764772.12it/s]
1053595it [00:00, 1780899.85it/s]
1232664it [00:00, 1784081.35it/s]
1411073it [00:00, 1782842.48it/s]
1590382it [00:00, 1786023.60it/s]
1769363it [00:01, 1787172.92it/s]
1948081it [00:01, 1770028.13it/s]
2128147it [00:01, 1779267.73it/s]
2310643it [00:01, 1793025.44it/s]
2489975it [00:01, 1783520.58it/s]
2669365it [00:01, 1786612.84it/s]
2848409it [00:01, 1787742.52it/s]
3027199it [00:01, 1784258.83it/s]
3205637it [00:01, 1778576.54it/s]
3383505it [00:01, 1776592.16it/s]
3561172it [00:02, 1766286.65it/s]
3741384it [00:02, 1776949.78it/s]
3920325it [00:02, 1780651.35it/s]
4100893it [00:02, 1788117.73it/s]
4280187it [00:02, 1789542.57it/s]
4459151it [00:02, 1785486.86it/s]
4637708it [00:02, 1780516.93it/s]
4815767it [00:02, 1758908.37it/s]
4994587it [00:02, 1767570.33it/s]
5172639it [00:02, 1771403.73it/s]
5352153it [00:03, 1778467.94it/s]
5531138it [00:03, 1781849.47it/s]
5709346it [00:03, 1777265.14it/s]
5887090it [00:03, 1744234.31it/s]
6061652it [00:03, 1734087.42it/s]
6235157it [00:03, 1706082.77it/s]
6405896it [00:03, 1671918.60it/s]
6579481it [00:03, 1690503.71it/s]
6748712it [00:03, 1685551.13it/s]
6917387it [00:03, 1606174.12it/s]
7088761it [00:04, 1636909.71it/s]
7260597it [00:04, 1660538.79it/s]
7436299it [00:04, 1688806.81it/s]
7609648it [00:04, 1701981.44it/s]
7786183it [00:04, 1720711.96it/s]
7964871it [00:04, 1740387.50it/s][W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai

8141902it [00:04, 1749244.85it/s]
8316970it [00:04, 1744058.01it/s]
8493477it [00:04, 1750313.06it/s]
8672364it [00:04, 1761821.07it/s]
8850160it [00:05, 1766613.46it/s]
9028662it [00:05, 1772106.03it/s]
9206678it [00:05, 1774500.73it/s]
9384149it [00:05, 1769404.90it/s]
9563169it [00:05, 1775609.70it/s]
9740744it [00:05, 1772740.06it/s]
9918053it [00:05, 1772716.28it/s]
10095934it [00:05, 1774504.93it/s]
10275699it [00:05, 1781419.91it/s]
10454346it [00:05, 1782916.27it/s]
10634360it [00:06, 1788060.21it/s]
10814201it [00:06, 1791145.07it/s]
10993318it [00:06, 1784065.51it/s]
11171733it [00:06, 1781086.20it/s]
11353713it [00:06, 1792644.90it/s]
11532986it [00:06, 1790244.84it/s]
11712017it [00:06, 1788054.16it/s]
11890827it [00:06, 1783119.04it/s]
12069144it [00:06, 1769179.83it/s]
12246086it [00:06, 1760864.59it/s]
12424740it [00:07, 1768476.87it/s]
12603059it [00:07, 1772839.37it/s]
12781812it [00:07, 1777140.10it/s]
12960256it [00:07, 1779307.17it/s]
13138197it [00:07, 1777011.32it/s]
13315906it [00:07, 1772835.90it/s][W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai

13493711it [00:07, 1774377.64it/s]
13671154it [00:07, 1773322.05it/s]
13848866it [00:07, 1774362.05it/s]
14026305it [00:07, 1766915.62it/s]
14203005it [00:08, 1758465.37it/s]
14378864it [00:08, 1735566.71it/s]
14552484it [00:08, 1735253.83it/s]
14726736it [00:08, 1737338.05it/s]
14904492it [00:08, 1749301.80it/s]
15081274it [00:08, 1754702.52it/s]
15256769it [00:08, 1735258.32it/s]
15430355it [00:08, 1733362.34it/s][W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai

15606915it [00:08, 1742883.92it/s]
15786354it [00:08, 1758232.94it/s]
15966942it [00:09, 1772453.33it/s]
16147752it [00:09, 1783053.25it/s]
16326081it [00:09, 1783048.28it/s]
16505995it [00:09, 1787813.31it/s]
16685419it [00:09, 1789679.78it/s]
16864396it [00:09, 1785814.37it/s]
17005067it [00:09, 1760612.57it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai


tabix -s 1 -b 2 -e 2 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz     > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv


cat 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md         -output 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_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     659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_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     659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz> 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_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  659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bam  > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_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: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_cAd-T1-TRNA-1_B23WHTKLT4_1.md.bai




cat 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv  | plot -x 0  -header infer  -ylim 0 2  -title "659_cAd-T1-TRNA-1_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 






echo `date` > 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md/qc_complete.txt


+ merge_qc -folders 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1.md -output 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_cAd-T1-TRNA-1_B23WHTKLT4_1/659_cAd-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv