File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/b4/744ccd9708c08f0250e327f422c272/.command.log
Size
14.2 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c9/dfa5f993d2a0eb7c58dc1aca142404/tih_rna_sample_00583_B23MVV7LT4_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/b4/744ccd9708c08f0250e327f422c272/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c9/dfa5f993d2a0eb7c58dc1aca142404/tih_rna_sample_00583_B23MVV7LT4_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/b4/744ccd9708c08f0250e327f422c272/.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 tih_rna_sample_00583_B23MVV7LT4_1
+ all_qc -bam tih_rna_sample_00583_B23MVV7LT4_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 tih_rna_sample_00583_B23MVV7LT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/


cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/full_bed.bed


seqtool depth -bam tih_rna_sample_00583_B23MVV7LT4_1.md.bam -bed tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth.gz
saturation_plot       -bams tih_rna_sample_00583_B23MVV7LT4_1.md.bam       -region chr20       -output tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/saturation_plot.png       -threads 1 
seqtool saturation_metric       -at 1000000       -region chr20       -bam_threads 1       tih_rna_sample_00583_B23MVV7LT4_1.md.bam > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/saturation_qc.tsv 
fragment_size       -bams tih_rna_sample_00583_B23MVV7LT4_1.md.bam       -region chr20       -output_prefix tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/fragsize       -threads 1 
samtools mpileup   -B --min-MQ 60 --min-BQ 30    -f ref_genome.fa   -l dbsnp_hg38_contam_sites.bed   tih_rna_sample_00583_B23MVV7LT4_1.md.bam > tih_rna_sample_00583_B23MVV7LT4_1.md.mpileup && contamination -input tih_rna_sample_00583_B23MVV7LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/contamination.tsv 
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_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: tih_rna_sample_00583_B23MVV7LT4_1.md.bai

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai

116576it [00:00, 1165638.83it/s]
233140it [00:00, 1149652.84it/s]
350880it [00:00, 1162187.78it/s]
467997it [00:00, 1165683.08it/s]
584991it [00:00, 1167187.01it/s]
702141it [00:00, 1168621.61it/s]
819174it [00:00, 1169151.53it/s]
936094it [00:00, 1165740.97it/s]
1052903it [00:00, 1166446.83it/s]
1169551it [00:01, 1161081.61it/s]
1285666it [00:01, 1160233.01it/s]
1402026it [00:01, 1161224.52it/s]
1519076it [00:01, 1164004.04it/s]
1635480it [00:01, 1161478.73it/s]
1752654it [00:01, 1164515.96it/s]
1869109it [00:01, 1155701.15it/s]
1985802it [00:01, 1159021.56it/s]
2103297it [00:01, 1163764.11it/s]
2219685it [00:01, 1163335.84it/s]
2336027it [00:02, 1142033.61it/s]
2450319it [00:02, 1135925.92it/s]
2567424it [00:02, 1146292.58it/s]
2683850it [00:02, 1151606.96it/s]
2799057it [00:02, 1148207.03it/s]
2913910it [00:02, 1140346.45it/s]
3027975it [00:02, 983984.83it/s] 
3139243it [00:02, 1018461.39it/s]
3255377it [00:02, 1057999.62it/s]
3370394it [00:02, 1084078.99it/s]
3488633it [00:03, 1112392.31it/s]
3604931it [00:03, 1127082.30it/s]
3721246it [00:03, 1137667.21it/s]
3837212it [00:03, 1144126.85it/s]
3954208it [00:03, 1151781.60it/s]
4071978it [00:03, 1159400.10it/s]
4188965it [00:03, 1162506.16it/s]
4306183it [00:03, 1165379.54it/s]
4422856it [00:03, 1160251.41it/s]
4538980it [00:03, 1153622.59it/s]
4655910it [00:04, 1158268.57it/s]
4772174it [00:04, 1159547.66it/s]
4888970it [00:04, 1162042.21it/s]
5007750it [00:04, 1169726.63it/s]
5124745it [00:04, 1168772.55it/s]
5241638it [00:04, 1167701.35it/s]
5359715it [00:04, 1171595.94it/s]
5476884it [00:04, 1169343.57it/s]
5593825it [00:04, 1165279.44it/s]
5712674it [00:04, 1172195.18it/s]
5829902it [00:05, 1161826.04it/s]
5946109it [00:05, 1159620.37it/s]
6062087it [00:05, 1159239.35it/s]
6178022it [00:05, 1158365.30it/s]
6293866it [00:05, 1157432.53it/s]
6409615it [00:05, 1154947.66it/s]
6525114it [00:05, 1153364.17it/s]
6640453it [00:05, 1150269.90it/s]
6755774it [00:05, 1151131.06it/s]
6870890it [00:05, 1144267.40it/s]
6985326it [00:06, 1130778.57it/s]
7102903it [00:06, 1144082.13it/s]
7220529it [00:06, 1153629.43it/s]
7339872it [00:06, 1165472.10it/s]
7457832it [00:06, 1169588.69it/s]
7574817it [00:06, 1165245.65it/s]
7691577it [00:06, 1165928.10it/s]
7809430it [00:06, 1169680.20it/s]
7927463it [00:06, 1172850.20it/s]
8044757it [00:06, 1172267.22it/s]
8162479it [00:07, 1173732.64it/s]
8279857it [00:07, 1170421.48it/s]
8396905it [00:07, 1018581.49it/s]
8511595it [00:07, 1053317.13it/s]
8627669it [00:07, 1083290.64it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai

8745146it [00:07, 1109357.38it/s]
8860897it [00:07, 1123270.27it/s]
8975514it [00:07, 1129951.49it/s]
9091654it [00:07, 1139162.35it/s]
9208154it [00:08, 1146796.44it/s]
9326083it [00:08, 1156439.80it/s]
9443281it [00:08, 1161054.50it/s]
9560889it [00:08, 1165526.36it/s]
9677604it [00:08, 1161104.17it/s]
9793832it [00:08, 1151231.31it/s]
9909052it [00:08, 1144237.41it/s]
10026773it [00:08, 1153997.87it/s]
10144524it [00:08, 1160978.74it/s]
10260671it [00:09, 1008319.83it/s]
10374951it [00:09, 1044627.30it/s]
10488801it [00:09, 1070732.92it/s]
10602779it [00:09, 1090364.20it/s]
10716533it [00:09, 1103977.50it/s]
10831868it [00:09, 1118386.43it/s]
10948537it [00:09, 1132591.37it/s]
11065721it [00:09, 1144196.81it/s]
11183350it [00:09, 1153721.47it/s]
11299061it [00:09, 1124719.20it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai

11414889it [00:10, 1134539.60it/s]
11530920it [00:10, 1142124.44it/s]
11645351it [00:10, 1100687.87it/s]
11755862it [00:10, 978198.60it/s] 
11864932it [00:10, 1008410.42it/s]
11967956it [00:10, 1006058.27it/s]
12082888it [00:10, 1046456.99it/s]
12192329it [00:10, 1060212.33it/s]
12304994it [00:10, 1079522.97it/s]
12421884it [00:10, 1105747.30it/s]
12538326it [00:11, 1123065.59it/s]
12653648it [00:11, 1131997.47it/s]
12771354it [00:11, 1145394.19it/s]
12888987it [00:11, 1154607.06it/s]
13004722it [00:11, 1155405.84it/s]
13121774it [00:11, 1159906.35it/s]
13237847it [00:11, 1160082.09it/s]
13353967it [00:11, 1160394.97it/s]
13470047it [00:11, 1156618.92it/s]
13585740it [00:11, 1151937.20it/s]
13700771it [00:12, 1134910.94it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai




[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai


[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai


tabix -s 1 -b 2 -e 2 tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth.gz


seqtool depth_hist     -nbins 500     tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth.gz     > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth_hist.tsv


cat tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth_hist.tsv | plot         -x 0         -xlabel Depth -ylabel "Number of Sites"         -xlim 0 2000         -title tih_rna_sample_00583_B23MVV7LT4_1.md         -output tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_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     tih_rna_sample_00583_B23MVV7LT4_1.md.bam > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_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     tih_rna_sample_00583_B23MVV7LT4_1.md.bam > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv 
seqtool depth_stats  -bed Twist_rna_exome_AND_fusion_hg38.bed  tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/tih_rna_sample_00583_B23MVV7LT4_1.md.depth.gz> tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_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  tih_rna_sample_00583_B23MVV7LT4_1.md.bam  > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_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: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00583_B23MVV7LT4_1.md.bai






cat tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv  | plot -x 0  -header infer  -ylim 0 2  -title "tih_rna_sample_00583_B23MVV7LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png"  -ylabel "Fold enrichment / depletion"  -xlabel "GC Quantile" 




echo `date` > tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md/qc_complete.txt


+ merge_qc -folders tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1.md -output tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00583_B23MVV7LT4_1/tih_rna_sample_00583_B23MVV7LT4_1_full_basic_stats.tsv