File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d7/5717ac2d9df3ce88567e490b75eabd/.command.log
Size
13.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/d7/5717ac2d9df3ce88567e490b75eabd/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/92/48e073d63a94693dd7f1f41ffdc762/aih-tih-sc-be4b28-R1_B23WHYVLT4_1.md.bam
  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/d7/5717ac2d9df3ce88567e490b75eabd/.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-rnd-pltf-dev-nextflow-scratch-01/work/92/48e073d63a94693dd7f1f41ffdc762/aih-tih-sc-be4b28-R1_B23WHYVLT4_1.md.bai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir aih-tih-sc-be4b28-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-be4b28-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-be4b28-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-be4b28-R1_B23WHYVLT4_1/aih-tih-sc-be4b28-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-be4b28-R1_B23WHYVLT4_1/aih-tih-sc-be4b28-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
117935it [00:00, 1179190.87it/s]
248811it [00:00, 1255351.66it/s]
378060it [00:00, 1272266.53it/s]
515532it [00:00, 1312473.99it/s]
646779it [00:00, 1202041.42it/s]
785083it [00:00, 1260019.95it/s]
914084it [00:00, 1269409.08it/s]
1044713it [00:00, 1280787.46it/s]
1173445it [00:00, 1134018.16it/s]
1311942it [00:01, 1203872.83it/s]
1450945it [00:01, 1256823.52it/s]
1589355it [00:01, 1293620.98it/s]
1720623it [00:01, 1283272.26it/s]
1854354it [00:01, 1299035.09it/s]
1987958it [00:01, 1309905.06it/s]
2122106it [00:01, 1319229.39it/s]
2256833it [00:01, 1327537.56it/s]
2391770it [00:01, 1333880.50it/s]
2525420it [00:01, 1329396.91it/s]
2662621it [00:02, 1341961.52it/s]
2799964it [00:02, 1351331.29it/s]
2936706it [00:02, 1356045.12it/s]
3072383it [00:02, 1352157.19it/s]
3213966it [00:02, 1371083.53it/s]
3356203it [00:02, 1386388.33it/s]
3497847it [00:02, 1395284.02it/s]
3640575it [00:02, 1404817.16it/s]
3781885it [00:02, 1407260.79it/s]
3922625it [00:02, 1402537.16it/s]
4062892it [00:03, 1357082.77it/s]
4198919it [00:03, 1325128.73it/s]
4331755it [00:03, 1320737.44it/s]
4470403it [00:03, 1339884.97it/s]
4604595it [00:03, 1311971.27it/s]
4736018it [00:03, 1297687.38it/s]
4872603it [00:03, 1317532.34it/s]
5004523it [00:03, 1259076.70it/s]
5131008it [00:03, 1096375.79it/s]
5244455it [00:04, 996715.12it/s] 
5347849it [00:04, 938412.96it/s]
5444349it [00:04, 908269.19it/s]
5536832it [00:04, 890724.12it/s]
5626902it [00:04, 873614.15it/s]
5736205it [00:04, 932661.93it/s]
5874228it [00:04, 1056864.55it/s]
6014373it [00:04, 1154614.67it/s]
6140264it [00:04, 1184685.59it/s]
6260088it [00:05, 1056173.22it/s]
6369110it [00:05, 972485.92it/s] 
6469594it [00:05, 918200.55it/s]
6586744it [00:05, 983656.83it/s]
6725462it [00:05, 1092383.47it/s]
6865199it [00:05, 1177175.12it/s]
7005299it [00:05, 1240747.75it/s]
7148216it [00:05, 1295148.89it/s]
7286359it [00:05, 1320319.21it/s]
7431180it [00:06, 1357946.98it/s]
7573578it [00:06, 1377341.91it/s]
7712058it [00:06, 1376723.96it/s]
7850252it [00:06, 1377300.41it/s]
7988348it [00:06, 1369638.55it/s]
8130816it [00:06, 1385980.12it/s]
8271013it [00:06, 1390723.39it/s]
8410315it [00:06, 1391383.05it/s]
8549553it [00:06, 1384395.14it/s]
8688069it [00:06, 1373380.69it/s]
8825475it [00:07, 1359884.43it/s]
8961529it [00:07, 1347251.39it/s]
9096311it [00:07, 1342723.26it/s]
9230619it [00:07, 1338365.10it/s]
9364478it [00:07, 1337034.82it/s]
9498196it [00:07, 1314074.84it/s]
9629683it [00:07, 1288744.20it/s]
9759986it [00:07, 1292889.16it/s]
9889373it [00:07, 1292779.04it/s]
10018719it [00:08, 1289648.46it/s]
10148873it [00:08, 1293151.45it/s]
10278224it [00:08, 1290521.37it/s]
10407301it [00:08, 1269731.82it/s]
10540943it [00:08, 1289386.79it/s]
10685685it [00:08, 1336230.20it/s]
10825934it [00:08, 1355899.21it/s]
10966241it [00:08, 1369806.77it/s]
11009920it [00:08, 1257642.65it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-be4b28-R1_B23WHYVLT4_1.md.bai




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


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


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


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


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




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


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