File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/90/cf8ff9ae9acf8fd524f1adf7432d2b/.command.log
Size
12.5 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/6124a3331a55037e1e6314514c1c79/aih-tih-sc-09b6a3-R1_A23WJ53LT4_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/90/cf8ff9ae9acf8fd524f1adf7432d2b/.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/90/cf8ff9ae9acf8fd524f1adf7432d2b/.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/0a/6124a3331a55037e1e6314514c1c79/aih-tih-sc-09b6a3-R1_A23WJ53LT4_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 aih-tih-sc-09b6a3-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-09b6a3-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-09b6a3-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-09b6a3-R1_A23WJ53LT4_1/aih-tih-sc-09b6a3-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-09b6a3-R1_A23WJ53LT4_1/aih-tih-sc-09b6a3-R1_A23WJ53LT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
135665it [00:00, 1356567.20it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-09b6a3-R1_A23WJ53LT4_1.md.bai

276377it [00:00, 1386218.63it/s]
436575it [00:00, 1484554.83it/s]
604371it [00:00, 1560857.76it/s]
767474it [00:00, 1586111.74it/s]
926086it [00:00, 1583641.48it/s]
1092457it [00:00, 1609751.86it/s]
1258967it [00:00, 1627247.99it/s]
1431736it [00:00, 1658586.93it/s]
1607581it [00:01, 1689359.70it/s]
1778764it [00:01, 1696195.57it/s]
1955185it [00:01, 1716849.68it/s]
2126873it [00:01, 1694884.99it/s]
2298790it [00:01, 1702093.34it/s]
2469051it [00:01, 1646772.21it/s]
2638186it [00:01, 1659782.12it/s]
2808381it [00:01, 1672174.75it/s]
2980885it [00:01, 1687811.89it/s]
3158242it [00:01, 1713291.76it/s]
3329730it [00:02, 1695414.26it/s]
3499415it [00:02, 1690632.11it/s]
3668576it [00:02, 1653753.28it/s]
3840640it [00:02, 1673297.88it/s]
4008737it [00:02, 1675477.04it/s]
4181553it [00:02, 1691063.13it/s]
4354579it [00:02, 1702688.06it/s]
4530973it [00:02, 1720928.22it/s]
4703140it [00:02, 1717051.11it/s]
4874898it [00:02, 1704249.74it/s]
5045377it [00:03, 1699630.03it/s]
5215377it [00:03, 1531188.25it/s]
5371608it [00:03, 1504000.17it/s]
5524129it [00:03, 1446660.92it/s]
5670446it [00:03, 1415052.58it/s]
5813045it [00:03, 1401392.95it/s]
5953884it [00:03, 1363968.03it/s]
6090794it [00:03, 1364496.64it/s]
6227607it [00:03, 1359981.13it/s]
6375573it [00:04, 1394539.66it/s]
6548356it [00:04, 1492009.23it/s]
6716665it [00:04, 1548290.31it/s]
6871909it [00:04, 1417873.21it/s]
7016041it [00:04, 1353193.01it/s]
7153315it [00:04, 1280278.72it/s]
7283093it [00:04, 1284140.25it/s]
7452619it [00:04, 1398499.02it/s]
7619978it [00:04, 1476715.44it/s]
7793896it [00:04, 1552404.39it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-09b6a3-R1_A23WJ53LT4_1.md.bai

7969340it [00:05, 1611397.13it/s]
8137306it [00:05, 1631465.54it/s]
8301317it [00:05, 1628443.22it/s]
8468127it [00:05, 1640165.14it/s]
8638653it [00:05, 1659507.18it/s]
8809418it [00:05, 1673829.92it/s]
8977034it [00:05, 1666074.85it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-09b6a3-R1_A23WJ53LT4_1.md.bai

9148082it [00:05, 1679214.41it/s]
9322541it [00:05, 1698710.40it/s]
9501139it [00:05, 1724774.55it/s]
9677780it [00:06, 1737198.17it/s]
9851556it [00:06, 1726079.65it/s]
10026604it [00:06, 1733324.31it/s]
10202771it [00:06, 1741759.92it/s]
10376980it [00:06, 1735888.93it/s]
10550595it [00:06, 1729335.66it/s]
10723550it [00:06, 1728730.07it/s]
10896438it [00:06, 1712730.27it/s]
10943574it [00:06, 1601123.64it/s]




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


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


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


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


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




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


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