File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/1e/5b5adebab8f546f2e8f7a3c87dca5c/.command.log
Size
13.0 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/7d/532599d28749e30d1586ca59231bbe/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bam
  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/1e/5b5adebab8f546f2e8f7a3c87dca5c/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/7d/532599d28749e30d1586ca59231bbe/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_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/1e/5b5adebab8f546f2e8f7a3c87dca5c/.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 BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1
+ all_qc -bam BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_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 BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1 -reference ref_genome.fa -region chr20
mkdir -p BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai

155312it [00:00, 1553036.32it/s]
316019it [00:00, 1584736.57it/s]
482518it [00:00, 1621291.17it/s]
655749it [00:00, 1665090.04it/s]
827182it [00:00, 1682750.58it/s]
1000651it [00:00, 1700383.17it/s]
1177841it [00:00, 1723595.00it/s]
1352321it [00:00, 1730271.95it/s]
1527732it [00:00, 1737587.88it/s]
1701528it [00:01, 1737603.51it/s]
1876644it [00:01, 1741732.15it/s]
2052030it [00:01, 1745402.74it/s]
2226571it [00:01, 1732314.16it/s]
2407008it [00:01, 1753786.59it/s]
2584585it [00:01, 1760367.12it/s]
2760643it [00:01, 1756050.07it/s]
2936264it [00:01, 1751229.66it/s]
3113826it [00:01, 1758506.48it/s]
3289689it [00:01, 1738931.37it/s]
3463635it [00:02, 1719635.88it/s]
3638376it [00:02, 1727633.86it/s]
3811199it [00:02, 1712338.27it/s]
3982490it [00:02, 1707285.13it/s]
4153256it [00:02, 1696156.67it/s]
4324576it [00:02, 1701181.23it/s]
4495812it [00:02, 1704461.90it/s]
4671050it [00:02, 1718658.30it/s]
4846101it [00:02, 1728141.08it/s]
5018937it [00:02, 1726912.92it/s]
5191644it [00:03, 1667935.11it/s]
5363765it [00:03, 1683471.25it/s]
5539878it [00:03, 1706314.57it/s]
5716353it [00:03, 1723591.82it/s]
5890289it [00:03, 1728253.93it/s]
6063342it [00:03, 1728909.52it/s]
6239792it [00:03, 1739452.38it/s]
6414558it [00:03, 1741875.02it/s]
6589668it [00:03, 1744474.94it/s]
6764158it [00:03, 1741703.64it/s]
6938359it [00:04, 1732953.85it/s]
7112898it [00:04, 1736586.80it/s]
7288498it [00:04, 1742370.08it/s]
7464449it [00:04, 1747481.87it/s]
7639211it [00:04, 1746457.63it/s]
7814486it [00:04, 1748270.24it/s]
7991069it [00:04, 1753507.22it/s]
8166426it [00:04, 1656490.82it/s]
8333183it [00:04, 1599679.97it/s]
8505428it [00:04, 1634522.96it/s]
8678496it [00:05, 1662246.51it/s]
8845470it [00:05, 1543098.47it/s]
9001814it [00:05, 1456254.71it/s]
9149455it [00:05, 1418272.83it/s]
9292617it [00:05, 1379048.13it/s]
9431404it [00:05, 1352911.53it/s][W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai

9567225it [00:05, 1333639.12it/s]
9700887it [00:05, 1312157.20it/s]
9832262it [00:05, 1292506.66it/s]
9961585it [00:06, 1275209.45it/s]
10121510it [00:06, 1367999.34it/s]
10294238it [00:06, 1472299.53it/s]
10465852it [00:06, 1543768.10it/s]
10635913it [00:06, 1590039.06it/s]
10807947it [00:06, 1628610.36it/s]
10977902it [00:06, 1649698.74it/s]
11152407it [00:06, 1678043.10it/s]
11328690it [00:06, 1703359.38it/s]
11503906it [00:06, 1717939.65it/s]
11678985it [00:07, 1727757.43it/s]
11855392it [00:07, 1738618.04it/s]
12029568it [00:07, 1739542.80it/s]
12205843it [00:07, 1746483.19it/s]
12380523it [00:07, 1668647.20it/s]
12419343it [00:07, 1652665.10it/s]
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.bai


tabix -s 1 -b 2 -e 2 BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.depth.gz     > BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md.depth_hist.tsv


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




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






echo `date` > BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md/qc_complete.txt


+ merge_qc -folders BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1.md -output BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1_full_basic_stats.tsv
+ head -n1 BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1/BVT_FFPE_TRNA_bst_01_03_A23WKFTLT4_1_full_basic_stats.tsv