Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phylolegio
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mcariou
phylolegio
Commits
7e4d8611
Commit
7e4d8611
authored
Nov 22, 2021
by
mcariou
Browse files
Options
Downloads
Patches
Plain Diff
commit
parent
70125ace
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/4_parse_PSIblast.sh
+8
-27
8 additions, 27 deletions
script/4_parse_PSIblast.sh
script/runscript_78Lp_step34.sh
+3
-3
3 additions, 3 deletions
script/runscript_78Lp_step34.sh
with
11 additions
and
30 deletions
script/4_parse_PSIblast.sh
+
8
−
27
View file @
7e4d8611
...
...
@@ -20,9 +20,12 @@ echo "--------------------------------------------------"
##################################################################################################################
module load R
echo
"TMP version: blastdb from which sequences are retreived and taxo db used by Taxonomizer R package are written in the script, should be parameters"
BLASTDBNUC
=
"~/2021_legio/blastdb/phyloref/phyloref_nuc"
TAXO
=
"/home/mcariou/2021_legio/Taxo/accessionTaxa.sql
TAXO
=
"/home/mcariou/2021_legio/Taxo/accessionTaxa.sql"
echo
"~/2021_legio/blastdb/phyloref/phyloref_nuc"
echo
"/home/mcariou/2021_legio/Taxo/accessionTaxa.sql"
# variable
OUT_BLAST
=
$1
...
...
@@ -32,9 +35,7 @@ BLAST_REP=`echo $1 | awk -F "/" '{$NF=""; print $0}' | sed 's/ /\//g'`
FASTA_REP
=
$3
mkdir
-p
$FASTA_REP
#GENES=
`
grep
">"
$4
|
sed
's/>//g'
`
GENES="
lpg2300
"
GENES
=
`
grep
">"
$4
|
sed
's/>//g'
`
EVAL
=
$5
PERCID
=
$6
...
...
@@ -65,31 +66,11 @@ nrow=`cat $subblast | wc -l`
echo
"sequences already retrieved"
else
echo
"retrieve fasta"
Rscript --vanilla
$rscript
$subblast
$EVAL
$PERCID
$PERCOVERLAP
$NPERTAX
$FASTA
>
$FASTA_REP
/
$Gene
/paste_blast_test.log
#Rscript --vanilla $rscript $subblast $EVAL $PERCID $PERCOVERLAP $NPERTAX $FASTA> $FASTA_REP/$Gene/paste_blast_test.log
Rscript
--vanilla
$rscript
$subblast
$EVAL
$PERCID
$PERCOVERLAP
$NPERTAX
$FASTA
$BLASTDBNUC
$TAXO
>
$FASTA_REP
/
$Gene
/paste_blast_test.log
fi
;
# if [[ -s
$subblast
.mod ]] ; then
# echo "
sp names already retrieved
"
# else
# echo "
debut de la boucle:
"
# for id in
`
seq
$nrow
`
# do
# line=
`
sed
-n
${
id
}
p
$subblast
`
# idncbi=
`
sed
-n
${
id
}
p
$subblast
|
awk
'{print $3}'
|
awk
-F
[
\.
]
'{print $1}'
`
# tax=
`
efetch
-db
nuccore
-id
$idncbi
-format
docsum | xtract
-pattern
DocumentSummary
-element
Organism |
sed
's/ /_/g'
`
# echo
$tax
# echo
$line
"
"
$tax
>>
$subblast
.mod
# done
# fi ;
#if [[ -s
$FASTA
]] ; then
#echo "
sequences already retrieved
"
#else
#echo "
retrieve fasta
"
#Rscript --vanilla
$rscript
$subblast
.mod
$EVAL
$PERCID
$PERCOVERLAP
$NPERTAX
$FASTA
>
$FASTA_REP
/
$Gene
/paste_blast.log
#fi ;
done
...
...
This diff is collapsed.
Click to expand it.
script/runscript_78Lp_step34.sh
+
3
−
3
View file @
7e4d8611
...
...
@@ -12,11 +12,11 @@
#$ -e /home/mcariou/2021_legio/log/
/home/mcariou/2021_legio/phylolegio/script/3_make_PSIblast.sh ~/2021_legio/blastdb/phyloref/phyloref_prot ~/2021_legio/genes/78Lp_uniprot.fasta ~/2021_legio/out_blastn/
#
/home/mcariou/2021_legio/phylolegio/script/3_make_PSIblast.sh ~/2021_legio/blastdb/phyloref/phyloref_prot ~/2021_legio/genes/78Lp_uniprot.fasta ~/2021_legio/out_blastn/
##
Doesn't accomodate multi query yet
#
/home/mcariou/2021_legio/phylolegio/script/4_parse_PSIblast
TMP
.sh ~/2021_legio/out_blastn/78Lp_uniprot.psiblast ~/2021_legio/phylolegio/doc/tabAss.txt ~/2021_legio/fasta/lpg2300_50_50 ~/2021_legio/genes/
lpg2300
.fasta 0.0001 0.5 0.5 1
##
IN TRIAL
/home/mcariou/2021_legio/phylolegio/script/4_parse_PSIblast.sh ~/2021_legio/out_blastn/78Lp_uniprot.psiblast ~/2021_legio/phylolegio/doc/tabAss.txt ~/2021_legio/fasta/lpg2300_50_50 ~/2021_legio/genes/
78Lp_uniprot
.fasta 0.0001 0.5 0.5 1
# fin
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