-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinitProject.pl
More file actions
46 lines (34 loc) · 911 Bytes
/
initProject.pl
File metadata and controls
46 lines (34 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env perl
use Cwd;
# create repo
my $repoName = getcwd;
$repoName =~ s:.*/projects/::;
$repoName =~ s:.*/data/::;
$repoName =~ s:.*kinglab/::;
$repoName =~ s:/:_:g;
system "bb create -c --owner jrflab --protocol ssh $repoName";
system "git init";
system "git remote add origin git\@bitbucket.org:jrflab/$repoName.git";
my $MAKEFILE = <<ENDL;
export REF = hg19
DUP_TYPE = markdup
#TARGETS_FILE = intervals.bed
EXOME = true
# gatk options
HARD_FILTER_SNPS = true
QSUB_PRIORITY = -800
include modules/Makefile
ENDL
unless (-d "scripts") {
system "git clone git@github.com:raylim/scripts.git -b stable";
}
unless (-d "modules") {
system "git clone git@github.com:raylim/modules.git -b stable";
}
unless (-e "Makefile") {
open OUT, ">Makefile";
print OUT $MAKEFILE;
}
system "git add Makefile";
system "git commit -m 'makefile'";
system "git push --set-upstream origin master";