File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/19/bebffe70ea75cc90e3328c2bc878b8/.command.log
Size
11.6 KB
Attempt
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/cb/9abc1ceb4781b9dc38dd131849b120/aih-tih-sc-62dadb-R1_B23WHYVLT4_1.md.bai
  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/19/bebffe70ea75cc90e3328c2bc878b8/.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/19/bebffe70ea75cc90e3328c2bc878b8/.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/cb/9abc1ceb4781b9dc38dd131849b120/aih-tih-sc-62dadb-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-62dadb-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-62dadb-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-62dadb-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-62dadb-R1_B23WHYVLT4_1/aih-tih-sc-62dadb-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-62dadb-R1_B23WHYVLT4_1/aih-tih-sc-62dadb-R1_B23WHYVLT4_1.md/full_bed.bed


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

128426it [00:00, 1284190.80it/s]
269306it [00:00, 1357445.68it/s]
411713it [00:00, 1387832.71it/s]
555252it [00:00, 1406582.56it/s]
696694it [00:00, 1409383.74it/s]
838921it [00:00, 1413741.33it/s]
983351it [00:00, 1423670.76it/s]
1126028it [00:00, 1424635.09it/s]
1268492it [00:00, 1422608.75it/s]
1411788it [00:01, 1425639.09it/s]
1554353it [00:01, 1418249.29it/s]
1696187it [00:01, 1418129.69it/s]
1838006it [00:01, 1407873.28it/s]
1978812it [00:01, 1394332.34it/s]
2118279it [00:01, 1391947.00it/s]
2257495it [00:01, 1375304.38it/s]
2395071it [00:01, 1362056.20it/s]
2531319it [00:01, 1356250.57it/s]
2668215it [00:01, 1359986.97it/s]
2804237it [00:02, 1355214.89it/s]
2940902it [00:02, 1358589.30it/s]
3078953it [00:02, 1365098.89it/s]
3215478it [00:02, 1355004.07it/s]
3351001it [00:02, 1351499.44it/s]
3486166it [00:02, 1343073.93it/s]
3626755it [00:02, 1361708.48it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-62dadb-R1_B23WHYVLT4_1.md.bai

3762956it [00:02, 1327638.60it/s]
3896453it [00:02, 1329760.08it/s]
4029566it [00:02, 1313581.59it/s]
4161042it [00:03, 1298660.70it/s]
4291002it [00:03, 1291432.88it/s]
4420205it [00:03, 1283911.81it/s]
4548634it [00:03, 1279974.97it/s]
4680375it [00:03, 1290999.47it/s]
4809507it [00:03, 1283940.31it/s]
4937926it [00:03, 1279741.79it/s]
5065916it [00:03, 1278179.29it/s]
5193744it [00:03, 1275754.82it/s]
5321326it [00:03, 1261025.67it/s]
5375262it [00:03, 1344222.12it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-62dadb-R1_B23WHYVLT4_1.md.bai




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


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


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


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


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




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


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