-----------------------
Need shift 5 command (have more than 9 arguments):
-----------------------
-----------------------
Start of variable list:
-----------------------
SCRIPT_DIR:
/restricted/projectnb/waxmanlab/kkarri/G123_New/Scripts/09a_DiffExp_3_HTSeq
Dataset_DIR:
/restricted/projectnb/waxmanlab/kkarri/G123_New
Dataset_Label:
G123
GTF_Files_DIR:
/unprotected/projects/waxmanlab/routines/GTF_Files
ANNOTATION_FILE:
RefSeq_GeneBody.gtf
CONDITION_1_NAME:
Female_3h_Vehicle
CONDITION_2_NAME:
Female_3h_TCPOBOP
Lengths_DIR:
/unprotected/projects/waxmanlab/routines/GTF_Files/lengths
GENE_LENGTHS_FILE:
Intron_Only_Regions_Lengths.txt
COUNT_DIR:
RefSeq_Intron_GTF
OUTPUT_PREFIX:
DiffExp_v2_Intronic_Only
DiffExp_Index:
DiffExp_3c
COL_SUFFIX:
Intronic_Only
COUNT_PROGRAM:
HTSeq
-----------------------
End of variable list
-----------------------
==========================================================
Starting on : Sat Dec  8 00:45:43 EST 2018
Running on node : scc-tm2
Current directory : /restricted/projectnb/waxmanlab/kkarri/G123_New/Scripts/09a_DiffExp_3_HTSeq
Current job ID : 28939
Current job name : Step_09a_DiffExp_3c
Task index number : undefined
Parameter for multiple cores : 1
==========================================================

Change dir to scratch directory


Print scratch directory location:

/scratch/28939.1.linga

Loading required modules...

------------------------------------------
Sample_DIR:
G123_M9
Sample_ID:
G123_M9
Description:
Female_3h_Vehicle_1
M_Num:
M9
Copy Condition_1 sample count files to Condition_1 folder
calculate mapped reads: G123_M9
Sample_DIR:
G123_M10
Sample_ID:
G123_M10
Description:
Female_3h_Vehicle_2
M_Num:
M10
Copy Condition_1 sample count files to Condition_1 folder
calculate mapped reads: G123_M10
M_Num_Cond1_List:
M9M10
------------------------------------------
------------------------------------------
Sample_DIR:
G123_M11
Sample_ID:
G123_M11
Description:
Female_3h_TCPOBOP_1
M_Num:
M11
Copy Condition_2 sample count files to Condition_2 folder
calculate mapped reads: G123_M11
Sample_DIR:
G123_M12
Sample_ID:
G123_M12
Description:
Female_3h_TCPOBOP_2
M_Num:
M12
Copy Condition_2 sample count files to Condition_2 folder
calculate mapped reads: G123_M12
M_Num_Cond2_List:
M11M12
------------------------------------------
==========================================================

Number of replicates in each condition:

NUM_REP_CONDITION1: 2
NUM_REP_CONDITION1: 2
==========================================================

Renaming input count files

Counting program: HTSeq
Removing last 5 lines (remove special counters)
Counting program: HTSeq
Removing last 5 lines (remove special counters)
Counting program: HTSeq
Removing last 5 lines (remove special counters)
Counting program: HTSeq
Removing last 5 lines (remove special counters)
number of mapped reads
25403837
33681901
31418117
31996155
==========================================================

List files in Input

-rw-r--r-- 1 kkarri waxmanlab 244375 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP0.out
-rw-r--r-- 1 kkarri waxmanlab      9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP0_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab 246293 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP1.out
-rw-r--r-- 1 kkarri waxmanlab      9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP1_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab 245613 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle0.out
-rw-r--r-- 1 kkarri waxmanlab      9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle0_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab 245463 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle1.out
-rw-r--r-- 1 kkarri waxmanlab      9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle1_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab 300238 Dec  8 00:45 /scratch/28939.1.linga/Input/Intron_Only_Regions_Lengths.txt

/scratch/28939.1.linga/Input/Female_3h_TCPOBOP:
total 8
drwxr-xr-x 2 kkarri waxmanlab 4096 Dec  8 00:45 .
drwxr-xr-x 4 kkarri waxmanlab 4096 Dec  8 00:45 ..

/scratch/28939.1.linga/Input/Female_3h_Vehicle:
total 8
drwxr-xr-x 2 kkarri waxmanlab 4096 Dec  8 00:45 .
drwxr-xr-x 4 kkarri waxmanlab 4096 Dec  8 00:45 ..
==========================================================

Starting to run my commands

Printing Rscript command:
Rscript differentialAnalysis.R Female_3h_Vehicle Female_3h_TCPOBOP 2 2 RefSeq_GeneBody.gtf /scratch/28939.1.linga/Input DiffExp_v2_Intronic_Only Intron_Only_Regions_Lengths.txt
[1] "Arguments for differentialAnalysisDESeq.R:"
[1] "Female_3h_Vehicle"
[1] "Female_3h_TCPOBOP"
[1] 2
[1] 2
[1] "RefSeq_GeneBody.gtf"
[1] "/scratch/28939.1.linga/Input"
[1] "DiffExp_v2_Intronic_Only"
[1] "Intron_Only_Regions_Lengths.txt"
load GTF file ... 
parse attributes ... 
[1] "output file is in: /scratch/28939.1.linga/Input/DiffExp_v2_Intronic_Only_Female_3h_Vehicle_Female_3h_TCPOBOP.txt"
==========================================================

Create SEGEX formatted file:

Printing Rscript command:
Rscript formatForSegex_ver3.R  DiffExp_v2_Intronic_Only_Female_3h_Vehicle_Female_3h_TCPOBOP.txt Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload 1 Intronic_Only
==========================================================
Comparison_Info:
Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10
#----------------------------------------------------------------------------------
Running Diff_Genes.R
#----------------------------------------------------------------------------------
Printing Rscript command:
Rscript Diff_Genes.R Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_DESeq.txt 2 0.05 DESeq Intronic_Only'_'Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10
[1] "Print arguments:"
[1] "-----------------"
[1] "Differential expression_Output:"
[1] "Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_DESeq.txt"
[1] "fold_change_cutoff:"
[1] "2"
[1] "padj_cutoff:"
[1] "0.05"
[1] "postfix:"
[1] "DESeq"
[1] "count_method:"
[1] "Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10"
[1] "-----------------"
[1] "Differential Gene Counts"
[1] "Number of significant differential genes with positive fold change (Up Genes):"
[1] 82  7
[1] "Number of significant differential genes with negative fold change (Down Genes):"
[1] 24  7
[1] "Check out Up_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt!"
[1] "Check out Down_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt!"
Rscript Diff_Genes.R Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_EdgeR.txt 2 0.05 EdgeR Intronic_Only'_'Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10
[1] "Print arguments:"
[1] "-----------------"
[1] "Differential expression_Output:"
[1] "Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_EdgeR.txt"
[1] "fold_change_cutoff:"
[1] "2"
[1] "padj_cutoff:"
[1] "0.05"
[1] "postfix:"
[1] "EdgeR"
[1] "count_method:"
[1] "Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10"
[1] "-----------------"
[1] "Differential Gene Counts"
[1] "Number of significant differential genes with positive fold change (Up Genes):"
[1] 166   7
[1] "Number of significant differential genes with negative fold change (Down Genes):"
[1] 86  7
[1] "Check out Up_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt!"
[1] "Check out Down_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt!"
#----------------------------------------------------------------------------------
Running Venn_Diff_Genes.R
#----------------------------------------------------------------------------------
Printing Rscript command:
#----------------------------------------------------------------------------------
Rscript Venn_Diff_Genes.R Down_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt Down_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt Intronic_Only_Counting DiffExp_3c
[1] "Print arguments:"
[1] "-----------------"
[1] "File1:"
[1] "Down_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt"
[1] "File2:"
[1] "Down_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt"
[1] "Subtitle:"
[1] "Intronic_Only_Counting"
[1] "DiffExp_Index:"
[1] "DiffExp_3c"
[1] "-----------------"
[1] "Down.DESeq.Intronic_Only.HTSeq"
[1] "Down.EdgeR.Intronic_Only.HTSeq"
null device 
          1 
[1] "Removing VennDiagram*.log files"
[1] "Check out Venn diagram and Count.Table!"
#----------------------------------------------------------------------------------
Rscript Venn_Diff_Genes.R Up_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt Up_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt Intronic_Only_Counting DiffExp_3c
[1] "Print arguments:"
[1] "-----------------"
[1] "File1:"
[1] "Up_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt"
[1] "File2:"
[1] "Up_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt"
[1] "Subtitle:"
[1] "Intronic_Only_Counting"
[1] "DiffExp_Index:"
[1] "DiffExp_3c"
[1] "-----------------"
[1] "Up.DESeq.Intronic_Only.HTSeq"
[1] "Up.EdgeR.Intronic_Only.HTSeq"
null device 
          1 
[1] "Removing VennDiagram*.log files"
[1] "Check out Venn diagram and Count.Table!"
#----------------------------------------------------------------------------------
#----------------------------------------------------------------------------------
Merging Count.Table(s) into one text file
#----------------------------------------------------------------------------------
==========================================================
Renaming the Differential_Expression_File
==========================================================

List files in Input

-rw-r--r-- 1 kkarri waxmanlab     321 Dec  8 00:47 /scratch/28939.1.linga/Input/DiffExp_3c_Venn_Tables_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rw-r--r-- 1 kkarri waxmanlab 6446868 Dec  8 00:47 /scratch/28939.1.linga/Input/DiffExp_v2_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rwxr-xr-x 1 kkarri waxmanlab    7394 Dec  8 00:45 /scratch/28939.1.linga/Input/Diff_Genes.R
-rw-r--r-- 1 kkarri waxmanlab    2532 Dec  8 00:47 /scratch/28939.1.linga/Input/Down_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rw-r--r-- 1 kkarri waxmanlab    8738 Dec  8 00:47 /scratch/28939.1.linga/Input/Down_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rw-r--r-- 1 kkarri waxmanlab  244375 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP0.out
-rw-r--r-- 1 kkarri waxmanlab       9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP0_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab  246293 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP1.out
-rw-r--r-- 1 kkarri waxmanlab       9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP1_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab 2330016 Dec  8 00:47 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_DESeq.txt
-rw-r--r-- 1 kkarri waxmanlab 2354213 Dec  8 00:47 /scratch/28939.1.linga/Input/Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_EdgeR.txt
-rw-r--r-- 1 kkarri waxmanlab  245613 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle0.out
-rw-r--r-- 1 kkarri waxmanlab       9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle0_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab  245463 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle1.out
-rw-r--r-- 1 kkarri waxmanlab       9 Dec  8 00:45 /scratch/28939.1.linga/Input/Female_3h_Vehicle1_num_mapped_reads.txt
-rw-r--r-- 1 kkarri waxmanlab  300238 Dec  8 00:45 /scratch/28939.1.linga/Input/Intron_Only_Regions_Lengths.txt
-rw-r--r-- 1 kkarri waxmanlab    5876 Dec  8 00:47 /scratch/28939.1.linga/Input/Up_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rw-r--r-- 1 kkarri waxmanlab   12494 Dec  8 00:47 /scratch/28939.1.linga/Input/Up_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10.txt
-rwxr-xr-x 1 kkarri waxmanlab    9553 Dec  8 00:45 /scratch/28939.1.linga/Input/Venn_Diff_Genes.R
-rw-r--r-- 1 kkarri waxmanlab   37959 Dec  8 00:47 /scratch/28939.1.linga/Input/Venn_Down.DESeq.Intronic_Only.HTSeq.Down.EdgeR.Intronic_Only.HTSeq.png
-rw-r--r-- 1 kkarri waxmanlab   37966 Dec  8 00:47 /scratch/28939.1.linga/Input/Venn_Up.DESeq.Intronic_Only.HTSeq.Up.EdgeR.Intronic_Only.HTSeq.png
-rwxr-xr-x 1 kkarri waxmanlab    3925 Dec  8 00:45 /scratch/28939.1.linga/Input/formatForSegex_ver3.R

/scratch/28939.1.linga/Input/Female_3h_TCPOBOP:
total 8
drwxr-xr-x 2 kkarri waxmanlab 4096 Dec  8 00:45 .
drwxr-xr-x 4 kkarri waxmanlab 4096 Dec  8 00:47 ..

/scratch/28939.1.linga/Input/Female_3h_Vehicle:
total 8
drwxr-xr-x 2 kkarri waxmanlab 4096 Dec  8 00:45 .
drwxr-xr-x 4 kkarri waxmanlab 4096 Dec  8 00:47 ..
==========================================================

List files in scratch

total 72M
drwx------   3 kkarri waxmanlab 4.0K Dec  8 00:47 .
drwxrwxrwt. 13 root   root      116K Dec  8 00:45 ..
-rw-r--r--   1 kkarri waxmanlab  107 Dec  8 00:45 Condition_1.txt
-rw-r--r--   1 kkarri waxmanlab  109 Dec  8 00:45 Condition_2.txt
drwxr-xr-x   4 kkarri waxmanlab 4.0K Dec  8 00:47 Input
-rw-r--r--   1 kkarri waxmanlab  72M Dec  8 00:45 RefSeq_GeneBody.gtf
-rwxr-xr-x   1 kkarri waxmanlab  16K Dec  8 00:45 differentialAnalysis.R

==========================================================
Re-naming files in OUTPUT_DIR
Need to append the COUNT_PROGRAM name to all output files

List files in OUTPUT_DIR

total 11M
drwxr-sr-x 2 kkarri waxmanlab  32K Dec  8 00:47 .
drwxr-sr-x 6 kkarri waxmanlab  32K Dec  8 00:45 ..
-rw-r--r-- 1 kkarri waxmanlab  321 Dec  8 00:47 DiffExp_3c_Venn_Tables_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 6.2M Dec  8 00:47 DiffExp_v2_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 2.5K Dec  8 00:47 Down_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 8.6K Dec  8 00:47 Down_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 2.3M Dec  8 00:47 Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_DESeq_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 2.3M Dec  8 00:47 Female_3h_TCPOBOP_G123_M11M12_vs_Female_3h_Vehicle_G123_M9M10_DiffExp_v2_Intronic_Only_forSEGEXUpload_EdgeR_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab 5.8K Dec  8 00:47 Up_Genes_DESeq_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab  13K Dec  8 00:47 Up_Genes_EdgeR_Intronic_Only_Female_3h_TCPOBOP_G123_M11M12_Female_3h_Vehicle_G123_M9M10_HTSeq.txt
-rw-r--r-- 1 kkarri waxmanlab  38K Dec  8 00:47 Venn_Down.DESeq.Intronic_Only.HTSeq.Down.EdgeR.Intronic_Only.HTSeq_HTSeq.png
-rw-r--r-- 1 kkarri waxmanlab  38K Dec  8 00:47 Venn_Up.DESeq.Intronic_Only.HTSeq.Up.EdgeR.Intronic_Only.HTSeq_HTSeq.png
==========================================================
==========================================================
Finished on : Sat Dec  8 00:47:26 EST 2018
1 minutes and 43 seconds elapsed.
==========================================================
