File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/08/282ca6c01213b7e1e0a744148f7548/.command.log
Size
14.0 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/08/282ca6c01213b7e1e0a744148f7548/.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/ce/9d1f95e675432b3f160620492393d3/aih-tih-sc-4dcd88-R1_B23WHYVLT4_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/08/282ca6c01213b7e1e0a744148f7548/.command.run
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/ce/9d1f95e675432b3f160620492393d3/aih-tih-sc-4dcd88-R1_B23WHYVLT4_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-4dcd88-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-4dcd88-R1_B23WHYVLT4_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-4dcd88-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_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-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
85196it [00:00, 851802.41it/s]
184356it [00:00, 933992.56it/s]
280696it [00:00, 947394.40it/s]
388212it [00:00, 997812.73it/s]
521373it [00:00, 1118059.88it/s]
656385it [00:00, 1196929.70it/s]
798969it [00:00, 1271739.44it/s]
949132it [00:00, 1344898.80it/s]
1112134it [00:00, 1433944.04it/s]
1259975it [00:01, 1447648.57it/s]
1428700it [00:01, 1520950.22it/s]
1597986it [00:01, 1573132.70it/s]
1768146it [00:01, 1611924.74it/s]
1933515it [00:01, 1624516.67it/s]
2095967it [00:01, 1513081.27it/s]
2259061it [00:01, 1546782.29it/s]
2427031it [00:01, 1585329.06it/s]
2598329it [00:01, 1622707.75it/s]
2761399it [00:01, 1614808.99it/s]
2923437it [00:02, 1615536.55it/s]
3096501it [00:02, 1649635.06it/s]
3263971it [00:02, 1656942.38it/s]
3429892it [00:02, 1646178.34it/s]
3597536it [00:02, 1655143.97it/s]
3763178it [00:02, 1643881.12it/s]
3927667it [00:02, 1490755.52it/s]
4079462it [00:02, 1400303.46it/s]
4222096it [00:02, 1341746.31it/s]
4358183it [00:03, 1304559.89it/s]
4489880it [00:03, 1281867.42it/s]
4618824it [00:03, 1262701.33it/s]
4745541it [00:03, 1256387.56it/s]
4871455it [00:03, 1249521.84it/s]
4999332it [00:03, 1257851.51it/s]
5127570it [00:03, 1264958.48it/s]
5254195it [00:03, 1250286.83it/s]
5379324it [00:03, 1239827.17it/s]
5539729it [00:03, 1346546.66it/s]
5710639it [00:04, 1453558.96it/s]
5877452it [00:04, 1517177.92it/s]
6048029it [00:04, 1573283.06it/s]
6217983it [00:04, 1610921.30it/s]
6394481it [00:04, 1656932.40it/s]
6560343it [00:04, 1650455.40it/s]
6730508it [00:04, 1665706.30it/s]
6897172it [00:04, 1665575.15it/s]
7071541it [00:04, 1688922.08it/s]
7244379it [00:04, 1700651.05it/s]
7418990it [00:05, 1714245.70it/s]
7590516it [00:05, 1714524.47it/s]
7761989it [00:05, 1709758.02it/s]
7932982it [00:05, 1707553.56it/s]
8107420it [00:05, 1718386.63it/s]
8280260it [00:05, 1721354.65it/s]
8453531it [00:05, 1724728.80it/s]
8626011it [00:05, 1708258.17it/s]
8797316it [00:05, 1709578.78it/s]
8968994it [00:05, 1711589.52it/s]
9140880it [00:06, 1713620.17it/s]
9313700it [00:06, 1717929.04it/s]
9485653it [00:06, 1718380.70it/s]
9657500it [00:06, 1703363.25it/s]
9827871it [00:06, 1647562.39it/s]
9993015it [00:06, 1481551.66it/s]
10161039it [00:06, 1535597.69it/s]
10317364it [00:06, 1506334.60it/s]
10469907it [00:06, 1453166.20it/s]
10616710it [00:07, 1436958.37it/s]
10766863it [00:07, 1455003.39it/s]
10920618it [00:07, 1478651.33it/s]
11069151it [00:07, 1449815.16it/s]
11221589it [00:07, 1471348.26it/s]
11369169it [00:07, 1447090.11it/s]
11514226it [00:07, 1431390.35it/s]
11657604it [00:07, 1407920.22it/s]
11809198it [00:07, 1439245.42it/s]
11979023it [00:07, 1515130.89it/s]
12150434it [00:08, 1573822.43it/s]
12321384it [00:08, 1614031.95it/s]
12495366it [00:08, 1651430.69it/s]
12666921it [00:08, 1670460.89it/s]
12843267it [00:08, 1698222.86it/s]
13018557it [00:08, 1714549.74it/s]
13190108it [00:08, 1662126.87it/s]
13356730it [00:08, 1566022.32it/s]
13514608it [00:08, 1547566.08it/s]
13681801it [00:08, 1582959.66it/s]
13850233it [00:09, 1612244.53it/s]
14015297it [00:09, 1623443.99it/s]
14179349it [00:09, 1628445.35it/s]
14347272it [00:09, 1643454.45it/s]
14511883it [00:09, 1607414.93it/s]
14672961it [00:09, 1583419.72it/s]
14837205it [00:09, 1600552.12it/s]
15000787it [00:09, 1610907.69it/s]
15162062it [00:09, 1598727.49it/s]
15324137it [00:10, 1589655.65it/s]
15488862it [00:10, 1606611.32it/s]
15656543it [00:10, 1627393.16it/s]
15819379it [00:10, 1597929.40it/s]
15980595it [00:10, 1602090.76it/s]
16140928it [00:10, 1529870.39it/s]
16294617it [00:10, 1523663.79it/s]
16447457it [00:10, 1508301.00it/s]
16600417it [00:10, 1514462.20it/s]
16757163it [00:10, 1529796.31it/s]
16914094it [00:11, 1541441.17it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai

17081457it [00:11, 1580600.92it/s]
17239673it [00:11, 1576587.28it/s]
17397441it [00:11, 1533830.35it/s]
17552216it [00:11, 1537854.36it/s]
17674056it [00:11, 1531361.51it/s]


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.bai


tabix -s 1 -b 2 -e 2 aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.depth.gz     > aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md.depth_hist.tsv


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




cat aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_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-4dcd88-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 






echo `date` > aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md/qc_complete.txt


+ merge_qc -folders aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1.md -output aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_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-4dcd88-R1_B23WHYVLT4_1/aih-tih-sc-4dcd88-R1_B23WHYVLT4_1_full_basic_stats.tsv