-----------------------
Start of variable list:
-----------------------
Sample_ID:
G168_G169_M21
Dataset_DIR:
/restricted/projectnb/waxmanlab/kkarri/G168_G169/G168/TCPOBOP_frStrand_Env/TCPOBOP
Sample_Labels_DIR:
/restricted/projectnb/waxmanlab/kkarri/G168_G169/G168/TCPOBOP_frStrand_Env/TCPOBOP/Scripts/00_Setup_Pipeline
STRAND_RULE:
1+-,1-+,2++,2--
BU_User:
kkarri
VM_DIR_UCSC:
/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/G168_TCPO_Env
SCRIPT_DIR:
/restricted/projectnb/waxmanlab/kkarri/G168_G169/G168/TCPOBOP_frStrand_Env/TCPOBOP/Scripts/11_UCSC_BigWig
-----------------------
End of variable list
-----------------------
==========================================================
Starting on : Wed Mar 13 10:52:59 EDT 2019
Running on node : scc-ka5
Current directory : /restricted/projectnb/waxmanlab/kkarri/G168_G169/G168/TCPOBOP_frStrand_Env/TCPOBOP/Scripts/11_UCSC_BigWig
Current job ID : 3566218
Current job name : Step_11_G168_G169_M21
Task index number : undefined
Parameter for multiple cores : 1
==========================================================

Change dir to scratch directory


Print scratch directory location:

/scratch/3566218.1.linga

Loading required modules...


INPUT_BAM:
G168_G169_M21_primary_unique.bam


List files in scratch directory:

total 1.6G
drwx------   4 kkarri waxmanlab 4.0K Mar 13 10:53 .
drwxrwxrwt. 24 root   root      128K Mar 13 10:52 ..
-rw-r--r--   1 kkarri waxmanlab 1.6G Mar 13 10:53 G168_G169_M21_primary_unique.bam
drwxr-xr-x   2 kkarri waxmanlab 4.0K Mar 13 10:53 UCSC_BigWig
drwxr-xr-x   2 kkarri waxmanlab 4.0K Mar 13 10:53 UCSC_Tools
-rwxr-xr-x   1 kkarri waxmanlab  584 Mar 13 10:53 mm9.chrom.sizes

Starting to run my commands


Starting samtools sort and index


Finished samtools sort and index


Starting bam2wig.py command

Printing command:
bam2wig.py --input-file=G168_G169_M21_sorted.bam --chromSize=mm9.chrom.sizes --out-prefix=G168_G169_M21 --wigsum=1000000000 --strand=1+-,1-+,2++,2--

Skip multi-hits:False

Finished bam2wig.py command


Sample from wiggle files:

==> G168_G169_M21.Forward.wig <==
variableStep chrom=chrY
223805	0.20
223806	0.20
223807	0.20
223808	0.20
223809	0.20
223810	0.20
223811	0.40
223812	0.40
223813	0.40

==> G168_G169_M21.Reverse.wig <==
variableStep chrom=chrY
427655	-0.20
427656	-0.20
427657	-0.20
427658	-0.20
427659	-0.20
427660	-0.20
427661	-0.20
427662	-0.20
427663	-0.20

#--------------------------------
G168_G169_M21.Forward.wig
#--------------------------------
Line count where 2nd column does not equal "-":
71715478
Line count where 2nd column is only a negative sign:
0
Copy G168_G169_M21.Forward.wig to UCSC_Tools folder
Copy mm9.chrom.sizes to UCSC_Tools folder
Start wigToBigWig
End wigToBigWig

#--------------------------------
G168_G169_M21.Reverse.wig
#--------------------------------
Line count where 2nd column does not equal "-":
70482479
Line count where 2nd column is only a negative sign:
0
Copy G168_G169_M21.Reverse.wig to UCSC_Tools folder
Copy mm9.chrom.sizes to UCSC_Tools folder
Start wigToBigWig
End wigToBigWig

List of files in UCSC_Tools folder:

-rw-r--r-- 1 kkarri waxmanlab 1027819624 Mar 13 12:29 ./UCSC_Tools/G168_G169_M21.Forward.wig
-rw-r--r-- 1 kkarri waxmanlab 1081103955 Mar 13 12:33 ./UCSC_Tools/G168_G169_M21.Reverse.wig
-rwxr-xr-x 1 kkarri waxmanlab        584 Mar 13 12:33 ./UCSC_Tools/mm9.chrom.sizes
-rwx------ 1 kkarri waxmanlab    1012225 Mar 13 10:53 ./UCSC_Tools/wigToBigWig

Copy output to storage dir


List files in scratch

total 5.2G
drwx------   4 kkarri waxmanlab 4.0K Mar 13 11:09 .
drwxrwxrwt. 41 root   root      128K Mar 13 11:31 ..
-rw-r--r--   1 kkarri waxmanlab 981M Mar 13 12:27 G168_G169_M21.Forward.wig
-rw-r--r--   1 kkarri waxmanlab 1.1G Mar 13 12:27 G168_G169_M21.Reverse.wig
-rw-r--r--   1 kkarri waxmanlab 1.6G Mar 13 10:53 G168_G169_M21_primary_unique.bam
-rw-r--r--   1 kkarri waxmanlab 1.6G Mar 13 11:04 G168_G169_M21_sorted.bam
-rw-r--r--   1 kkarri waxmanlab 3.1M Mar 13 11:05 G168_G169_M21_sorted.bam.bai
drwxr-xr-x   2 kkarri waxmanlab 4.0K Mar 13 12:34 UCSC_BigWig
drwxr-xr-x   2 kkarri waxmanlab 4.0K Mar 13 12:33 UCSC_Tools
-rwxr-xr-x   1 kkarri waxmanlab  584 Mar 13 10:53 mm9.chrom.sizes
==========================================================
Finished on : Wed Mar 13 12:35:21 EDT 2019
1 hours, 42 minutes and 22 seconds elapsed.
==========================================================
