Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
eortega
coevolution
Commits
80a64aa1
Commit
80a64aa1
authored
Jan 16, 2020
by
eortega
Browse files
corrected path management in scripts/04_snpcalling.sh typos correction
parent
3cb49c4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
phages/scripts/01_quality_check.sh
View file @
80a64aa1
...
...
@@ -32,7 +32,7 @@ echo $W_seq $R_seq $Other_seq
### CREATE SYMBOLIC LINKS TO SEQUENCE FILES
### DI
I
VIDED IN 3 DIRECTORIES
### DIVIDED IN 3 DIRECTORIES
echo
"CREATE SYMBOLIC LINKS"
...
...
phages/scripts/04_snpcalling.sh
View file @
80a64aa1
...
...
@@ -2,21 +2,23 @@
## SNPCALLING
path
=
$1
## Working directory's path
path
=
$1
## Working directory's path
step_name
=
$2
bam
=
$3
## name of step which created the bam files to be used
ref
=
$4
## path to reference.fasta
od
=
${
path
}${
step_name
}
/
## Output directory
prev_step
=
$3
## name of step which created the bam files to be used
ref
=
$4
## path to reference.fasta
echo
${
path
}
steps/
mkdir
-p
${
path
}
steps/
for
i
in
$(
find
${
path
}
steps/
${
bam
}
/
-type
f
-name
*
.bam
)
for
i
in
$(
find
${
path
}
steps/
${
prev_step
}
/
-type
f
-name
*
.bam
)
do
od2
=
$(
dirname
$i
)
;
od2
=
${
od2
/mapping/snpcalling
}
mkdir
-p
$od2
od
=
$(
dirname
$i
)
od
=
${
od
/
$prev_step
/
$step_name
}
freebayes
-b
$i
-f
$ref
-C
1
-K
-F
0.01
>
${
od2
}
/
$(
basename
-s
.sort.bam
$i
)
.vcf
mkdir
-p
$od
freebayes
-b
$i
-f
$ref
-C
1
-K
-F
0.01
>
${
od
}
/
$(
basename
-s
.sort.bam
$i
)
.vcf
;
echo
$(
basename
-s
.sort.bam
$i
)
.vcf
'has been created'
;
done
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