Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastien Moretti
ProtoGene
Commits
be1675be
Commit
be1675be
authored
Aug 09, 2013
by
Sebastien Moretti
Browse files
Fix for exonerate 2.2.0 that looks to have problems with target filename containing :
parent
fb938c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
ProtoGene.pl
View file @
be1675be
...
...
@@ -381,7 +381,7 @@ for(my $r=0; $r<=$#original_names; $r++){
download_seq
(
$cache
,
$amont
,
$aval
,
$chr
);
$intronStep
=
1
;
unshift
(
@nt_GIs
,
"
$chr
:
$amont
-
$aval
");
unshift
(
@nt_GIs
,
"
$chr
-
$amont
-
$aval
");
}
}
}
...
...
@@ -1016,19 +1016,19 @@ sub download_seq{
}
if (
$amont
=~ /^
\
d+$/ &&
$aval
=~ /^
\
d+$/ ){
fetch_fasta(
"
http:
//
eutils
.
ncbi
.
nlm
.
nih
.
gov
/entrez/
eutils
/efetch.fcgi?db=nucleotide&id=$pacc2puid&rettype=fasta&retmode=text&from=$amont&to=$aval&tool=ProtoGene&email=smoretti\@unil.ch", "$cache/
$acc
[
$a
]
:
$from
-
$to
.
fas
"
);
fetch_fasta(
"
http:
//
eutils
.
ncbi
.
nlm
.
nih
.
gov
/entrez/
eutils
/efetch.fcgi?db=nucleotide&id=$pacc2puid&rettype=fasta&retmode=text&from=$amont&to=$aval&tool=ProtoGene&email=smoretti\@unil.ch", "$cache/
$acc
[
$a
]
-
$from
-
$to
.
fas
"
);
}
else{
fetch_fasta(
"
http:
//
eutils
.
ncbi
.
nlm
.
nih
.
gov
/entrez/
eutils
/efetch.fcgi?db=nucleotide&id=$pacc2puid&rettype=fasta&retmode=text&tool=ProtoGene&email=smoretti\@unil.ch", "$cache/
$acc
[
$a
]
.
fas
"
);
}
#FIXME
:
Don't remember exactly what all this function does
#FIXME Don't remember exactly what all this function does
my
$checkSeq
= '';
$checkSeq
= `grep -v '>'
"
$cache
/$acc[$a]
:
$from-$to.fas"` if ( $amont =~ /
^\
d
+
$/
&&
$aval
=~
/^\d+$/
);
$checkSeq
= `grep -v '>'
"
$cache
/$acc[$a]
-
$from-$to.fas"` if ( $amont =~ /
^\
d
+
$/
&&
$aval
=~
/^\d+$/
);
$checkSeq
=
`
grep -v '>' "
$cache
/
$acc
[
$a
].fas"
`
if
(
$amont
!~
/^\d+$/
||
$aval
!~
/^\d+$/
);
if
(
$checkSeq
!~
/^[A-Za-z]/
&&
$cp
==
0
){
# if ( -s "$cache/$acc[$a]:$from-$to.fas" <120 && $cp==0){ #Instead of multiple downloads, only seq name and header
unlink
("
$cache
/
$acc
[
$a
]
:
$from
-
$to
.fas
")
if
(
$amont
=~
/^\d+$/
&&
$aval
=~
/^\d+$/
);
unlink
("
$cache
/
$acc
[
$a
]
-
$from
-
$to
.fas
")
if
(
$amont
=~
/^\d+$/
&&
$aval
=~
/^\d+$/
);
unlink
("
$cache
/
$acc
[
$a
].fas
")
if
(
$amont
!~
/^\d+$/
||
$aval
!~
/^\d+$/
);
# $amont = '';
$aval
=
$aval
-
5000
if
(
$aval
=~
/^\d+$/
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment