File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/6f/86480d07926a49f2f765588d528878/.command.log
Size
11.9 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/6f/86480d07926a49f2f765588d528878/.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/dc/02af94291df56b80f7e8e4cb84ee18/aih-tih-sc-505123-R1_B23WHYVLT4_1.md.bai
  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/6f/86480d07926a49f2f765588d528878/.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/dc/02af94291df56b80f7e8e4cb84ee18/aih-tih-sc-505123-R1_B23WHYVLT4_1.md.bam
  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-505123-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-505123-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-505123-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-505123-R1_B23WHYVLT4_1/aih-tih-sc-505123-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-505123-R1_B23WHYVLT4_1/aih-tih-sc-505123-R1_B23WHYVLT4_1.md/full_bed.bed


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

0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-505123-R1_B23WHYVLT4_1.md.bai

133296it [00:00, 1332859.58it/s]
274500it [00:00, 1379141.64it/s]
420270it [00:00, 1414985.80it/s]
561769it [00:00, 1412125.23it/s]
702983it [00:00, 1410918.42it/s]
844076it [00:00, 1337645.71it/s]
978504it [00:00, 1202853.50it/s]
1101269it [00:00, 1134966.01it/s]
1216733it [00:00, 1117429.99it/s]
1329710it [00:01, 1110093.59it/s]
1441518it [00:01, 1065936.41it/s]
1574449it [00:01, 1139644.37it/s]
1721009it [00:01, 1232700.53it/s]
1865143it [00:01, 1293075.02it/s]
1995632it [00:01, 1267991.73it/s]
2123313it [00:01, 1140047.85it/s]
2240125it [00:01, 1069792.05it/s]
2349505it [00:02, 1012216.23it/s]
2452564it [00:02, 982422.52it/s] 
2551963it [00:02, 955930.84it/s]
2648255it [00:02, 945825.48it/s]
2743248it [00:02, 935395.64it/s]
2859963it [00:02, 1000239.40it/s]
2978484it [00:02, 1053054.34it/s]
3100543it [00:02, 1101584.22it/s]
3236497it [00:02, 1177080.56it/s]
3370860it [00:02, 1226121.71it/s]
3509558it [00:03, 1273679.39it/s]
3655452it [00:03, 1328751.45it/s]
3788680it [00:03, 1289608.06it/s]
3921458it [00:03, 1300739.92it/s]
4080164it [00:03, 1385064.88it/s]
4238113it [00:03, 1442626.68it/s]
4382738it [00:03, 1351557.83it/s]
4519270it [00:03, 1197521.97it/s]
4646816it [00:03, 1218094.04it/s]
4786103it [00:04, 1265909.66it/s]
4915207it [00:04, 1220938.05it/s]
5039215it [00:04, 1220579.54it/s]
5179320it [00:04, 1271650.47it/s]
5320787it [00:04, 1312848.64it/s]
5463838it [00:04, 1347001.81it/s]
5602419it [00:04, 1358391.08it/s]
5741887it [00:04, 1369053.34it/s]
5879225it [00:04, 1366517.08it/s]
6016179it [00:04, 1366384.69it/s]
6153601it [00:05, 1368686.79it/s]


6290619it [00:05, 1366437.61it/s]
6427368it [00:05, 1363269.08it/s]
6563769it [00:05, 1352498.19it/s]
6639198it [00:05, 1231497.50it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-505123-R1_B23WHYVLT4_1.md.bai


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


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


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


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


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






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


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