Mercurial > repos > artbio > ngsplot
comparison runNGSplot.pl @ 3:de27d4172d19 draft
planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/ngsplot commit b'60a55d19937d9dc976020e1c396948b41967a7f8\n'
author | artbio |
---|---|
date | Fri, 08 Dec 2017 17:14:03 -0500 |
parents | 4dd92ce61a5c |
children |
comparison
equal
deleted
inserted
replaced
2:4b4d858c0aa9 | 3:de27d4172d19 |
---|---|
30 my $reffile=shift(@inputs); | 30 my $reffile=shift(@inputs); |
31 my $usegenelist=shift(@inputs); | 31 my $usegenelist=shift(@inputs); |
32 my $genelist=shift(@inputs); | 32 my $genelist=shift(@inputs); |
33 my $title=shift(@inputs); | 33 my $title=shift(@inputs); |
34 my $fraglen=shift(@inputs); | 34 my $fraglen=shift(@inputs); |
35 my $color=shift(@inputs); | 35 my $color=shift(@inputs); |
36 if ($usepairs eq 'yes') { | 36 if ($usepairs eq 'yes') { |
37 syswrite(FILE, "$bamfile\:$reffile\t$genelist\t$title\t$fraglen\t$color\n"); | 37 syswrite(FILE, "$bamfile\:$reffile\t$genelist\t$title\t$fraglen\t$color\n"); |
38 }else { | 38 }else { |
39 syswrite(FILE, "$bamfile\t$genelist\t$title\t$fraglen\t$color\n"); | 39 syswrite(FILE, "$bamfile\t$genelist\t$title\t$fraglen\t$color\n"); |
40 } | 40 } |
52 my $standard_error = shift(@inputs); | 52 my $standard_error = shift(@inputs); |
53 my $radius_size = shift(@inputs); | 53 my $radius_size = shift(@inputs); |
54 my $flooding_fraction = shift(@inputs); | 54 my $flooding_fraction = shift(@inputs); |
55 my $smooth_method = shift(@inputs); | 55 my $smooth_method = shift(@inputs); |
56 my $shaded_area = shift(@inputs); | 56 my $shaded_area = shift(@inputs); |
57 my $out_name = shift(@inputs); | 57 # my $out_name = shift(@inputs); |
58 my $out_avg_name = shift(@inputs); | 58 my $out_avg_name = shift(@inputs); |
59 my $out_hm_name = shift(@inputs); | 59 my $out_hm_name = shift(@inputs); |
60 | 60 |
61 | 61 |
62 my $G = $genome_name; | 62 my $G = $genome_name; |
63 my $R = $genomic_region_source_type__genomic_region; | 63 my $R = $genomic_region_source_type__genomic_region; |
64 my $C = $outfile; | 64 my $C = $outfile; |
65 my $O = $out_name; | 65 # my $O = $out_name; |
66 my $O2 = $out_avg_name; | 66 my $O2 = $out_avg_name; |
67 my $O3 = $out_hm_name; | 67 my $O3 = $out_hm_name; |
68 my $F = $genomic_region_source_type__further_information; | 68 my $F = $genomic_region_source_type__further_information; |
69 my $D = $gene_database; | 69 my $D = $gene_database; |
70 my $L = $genomic_region_source_type__flanking_region_option_source_type__flanking_region_size; | 70 my $L = $genomic_region_source_type__flanking_region_option_source_type__flanking_region_size; |
92 my $cmd5="pwd >> $logfile 2>&1"; | 92 my $cmd5="pwd >> $logfile 2>&1"; |
93 system($cmd5); | 93 system($cmd5); |
94 my $NGSPLOT = $ENV{"NGSPLOT"}; | 94 my $NGSPLOT = $ENV{"NGSPLOT"}; |
95 my $cmd=''; | 95 my $cmd=''; |
96 if (($R eq 'tss')||($R eq 'tes')) { | 96 if (($R eq 'tss')||($R eq 'tes')) { |
97 $cmd = "Rscript $NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O $O -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; | 97 $cmd = "Rscript $NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; |
98 }elsif ($genomic_region_source_type__flanking_region_option_source_type__flanking_region_option eq 'flanking_region_size') { | 98 }elsif ($genomic_region_source_type__flanking_region_option_source_type__flanking_region_option eq 'flanking_region_size') { |
99 if ($IN eq 'automatic') { | 99 if ($IN eq 'automatic') { |
100 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O $O -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; | 100 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; |
101 }else { | 101 }else { |
102 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O $O -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H -IN $IN >> $logfile 2>&1"; | 102 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O2 $O2 -O3 $O3 -D $D -L $L -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H -IN $IN >> $logfile 2>&1"; |
103 } | 103 } |
104 }elsif ($genomic_region_source_type__flanking_region_option_source_type__flanking_region_option eq 'flanking_floating_size') { | 104 }elsif ($genomic_region_source_type__flanking_region_option_source_type__flanking_region_option eq 'flanking_floating_size') { |
105 if ($IN eq 'automatic') { | 105 if ($IN eq 'automatic') { |
106 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O $O -O2 $O2 -O3 $O3 -D $D -N $N -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; | 106 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O2 $O2 -O3 $O3 -D $D -N $N -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H >> $logfile 2>&1"; |
107 }else { | 107 }else { |
108 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O $O -O2 $O2 -O3 $O3 -D $D -N $N -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H -IN $IN >> $logfile 2>&1"; | 108 $cmd = "$NGSPLOT/ngs.plot.r -Galaxy 1 -P 0 -G $G -R $R -C $C -O2 $O2 -O3 $O3 -D $D -N $N -S $S -GO $GO -CS $CS -MQ $MQ -SE $SE -RB $RB -FC $FC -MW $MW -H $H -IN $IN >> $logfile 2>&1"; |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 print("$cmd\n"); | 112 print("$cmd\n"); |
113 my $cmd2="cp data.zip $O"; | 113 #my $cmd2="cp data.zip $O"; |
114 my $cmd3="rm $outfile"; | 114 #my $cmd3="rm $outfile"; |
115 syswrite(FILE2, "\n$cmd\n"); | 115 syswrite(FILE2, "\n$cmd\n"); |
116 syswrite(FILE2, "\n$cmd2\n"); | 116 #syswrite(FILE2, "\n$cmd2\n"); |
117 syswrite(FILE2, "\n$cmd3\n"); | 117 #syswrite(FILE2, "\n$cmd3\n"); |
118 | 118 |
119 # print STDERR "cmd: $cmd\n"; | 119 # print STDERR "cmd: $cmd\n"; |
120 system($cmd); | 120 system($cmd); |
121 system($cmd2); | 121 #system($cmd2); |
122 system($cmd3); | 122 #system($cmd3); |
123 | 123 |
124 close(FILE2); | 124 close(FILE2); |
125 | |
126 |