Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ORG.Annotate
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ORG.Asm
ORG.Annotate
Commits
0a5ece1e
Commit
0a5ece1e
authored
Jan 24, 2018
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always a new attempt to solve the bug...
parent
ca048f8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
28 deletions
+27
-28
detectors/cds/bin/do_exonerate.csh
detectors/cds/bin/do_exonerate.csh
+5
-26
detectors/cds/bin/go_cds.csh
detectors/cds/bin/go_cds.csh
+22
-2
No files found.
detectors/cds/bin/do_exonerate.csh
View file @
0a5ece1e
...
...
@@ -107,25 +107,6 @@ endif
set base = $OutDir/$GenoName.$ProtName
#
# Alias the genome filename to a short name
# to circumvent a bug in exonerate
echo $GenoFile | grep '^/' > /dev/null
if ( $status == 1 ) then
set AbsGenoFile = `pwd`/$GenoFile
set DirGenoFile = `dirname $AbsGenoFile`
set DirGenoFile = `(cd $DirGenoFile;pwd)`
set AbsGenoFile = $DirGenoFile/`basename $AbsGenoFile`
else
set AbsGenoFile = $GenoFile
endif
set ShortDir = `mktemp -d`
set ShortLink = $ShortDir/genome.fasta
ln -s $AbsGenoFile $ShortLink
Notify " Building input shortcut $AbsGenoFile --> $ShortLink"
#
# skip exonerate calculations if already done
#
...
...
@@ -141,7 +122,7 @@ endif
if ($PASS1_SPEEDUP != 0) then
tcsh -f $PROG_DIR/do_filterbx.csh $
ShortLink
$ProtFile \
tcsh -f $PROG_DIR/do_filterbx.csh $
GenoFile
$ProtFile \
$PASS1_BLASTX_FILTER_IDMIN \
$PASS1_BLASTX_FILTER_NBMIN \
$PASS1_BLASTX_FILTER_NBMAX > D_$$
...
...
@@ -187,7 +168,7 @@ exonerate \
--refineboundary 5000 \
--singlepass FALSE \
--dpmemory 1024 \
$DbFile $
ShortLink
> $base.exo.raw
$DbFile $
GenoFile
> $base.exo.raw
CheckAbort 20 "exonerate failure"
#
...
...
@@ -211,7 +192,7 @@ egrep "^$ProtName " $ProtDir/Annot.lst | $AwkCmd '{print "c annot", $0}' > T_$$
#
$AwkCmd -f $LIB_DIR/libutil.awk -f $LIB_DIR/extend.awk \
-v FASTA=$
ShortLink
\
-v FASTA=$
GenoFile
\
-v START_MODEL=$STARTMODEL \
-v STOP_MODEL=$STOPMODEL \
-v START_WALK=$PASS1_START_WALK \
...
...
@@ -223,14 +204,14 @@ $AwkCmd -f $LIB_DIR/libutil.awk -f $LIB_DIR/extend.awk \
echo "c pass pass1 $ProtType" > $base.iff
$AwkCmd -v FASTA=$
ShortLink
-f $LIB_DIR/libutil.awk \
$AwkCmd -v FASTA=$
GenoFile
-f $LIB_DIR/libutil.awk \
-f $LIB_DIR/translate.awk T_$$ >> $base.iff
#
# extract CDS
#
$AwkCmd -v FASTA=$
ShortLink
-f $LIB_DIR/libutil.awk \
$AwkCmd -v FASTA=$
GenoFile
-f $LIB_DIR/libutil.awk \
-f $LIB_DIR/cds.awk T_$$ >> $OutDir/$GenoName.cds.fasta
...
...
@@ -245,8 +226,6 @@ $AwkCmd -f $LIB_DIR/toEmbl.awk $base.iff |\
# end
#
rm -rf $ShortDir
Notify " output file: $base.res"
(\rm -f ?_$$) >> /dev/null
...
...
detectors/cds/bin/go_cds.csh
View file @
0a5ece1e
...
...
@@ -43,12 +43,32 @@ NeedDir $DbRoot/models
# run everything into temporary place
#
set temp =
$
Genome.tmp
set temp =
`hostname`.$$.
Genome.tmp
if (! -d $temp) then
Notify "making directory $temp"
mkdir $temp
endif
#
# find the absolute path of the fasta genome file
#
echo $Fasta | grep '^/' > /dev/null
if ( $status == 1 ) then
set AbsGenoFile = `pwd`/$Fasta
set DirGenoFile = `dirname $AbsGenoFile`
set DirGenoFile = `(cd $DirGenoFile;pwd)`
set AbsGenoFile = $DirGenoFile/`basename $AbsGenoFile`
else
set AbsGenoFile = $Fasta
endif
pushd $temp
ln -s $AbsGenoFile genome.fasta
popd
set Fasta = $temp/genome.fasta
#
# pass1: run exonerate
#
...
...
@@ -63,7 +83,7 @@ foreach dir ("core" "shell" "dust")
endif
end
cp $temp/
$Genome.cds.fasta $Genome.cds.fasta
cp $temp/$Genome.cds.fasta $Genome.cds.fasta
#
# pass2: transsplicing
...
...
Write
Preview
Markdown
is supported
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