Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trio-whole-exome
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
igmmbioinformatics
trio-whole-exome
Commits
57535ba3
Commit
57535ba3
authored
3 years ago
by
not populated not populated
Browse files
Options
Downloads
Patches
Plain Diff
Fixed filename/folder paths at end to match new organizational structure
parent
55e0eef2
No related branches found
No related tags found
1 merge request
!3
Ultra 2 SOP/doc updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submit_bcbio_trio_wes.sh
+9
-5
9 additions, 5 deletions
submit_bcbio_trio_wes.sh
with
9 additions
and
5 deletions
submit_bcbio_trio_wes.sh
+
9
−
5
View file @
57535ba3
...
...
@@ -34,19 +34,19 @@ cd $WORK_DIR/$FAMILY_ID
bcbio_nextgen.py
$CONFIG_FILE
-n
$SLURM_CPUS_PER_TASK
-t
local
exit
DATE
=
$(
basename
`
tail
log/bcbio-nextgen.log |
grep
'Storing in local filesystem'
|
tail
-n
1 |
awk
'{ print $6 }'
| perl
-pe
"s/_
${
SHORT_PROJECT_ID
}
.+//"
`
)
DATE
=
$(
basename
`
tail
log/bcbio-nextgen.log |
grep
'Storing in local filesystem'
|
tail
-n
1 |
awk
'{ print $6 }'
| perl
-pe
"s/_
${
PROJECT_ID
}
.+//"
`
)
FAMILY_DIR
=
${
DATE
}
_
${
SHORT_PROJECT_ID
}
_
${
VERSION
}
_
${
FAMILY_ID
}
if
[
-e
$OUTPUT_DIR
/
$
{
DATE
}
_
${
SHORT_PROJECT_ID
}
_
${
FAMILY_
ID
}
]
if
[
-e
$OUTPUT_DIR
/
$FAMILY_
DIR
]
then
for
INDV
in
`
cut
-f
2
$OUTPUT_DIR
/
${
SHORT_PROJECT_ID
}
_
${
VERSION
}
/params/
${
PROJECT_ID
}
_
${
FAMILY_ID
}
.ped
`
do
mv
$OUTPUT_DIR
/
$INDV
$OUTPUT_DIR
/
$
{
DATE
}
_
${
PROJECT_ID
}
_
${
FAMILY_
ID
}
/
mv
$OUTPUT_DIR
/
$INDV
$OUTPUT_DIR
/
$FAMILY_
DIR
/
done
# fix VCF output file names
cd
$OUTPUT_DIR
/
$
{
DATE
}
_
${
PROJECT_ID
}
_
${
FAMILY_
ID
}
cd
$OUTPUT_DIR
/
$FAMILY_
DIR
if
[
!
-e
${
FAMILY_ID
}
-gatk-haplotype-annotated
.vcf.gz
]
then
PREFIX
=
`
echo
$FAMILY_ID
|
cut
-d
'_'
-f
1
`
...
...
@@ -55,6 +55,10 @@ then
mv
${
PREFIX
}${
SUFFIX
}
-gatk-haplotype-annotated
.vcf.gz.tbi
${
FAMILY_ID
}
-gatk-haplotype-annotated
.vcf.gz.tbi
fi
cd
$OUTPUT_DIR
mkdir
-p
${
SHORT_PROJECT_ID
}
_
${
VERSION
}
/families
mv
$FAMILY_DIR
${
SHORT_PROJECT_ID
}
_
${
VERSION
}
/families/
else
echo
$OUTPUT_DIR
/
${
DATE
}
_
${
PROJECT_ID
}
_
${
FAMILY_ID
}
does not exist.
fi
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