File Info

Filename
.command.log
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/b6/5c4a01a2e0f52c05f18c138ed9a96c/.command.log
Size
12.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/b6/5c4a01a2e0f52c05f18c138ed9a96c/.command.sh
  Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/71/ad1fe12378964732f9277819b1fd7e/tih_rna_sample_00090_23H5VFLT4_s32.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/b6/5c4a01a2e0f52c05f18c138ed9a96c/.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/71/ad1fe12378964732f9277819b1fd7e/tih_rna_sample_00090_23H5VFLT4_s32.md.bai
  Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)

+ mkdir tih_rna_sample_00090_23H5VFLT4_s32
+ all_qc -bam tih_rna_sample_00090_23H5VFLT4_s32.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_00090_23H5VFLT4_s32 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00090_23H5VFLT4_s32/tih_rna_sample_00090_23H5VFLT4_s32.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_00090_23H5VFLT4_s32/tih_rna_sample_00090_23H5VFLT4_s32.md/full_bed.bed


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

0it [00:00, ?it/s]
153033it [00:00, 1529689.58it/s]
320578it [00:00, 1615365.03it/s]
482116it [00:00, 1577588.91it/s]
639978it [00:00, 1546575.37it/s]
808065it [00:00, 1593745.44it/s]
979451it [00:00, 1633958.38it/s]
1151029it [00:00, 1660411.25it/s]
1323606it [00:00, 1681046.55it/s]
1494909it [00:00, 1690968.36it/s]
1668519it [00:01, 1704827.56it/s]
1840973it [00:01, 1710811.18it/s]
2012099it [00:01, 1704762.06it/s]
2184364it [00:01, 1710133.40it/s]
2357416it [00:01, 1716250.02it/s]
2529061it [00:01, 1714549.35it/s]
2700530it [00:01, 1709137.39it/s]
2877311it [00:01, 1726555.52it/s]
3051589it [00:01, 1731299.91it/s]
3224731it [00:01, 1725117.11it/s]
3397255it [00:02, 1692705.00it/s]
3568233it [00:02, 1697721.89it/s]
3738107it [00:02, 1692771.44it/s]
3907454it [00:02, 1623557.26it/s]
4070407it [00:02, 1568292.14it/s]
4240375it [00:02, 1605719.35it/s]
4413284it [00:02, 1641394.77it/s]
4583358it [00:02, 1658727.64it/s]
4755217it [00:02, 1676290.62it/s]
4923201it [00:02, 1671580.80it/s]
5093758it [00:03, 1681634.57it/s]
5265287it [00:03, 1691624.85it/s]
5436530it [00:03, 1697804.67it/s]
5608053it [00:03, 1702837.77it/s]
5779468it [00:03, 1706193.25it/s]
5950138it [00:03, 1693305.31it/s]
6119525it [00:03, 1688422.87it/s]
6288407it [00:03, 1687378.95it/s]
6457172it [00:03, 1678818.30it/s]
6625079it [00:03, 1638438.16it/s]
6790652it [00:04, 1643484.25it/s]
6956174it [00:04, 1646823.17it/s]
7126465it [00:04, 1663328.40it/s]
7298058it [00:04, 1678956.94it/s]
7466035it [00:04, 1667564.39it/s]
7636877it [00:04, 1679685.38it/s]
7809054it [00:04, 1692199.28it/s]
7979444it [00:04, 1695662.30it/s]
8150106it [00:04, 1698900.17it/s]
8320022it [00:04, 1695162.46it/s]
8489558it [00:05, 1692453.57it/s]
8661050it [00:05, 1699139.09it/s]
8832825it [00:05, 1704539.61it/s]
9005756it [00:05, 1711926.85it/s]
9177537it [00:05, 1713638.75it/s]
9349432it [00:05, 1715195.70it/s]
9522480it [00:05, 1719743.00it/s]
9694458it [00:05, 1718793.64it/s]
9866340it [00:05, 1709599.60it/s]
10037815it [00:05, 1711109.40it/s]
10208936it [00:06, 1710080.24it/s]
10379951it [00:06, 1707549.37it/s]
10550711it [00:06, 1707104.76it/s]
10721425it [00:06, 1680622.88it/s]
10892350it [00:06, 1689075.03it/s]
11061331it [00:06, 1678024.93it/s]
11231540it [00:06, 1685138.39it/s]
11404702it [00:06, 1698946.13it/s]
11576034it [00:06, 1703207.89it/s]
11746389it [00:06, 1678471.49it/s]
11920469it [00:07, 1696902.35it/s]
12094991it [00:07, 1711230.50it/s]
12266192it [00:07, 1664328.42it/s]
12438355it [00:07, 1681078.76it/s]
12612087it [00:07, 1697595.99it/s]
12784769it [00:07, 1706233.07it/s]
12955550it [00:07, 1704449.22it/s]
13126104it [00:07, 1698080.82it/s]
13226265it [00:07, 1683987.42it/s]


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


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


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


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


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


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




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






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


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