Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
magatt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UMR GDEC
magatt
Commits
50257cad
Commit
50257cad
authored
1 year ago
by
Helene Rimbert
Browse files
Options
Downloads
Patches
Plain Diff
IMPROVE: gmapl rescue run at the end of each chomosome batch rather than for every gene
parent
e077dff2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7
Missing conda rules
,
!6
Resolve "IMPROVE: gmap rescue in global scale"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/gmapRescue.sh
+19
-9
19 additions, 9 deletions
bin/gmapRescue.sh
with
19 additions
and
9 deletions
bin/gmapRescue.sh
+
19
−
9
View file @
50257cad
...
...
@@ -5,10 +5,14 @@ blastdb=$2
gmapdb
=
$3
gmapdbdir
=
$4
outputRescueGff
=
$5
outputRescueWholeGenomeGff
=
$6
wholegenomeFasta
=
$7
mode
=
$8
# files for unanchored genes: will be mapped with gmapl on whole genome
unmappedMrnaFasta
=
$inputDir
'/missing.fasta'
outputRescueWholeGenomeGff
=
$6
querylist
=(
$(
find
$inputDir
-type
f
-name
'query.fasta'
)
)
targetlist
=(
$(
find
$inputDir
-type
f
-name
'target.fasta'
)
)
...
...
@@ -47,11 +51,13 @@ do
if
[
-f
"
$rootdir
/UNMAPPED"
]
then
echo
" Gene
$geneid
has status UNMAPPED: mapping on the whole genome"
targetindex
=
$gmapdb
targetindexdir
=
$gmapdbdir
targetgff
=
$rootdir
'/gmap.wholeGenome.gff3'
gmapexe
=
'gmapl'
eval
$gmapexe
--min-identity
0.80
--min-trimmed-coverage
0.50
--ordered
-n
1
-d
$targetindex
-D
$targetindexdir
-f
2
$rootdir
'/query.mrna.fasta'
1>
$targetgff
2>
$rootdir
'/gmap.wg.log'
&&
rm
$rootdir
'/query.mrna.fasta'
cat
$rootdir
'/query.mrna.fasta'
>>
$unmappedMrnaFasta
&&
rm
$rootdir
'/query.mrna.fasta'
#targetindex=$gmapdb
#targetindexdir=$gmapdbdir
#targetgff=$rootdir'/gmap.wholeGenome.gff3'
#gmapexe='gmapl'
#eval $gmapexe --min-identity 0.80 --min-trimmed-coverage 0.50 --ordered -n 1 -d $targetindex -D $targetindexdir -f 2 $rootdir'/query.mrna.fasta' 1> $targetgff 2> $rootdir'/gmap.wg.log' && rm $rootdir'/query.mrna.fasta'
else
echo
"running gmap on target"
eval
gmap
--ordered
--min-identity
0.80
--min-trimmed-coverage
0.50
-n
1
-g
$rootdir
'/target.fasta'
-f
2
$rootdir
'/query.mrna.fasta'
1>
$targetgff
2>
$rootdir
'/gmap.target.log'
&&
rm
$rootdir
'/query.mrna.fasta'
...
...
@@ -98,8 +104,12 @@ gffList=($(find $inputDir -type f -name "gmap.target.gff3" ))
gt gff3
-sort
-tidy
-retainids
"
${
gffList
[@]
}
"
1>
$outputRescueGff
2>
$outputRescueGff
.log
# for genes mapped on whole genome
echo
"Now concat all GFF of gmap on whole genome"
gffList
=(
$(
find
$inputDir
-type
f
-name
"gmap.wholeGenome.gff3"
)
)
gt gff3
-sort
-tidy
-retainids
"
${
gffList
[@]
}
"
1>
$outputRescueWholeGenomeGff
2>
$outputRescueWholeGenomeGff
.log
echo
"Now map missing/unanchored genes with GMAPL on whole genome"
cmd
=
"gmapl --min-identity 0.80 --min-trimmed-coverage 0.50 --ordered -n 1 -d
$gmapdb
-D
$gmapdbdir
-f 2
$unmappedMrnaFasta
1>
$inputDir
'/gmap.wholeGenome.gff3' 2>
$inputDir
'/gmap.wg.log' && rm
$unmappedMrnaFasta
"
eval
$cmd
echo
"Now sort and tidy all GFF of gmap on whole genome"
#gffList=($(find $inputDir -type f -name "gmap.wholeGenome.gff3" ))
#gt gff3 -sort -tidy -retainids "${gffList[@]}" 1> $outputRescueWholeGenomeGff 2> $outputRescueWholeGenomeGff.log
gt gff3
-sort
-tidy
-retainids
$inputDir
'/gmap.wholeGenome.gff3'
1>
$outputRescueWholeGenomeGff
2>
$outputRescueWholeGenomeGff
.log
echo
"ENDED AT
`
date
`
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment