File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/fc/5f313a954bd475b4528c07b5a72ad3/.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/fc/5f313a954bd475b4528c07b5a72ad3/.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/ba/e3a6a7e2fc920ddd8f29b724318957/aih-tih-sc-9faac1-R1_A23WJ53LT4_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/fc/5f313a954bd475b4528c07b5a72ad3/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ba/e3a6a7e2fc920ddd8f29b724318957/aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md.bai
  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-9faac1-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-9faac1-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-9faac1-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-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-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
166105it [00:00, 1660600.24it/s]
344797it [00:00, 1734864.61it/s]
523395it [00:00, 1758175.37it/s]
703046it [00:00, 1773282.62it/s]
882654it [00:00, 1781437.92it/s]
1063950it [00:00, 1792133.68it/s]
1244663it [00:00, 1797015.67it/s]
1425429it [00:00, 1800268.10it/s]
1606063it [00:00, 1802143.83it/s]
1786812it [00:01, 1803776.14it/s]
1967190it [00:01, 1796765.28it/s]
2146950it [00:01, 1796881.27it/s]
2328543it [00:01, 1802621.48it/s]
2508810it [00:01, 1788214.29it/s]
2687984it [00:01, 1789252.70it/s]
2871366it [00:01, 1802586.91it/s]
3054152it [00:01, 1810100.38it/s]
3235179it [00:01, 1809289.15it/s]
3416120it [00:01, 1802218.59it/s]
3596355it [00:02, 1795512.78it/s]
3775919it [00:02, 1793760.11it/s]
3955303it [00:02, 1793180.35it/s]
4134627it [00:02, 1762230.34it/s]
4316069it [00:02, 1777649.39it/s]
4497617it [00:02, 1788870.65it/s]
4679127it [00:02, 1796608.90it/s]
4861234it [00:02, 1803893.07it/s]
5041672it [00:02, 1793386.43it/s]
5222292it [00:02, 1797171.18it/s]
5402194it [00:03, 1797709.68it/s]
5584305it [00:03, 1804693.27it/s]
5765716it [00:03, 1807492.99it/s]
5946617it [00:03, 1807931.10it/s]
6127420it [00:03, 1797669.86it/s]
6307207it [00:03, 1789014.42it/s]
6486128it [00:03, 1779754.62it/s]
6664122it [00:03, 1775566.26it/s]
6841691it [00:03, 1775105.88it/s]
7019210it [00:03, 1772676.39it/s]
7196483it [00:04, 1771598.31it/s]
7377307it [00:04, 1782530.45it/s]
7555567it [00:04, 1781039.88it/s]
7733797it [00:04, 1781400.97it/s]
7914938it [00:04, 1790371.96it/s]
8095143it [00:04, 1793854.95it/s]
8276715it [00:04, 1800393.89it/s]
8458720it [00:04, 1806276.03it/s]
8642041it [00:04, 1814340.29it/s]
8823477it [00:04, 1808318.69it/s]
9004452it [00:05, 1808612.02it/s]
9185318it [00:05, 1808146.68it/s]
9366136it [00:05, 1797894.93it/s]
9545940it [00:05, 1792183.90it/s]
9726458it [00:05, 1796045.50it/s]
9907190it [00:05, 1799396.77it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md.bai

10089506it [00:05, 1806489.29it/s]
10270163it [00:05, 1794041.80it/s]
10449591it [00:05, 1786250.31it/s]
10629283it [00:05, 1789408.87it/s]
10811011it [00:06, 1797628.55it/s]
10990790it [00:06, 1796871.91it/s]
11170488it [00:06, 1778075.00it/s]
11349170it [00:06, 1780659.24it/s]
11531598it [00:06, 1793645.66it/s]
11711915it [00:06, 1796445.48it/s]
11891585it [00:06, 1782765.09it/s]
12071326it [00:06, 1787029.06it/s]
12250189it [00:06, 1787432.23it/s]
12431109it [00:06, 1793924.07it/s]
12610519it [00:07, 1786017.06it/s]
12789844it [00:07, 1788163.91it/s]
12971034it [00:07, 1795244.97it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md.bai

13150571it [00:07, 1792665.94it/s]
13329847it [00:07, 1785384.67it/s]
13511907it [00:07, 1795768.94it/s]
13695085it [00:07, 1806519.32it/s]
13876686it [00:07, 1809343.46it/s]
14058501it [00:07, 1811965.98it/s]
14239705it [00:07, 1798617.47it/s]
14413304it [00:08, 1792854.28it/s]


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


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


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


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


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


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






cat aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-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-9faac1-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-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-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-R1_A23WJ53LT4_1.md -output aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-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-9faac1-R1_A23WJ53LT4_1/aih-tih-sc-9faac1-R1_A23WJ53LT4_1_full_basic_stats.tsv