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
c5642bbb
Commit
c5642bbb
authored
Oct 09, 2016
by
Eric Coissac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the awk call by $AwkCmd
parent
3ed87608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
org-annotate.sh
org-annotate.sh
+13
-10
No files found.
org-annotate.sh
View file @
c5642bbb
...
...
@@ -61,7 +61,7 @@ function usage {
function
fastaIterator
()
{
awk
'/^>/ {if (seq) printf("%s\f",seq); seq=""} \
$AwkCmd
'/^>/ {if (seq) printf("%s\f",seq); seq=""} \
{if (seq) seq=seq"\n"; seq=seq $1} \
END {print seq}'
"
$1
"
}
...
...
@@ -119,7 +119,7 @@ pushTmpDir ORG.organnot
if
[[
!
-z
"
${
sequence
}
"
]]
;
then
echo
"
${
sequence
}
"
>
toannotate.fasta
seqid
=
$(
awk
'(NR==1) {print substr($1,2,1000)}'
toannotate.fasta
)
seqid
=
$(
$AwkCmd
'(NR==1) {print substr($1,2,1000)}'
toannotate.fasta
)
case
"
$types
"
in
chloro
)
...
...
@@ -246,17 +246,20 @@ pushTmpDir ORG.organnot
loginfo
"Done."
loginfo
"Ordering annotations..."
awk
'/^.....(misc|repeat|rRNA|tRNA|gene|source)/ { \
$AwkCmd
'(entry && /^.....(misc|repeat|rRNA|tRNA|gene|source)/) { \
print pos,entry } \
/^.....(misc|repeat|rRNA|tRNA|gene|source)/ { \
match($3,"[0-9][0-9]*"); \
pos=substr($3,RSTART,RLENGTH)*1000 + 1; \
print pos,
$0; \
entry=
$0; \
next} \
{
pos++;
\
print pos,$0
}'
"
${
RESULTS
}
.annot"
|
\
{
entry=entry "@" $0}
\
END {print pos,entry
}'
"
${
RESULTS
}
.annot"
|
\
sort
-nk1
|
\
awk
'{ \
$AwkCmd
'{ \
match($0,"^[0-9]* ");\
line=substr($0,RLENGTH+1);\
gsub("@","\n",line); \
print line}'
loginfo
"Done."
...
...
@@ -267,7 +270,7 @@ pushTmpDir ORG.organnot
loginfo
"Done."
loginfo
"Computing statistics on nucleotide usage..."
awk
'! /^>/ { \
$AwkCmd
'! /^>/ { \
seq=toupper($0); \
gsub(" ","",seq); \
lseq=length(seq); \
...
...
@@ -293,8 +296,8 @@ pushTmpDir ORG.organnot
loginfo
"Done."
loginfo
"Reformating sequences..."
lines
=
$(
wc
-l
"
${
RESULTS
}
.norm.fasta"
|
awk
'{print $1}'
)
awk
-v
lines
=
$lines
' \
lines
=
$(
wc
-l
"
${
RESULTS
}
.norm.fasta"
|
$AwkCmd
'{print $1}'
)
$AwkCmd
-v
lines
=
$lines
' \
! /^>/ { \
seq=tolower($0); \
gsub(" ","",seq); \
...
...
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