File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/89/9024327121331dfe0840c3213a4154/.command.log
Size
12.7 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bf/06d48d824dd7522112fab74e3982b6/aih-tih-sc-f4e5c4-R1_B23WHYVLT4_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/89/9024327121331dfe0840c3213a4154/.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/89/9024327121331dfe0840c3213a4154/.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/bf/06d48d824dd7522112fab74e3982b6/aih-tih-sc-f4e5c4-R1_B23WHYVLT4_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-f4e5c4-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-f4e5c4-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-f4e5c4-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-f4e5c4-R1_B23WHYVLT4_1/aih-tih-sc-f4e5c4-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-f4e5c4-R1_B23WHYVLT4_1/aih-tih-sc-f4e5c4-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s]
96898it [00:00, 968876.97it/s]
220714it [00:00, 1127225.03it/s]
343910it [00:00, 1174998.90it/s]
469651it [00:00, 1207493.98it/s]
595118it [00:00, 1224474.97it/s]
721276it [00:00, 1237059.37it/s]
845884it [00:00, 1239974.83it/s]
972457it [00:00, 1248142.73it/s]
1099283it [00:00, 1254400.88it/s]
1229723it [00:01, 1269806.27it/s]
1358003it [00:01, 1273752.51it/s]
1485379it [00:01, 1268810.86it/s]
1612265it [00:01, 1263047.43it/s]
1738578it [00:01, 1260285.18it/s]
1864612it [00:01, 1241473.12it/s]
1990734it [00:01, 1247307.35it/s]
2116856it [00:01, 1251421.49it/s]
2244393it [00:01, 1258538.59it/s]
2371390it [00:01, 1261924.94it/s]
2497607it [00:02, 1249298.06it/s]
2622579it [00:02, 1210089.79it/s]
2743854it [00:02, 1208465.37it/s]
2866385it [00:02, 1213386.99it/s]
2987862it [00:02, 1085960.92it/s]
3098955it [00:02, 932657.68it/s] 
3197210it [00:02, 857407.65it/s]
3317993it [00:02, 943268.28it/s]
3441171it [00:02, 1018066.33it/s]
3561563it [00:03, 1068279.23it/s]
3674165it [00:03, 1084340.09it/s]
3798077it [00:03, 1128377.64it/s]
3921754it [00:03, 1159686.66it/s]
4044312it [00:03, 1178919.10it/s]
4170584it [00:03, 1203573.27it/s]
4296039it [00:03, 1218640.66it/s]
4421159it [00:03, 1228292.01it/s]
4544436it [00:03, 1217020.47it/s]
4666471it [00:04, 1019906.25it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-f4e5c4-R1_B23WHYVLT4_1.md.bai

4774016it [00:04, 904423.06it/s] 
4880822it [00:04, 944732.14it/s]
5001871it [00:04, 1013908.93it/s]
5129517it [00:04, 1085057.29it/s]
5256957it [00:04, 1137896.61it/s]
5384730it [00:04, 1177743.70it/s]
5511567it [00:04, 1203882.03it/s]
5636164it [00:04, 1216170.00it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-f4e5c4-R1_B23WHYVLT4_1.md.bai

5763184it [00:04, 1232066.31it/s]
5890847it [00:05, 1245248.35it/s]
6016471it [00:05, 1248497.86it/s]
6141783it [00:05, 1235160.72it/s]
6267124it [00:05, 1240543.40it/s]
6393955it [00:05, 1248774.41it/s]
6520225it [00:05, 1252844.53it/s]
6645945it [00:05, 1254119.87it/s]
6772390it [00:05, 1257111.94it/s]
6898167it [00:05, 1253983.76it/s]
7025492it [00:05, 1259720.92it/s]
7151500it [00:06, 1257818.35it/s]
7278069it [00:06, 1260148.42it/s]
7404686it [00:06, 1261883.23it/s]
7530888it [00:06, 1250590.48it/s]
7655978it [00:06, 1220096.06it/s]
7778155it [00:06, 1166274.37it/s]
7895310it [00:06, 1134244.72it/s]
8009171it [00:06, 1122481.64it/s]
8123258it [00:06, 1127721.49it/s]
8251160it [00:07, 1171517.98it/s]
8368610it [00:07, 1165091.85it/s]
8485323it [00:07, 1157066.43it/s]
8601170it [00:07, 1152496.50it/s]
8716513it [00:07, 1144186.00it/s]
8830998it [00:07, 1140761.68it/s]
8945117it [00:07, 1138357.84it/s]
9030651it [00:07, 1169201.52it/s]


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


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


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


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


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


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






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


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