File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/be/c81c6681ec6f41afd8aa02a5fa6941/.command.log
Size
12.4 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/90/8314d3e33055a5173f9786f640f564/659_bNS-T1-TRNA-1_B23WHTKLT4_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/be/c81c6681ec6f41afd8aa02a5fa6941/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/90/8314d3e33055a5173f9786f640f564/659_bNS-T1-TRNA-1_B23WHTKLT4_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/be/c81c6681ec6f41afd8aa02a5fa6941/.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 659_bNS-T1-TRNA-1_B23WHTKLT4_1
+ all_qc -bam 659_bNS-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_bNS-T1-TRNA-1_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-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_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
155601it [00:00, 1555937.29it/s]
319730it [00:00, 1606099.65it/s]
494018it [00:00, 1668522.88it/s]
660871it [00:00, 1539791.67it/s]
816212it [00:00, 1511113.14it/s]
990512it [00:00, 1586134.86it/s]
1162560it [00:00, 1628588.42it/s]
1338886it [00:00, 1670465.67it/s]
1512638it [00:00, 1691074.93it/s]
1685173it [00:01, 1701518.79it/s]
1857562it [00:01, 1708290.31it/s]
2032018it [00:01, 1719248.28it/s]
2204112it [00:01, 1712133.35it/s]
2378334it [00:01, 1721035.36it/s]
2557262it [00:01, 1741505.07it/s]
2733593it [00:01, 1748035.24it/s]
2908449it [00:01, 1744920.94it/s]
3086816it [00:01, 1756514.83it/s]
3262497it [00:01, 1731464.04it/s]
3435741it [00:02, 1719307.16it/s]
3608153it [00:02, 1720715.28it/s]
3782666it [00:02, 1727945.40it/s]
3955505it [00:02, 1715730.95it/s]
4130589it [00:02, 1726098.72it/s]
4305643it [00:02, 1733363.72it/s]
4479013it [00:02, 1728450.03it/s]
4652535it [00:02, 1730357.57it/s]
4825589it [00:02, 1708821.84it/s]
4998945it [00:02, 1716044.12it/s]
5170872it [00:03, 1716983.89it/s]
5342679it [00:03, 1717287.61it/s]
5514436it [00:03, 1713957.18it/s]
5685852it [00:03, 1705518.34it/s]
5857879it [00:03, 1709896.59it/s]
6028886it [00:03, 1709740.69it/s]
6201373it [00:03, 1714246.96it/s]
6373729it [00:03, 1717016.64it/s]
6546369it [00:03, 1719805.53it/s]
6718356it [00:03, 1718933.75it/s]
6890254it [00:04, 1716395.05it/s]
7062798it [00:04, 1719085.61it/s]
7234710it [00:04, 1711016.29it/s]
7409999it [00:04, 1723507.67it/s]
7582362it [00:04, 1720696.65it/s]
7756358it [00:04, 1726439.04it/s]
7932206it [00:04, 1736013.93it/s]
8106731it [00:04, 1738760.96it/s]
8282036it [00:04, 1743025.92it/s]
8457653it [00:04, 1746900.34it/s]
8634119it [00:05, 1752206.85it/s]
8809343it [00:05, 1746812.06it/s]
8984281it [00:05, 1747421.46it/s]
9159354it [00:05, 1748382.79it/s]
9336889it [00:05, 1756428.14it/s][W::hts_idx_load3] The index file is older than the data file: 659_bNS-T1-TRNA-1_B23WHTKLT4_1.md.bai

9515737it [00:05, 1766000.26it/s]
9693393it [00:05, 1769146.42it/s]
9870310it [00:05, 1769118.58it/s]
10047224it [00:05, 1764078.86it/s]
10223637it [00:05, 1752657.35it/s]
10398921it [00:06, 1741594.35it/s]
10574261it [00:06, 1745085.86it/s]
10750158it [00:06, 1749203.70it/s]
10925094it [00:06, 1748131.65it/s]
11099918it [00:06, 1742978.94it/s]
11274226it [00:06, 1739078.07it/s]
11448141it [00:06, 1719980.98it/s]
11621547it [00:06, 1724140.32it/s]
11797523it [00:06, 1734620.79it/s]
11971273it [00:06, 1735463.03it/s]
12147723it [00:07, 1744127.38it/s][W::hts_idx_load3] The index file is older than the data file: 659_bNS-T1-TRNA-1_B23WHTKLT4_1.md.bai

12323200it [00:07, 1747299.56it/s]
12497953it [00:07, 1747356.58it/s]
12672699it [00:07, 1739825.88it/s]
12846696it [00:07, 1732693.86it/s]
12855584it [00:07, 1720880.86it/s]




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


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


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


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


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






cat 659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-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_bNS-T1-TRNA-1_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-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_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-T1-TRNA-1_B23WHTKLT4_1.md/qc_complete.txt


+ merge_qc -folders 659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-T1-TRNA-1_B23WHTKLT4_1.md -output 659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 659_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-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_bNS-T1-TRNA-1_B23WHTKLT4_1/659_bNS-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv