annotate sm_dos2unix.pl @ 3:bcc062005bb2 draft

Deleted selected files
author sarahinraauzeville
date Tue, 12 Dec 2017 09:40:22 -0500
parents 836946d90d26
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
1 #!/usr/bin/perl -w
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
2
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
3 # usage : perl sm_FASTQ_qual.pl <file.fastq>
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
4 # 26/05/2015
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
5 # Sarah Maman
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
6 # Copyright (C) 2014 INRA
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
7 # This program is free software: you can redistribute it and/or modify
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
8 # it under the terms of the GNU General Public License as published by
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
9 # the Free Software Foundation, either version 3 of the License, or
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
10 # (at your option) any later version.
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
11 #
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
12 # This program is distributed in the hope that it will be useful,
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
15 # GNU General Public License for more details.
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
16 #
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
19 #
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
20 use strict;
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
21 use File::Basename;
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
22 use Getopt::Long;
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
23 use lib "$ENV{'MY_GALAXY_DIR'}";
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
24 use GalaxyPath;
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
25
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
26
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
27 my $input1 = $ARGV[0];
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
28 my $output = $ARGV[1];
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
29 my $cmd1 = '';
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
30
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
31 my $cfg = GalaxyPath->new( -file => $ENV{"GALAXY_CONFIG_FILE"} );
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
32 my $DOS = $cfg->my_path( 'toolsPath', 'DOS' );
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
33
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
34 $cmd1 = "($DOS -n $input1 $output) >& ./out_dos2unix.log 2>&1";
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
35 system $cmd1;
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
36 #Info pour les biologistes
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
37 print STDOUT "Command run on cluster : \n\n $cmd1 \n\n ";
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
38
836946d90d26 Uploaded perl file
sarahinraauzeville
parents:
diff changeset
39 #Recuperation des fichiers par Galaxy